我正在尝试添加一个需要表单字段的产品...但是,通过创建下拉属性,然后是自定义属性,它会以这种方式显示,首先下拉,然后自定义。有没有办法创建自定义组合,然后下拉,然后自定义?查看当前站点:
www.MSLawMart.com 选择法律表格 -> 无过错离婚...您会明白我在说什么。
谢谢,亚伦
我正在尝试添加一个需要表单字段的产品...但是,通过创建下拉属性,然后是自定义属性,它会以这种方式显示,首先下拉,然后自定义。有没有办法创建自定义组合,然后下拉,然后自定义?查看当前站点:
www.MSLawMart.com 选择法律表格 -> 无过错离婚...您会明白我在说什么。
谢谢,亚伦
处理处理产品详细信息页面和表单呈现的文件是:
administrator\components\com_virtuemart\html\shop.product_details.php
它是这样的:
$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
因此,您需要在那些 list_*_attribute() 函数中进行一些自定义/调整,以使它们以不同的方式呈现表/行。你会发现他们在
\administrator\components\com_virtuemart\classes\ps_product_attribute.php