2017-10-15 34 views
0

誰知道什麼文件控制購物車中加減按鈕的功能?我想在點擊任何按鈕後更改添加或減去的數量。Prestashop如何對購物車中的加減按鈕進行修改

這是對ADD按鈕

<a rel="nofollow" class="" id="" href="{$link->getPageLink('cart', true, NULL, "add=1&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_address_delivery={$product.id_address_delivery|intval}&amp;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=""

中的代碼產生的但我可以在哪裏添加數量的更改?誰知道?

回答

0

如果我很好理解。你應該看看那些文件:

themes/defaylt-theme/js/product.js: line 424 
themes/defaylt-theme/js/product.js: line 408 
0

你必須檢查

車-summary.js

在主題/ JS /文件夾。這將包含+和 - 按鈕事件

功能upQuantity

功能downQuantity