| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changes in View Cart | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
__________________
Soptareanu Alex |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
![]() Quote:
I put "watcher" css class on +/- buttons such as HTML Code:
__________________
Soptareanu Alex |
|||||||
#4
|
|||||||
|
|||||||
![]() 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).
__________________
Soptareanu Alex |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||
|
|||||||
![]() Quote:
__________________
Soptareanu Alex |
|||||||
#7
|
|||||||
|
|||||||
![]() Quote:
__________________
Soptareanu Alex |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|