Php Virtuemart-更改“;“添加到购物车”;链接
我想让我的virtuemart 2商店在人们点击“添加到购物车”按钮时引导他们找到一个联系表单或外部链接。我想能够改变这个按钮后面的链接。这怎么可能 到目前为止,我只找到了在产品页面模板(components/com_virtuemart/views/productdetails/tmpl/default.php)中调用模板的位置:Php Virtuemart-更改“;“添加到购物车”;链接,php,joomla2.5,virtuemart,Php,Joomla2.5,Virtuemart,我想让我的virtuemart 2商店在人们点击“添加到购物车”按钮时引导他们找到一个联系表单或外部链接。我想能够改变这个按钮后面的链接。这怎么可能 到目前为止,我只找到了在产品页面模板(components/com_virtuemart/views/productdetails/tmpl/default.php)中调用模板的位置: 非常感谢您的帮助 谢谢 (components/com\u virtuemart/views/productdetails/tmpl/default\u add
非常感谢您的帮助
谢谢 (components/com\u virtuemart/views/productdetails/tmpl/default\u addtocart.php)是php正在寻找的
在第123行及其周围出现以下行:
<span class="addtocart-button">
<?php echo shopFunctionsF::getAddToCartButton ($this->product->orderable);
// Display the add to cart button END ?>
</span>
将PHP回显更改为:
<a href="yourwebsite.com/thelinkyouwanthere.php">Buy Product</a>
或者类似的东西
<span class="addtocart-button">
<a href="yourwebsite.com/thelinkyouwanthere.php">Buy Product</a>
</span>
希望这有帮助。没有人对此有想法?这应该是相当基本的,虽然我似乎找不到实际的链接。
<span class="addtocart-button">
<a href="yourwebsite.com/thelinkyouwanthere.php">Buy Product</a>
</span>