开发者

Mixing Custom/Drop Down attributes in VirtueMart for Joomla

开发者 https://www.devze.com 2022-12-17 23:39 出处:网络
I am trying to add a product that requires form fields...however, by creating the attributes that dropdown, then custom attributes, it displays that way, D开发者_StackOverflow社区rop down first, Custo

I am trying to add a product that requires form fields...however, by creating the attributes that dropdown, then custom attributes, it displays that way, D开发者_StackOverflow社区rop down first, Custom Second. Is there a way to create a mix of custom, then drop down, then custom? See current site:

www.MSLawMart.com Select Legal Forms -> No Fault Divorce...you'll see what I'm saying.

Thanks, Aaron


the file that handles handles the rendering of the product details page & form is:

administrator\components\com_virtuemart\html\shop.product_details.php

it does so like this:

  $addtocart = "<div>
    <form action=\"". $mm_action_url."index.php\" method=\"post\" name=\"addtocart\" id=\"addtocart\">"
          .$ps_product_attribute->list_attribute($product_id)
          // added for the advanced attribute modification
          .$ps_product_attribute->list_advanced_attribute($product_id)
          // end added for advanced attribute modification
          .$ps_product_attribute->list_custom_attribute($product_id);
          // end added for custom attribute modification

so you would need to do some customisation/tweaking in the those list_*_attribute() functions to make them render the tables/rows differently. you'll find them in

\administrator\components\com_virtuemart\classes\ps_product_attribute.php
0

精彩评论

暂无评论...
验证码 换一张
取 消