OmMary Posted March 22, 2021 Share Posted March 22, 2021 I am trying to add new ajax areas in cart page. see the aferent image. i want to put an input that will refresh when i increment the quantity of a product and show the number of the product inside the cart. Please help!!! Link to comment Share on other sites More sharing options...
endriu107 Posted March 22, 2021 Share Posted March 22, 2021 Check this:https://devdocs.prestashop.com/1.7/themes/reference/javascript-events/#dispatched-events Link to comment Share on other sites More sharing options...
joseantgv Posted March 22, 2021 Share Posted March 22, 2021 Are you using a hook and this hook is not refreshed when you change a quantity? Are you using last PS version? Link to comment Share on other sites More sharing options...
OmMary Posted March 22, 2021 Author Share Posted March 22, 2021 7 minutes ago, joseantgv said: Are you using a hook and this hook is not refreshed when you change a quantity? Are you using last PS version? i am using prestashop 1.7.6.8 i am using a variable in smarty in that place after cart title, i call the ajax function which is called in the quantity input as well data-refresh-url="{url entity='cart' params=['ajax' => true, 'action' => 'refresh']}. i think i made a mistake at this call..u know what steps i should follow to succed? i should modify the controller? cartController? i saw there are some "asajRefresh" classes there..and in the core.js? Thank you for your time! Link to comment Share on other sites More sharing options...
joseantgv Posted March 23, 2021 Share Posted March 23, 2021 Maybe this can help you: https://github.com/PrestaShop/PrestaShop/pull/19762/files https://github.com/PrestaShop/PrestaShop/pull/17294/files Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now