![]() |
Changes in View Cart
1 Attachment(s)
Hello, i do some changes in my view-cart layout in order to looks like in capture. For that i replace quantity_box.twig with my new implementation.
This is my own quantity_box.twig file HTML Code:
|
Re: Changes in View Cart
Hi @Alex,
To achieve that try to submit the quantity form using JQuery, once you hit +/- button. X-Cart should catch this form submit and do that via AJAX, so you should get desired result. If it does not work, try to add 'watcher' CSS class to your +/- buttons and remove form submit via JQuery. Please, keep me posted about results. Tony |
Re: Changes in View Cart
Quote:
I put "watcher" css class on +/- buttons such as HTML Code:
<div class="watcher fdmteam_quantity_plus" id="plus-{{ this.getBoxId() }}"></div> |
Re: Changes in View Cart
1 Attachment(s)
Quote:
I put this function jQuery('.update-quantity').submit(); and it works. But i have problem in quick view page if a product has variants because the script is executed for each element and this cause a problem with my increment value (i). |
Re: Changes in View Cart
Hi @Alex,
Thanks for reaching out. Could you please explain the problem in more detail? If we talk about quick view product page, I would assume that clicking +/- would just change value in quantity box and would not call jQuery('.update-quantity').submit(); function. The same happens when you change quantity manually there. Tony Quote:
|
Re: Changes in View Cart
Quote:
|
Re: Changes in View Cart
Quote:
|
All times are GMT -8. The time now is 09:42 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.