Prestashop如何对购物车中的加减按钮进行修改
问题描述:
谁知道什么文件控制购物车中加减按钮的功能?我想在点击任何按钮后更改添加或减去的数量。Prestashop如何对购物车中的加减按钮进行修改
这是对ADD按钮
<a rel="nofollow" class="" id="" href="{$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")|escape:'html':'UTF-8'}" title="{l s='Add' mod='advancedcheckout'}"><span><i class="fa fa-plus"></i></span></a>
更改add=1
不作任何更改的代码。所以在开始时我认为它是一个JS或AJAX文件,但即使删除了所有类和ID之后,该按钮仍继续工作。所以我认为所有这一招都是由href=""
中的代码产生的但我可以在哪里添加数量的更改?谁知道?
答
如果我很好理解。你应该看看那些文件:
themes/defaylt-theme/js/product.js: line 424
themes/defaylt-theme/js/product.js: line 408
答
你必须检查
车-summary.js
在主题/ JS /文件夹。这将包含+和 - 按钮事件
功能upQuantity
功能downQuantity