| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
AJAX Add to Cart Issue | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
AJAX Add to Cart Issue
Hi All,
I'm having a strange issue with the Ajax add to cart functionality. The add to cart function is working properly, but when the add to cart button returns to it's normal "state" after a product is added, the custom styling I've done to my select boxes goes away: http://future.thefutureforward.com/~field/product-one.html I'm using the jQuery UI-based "selectmenu" plugin to replace the select menu styles. I'm guessing it has something to do with the "ajax.widgets.add2cart.obj.prototype.cleanAddedSta te" function in the "common_files/js/ajax.add2cart.js" file, but just adding the js calls for "selectmenu" into that function doesn't work. Any thoughts on why those select boxes are losing their styling when a product is added would be much appreciated!!
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
#2
|
|||||||||
|
|||||||||
Re: AJAX Add to Cart Issue
This is happening because in here - /include/func/func.ajax.php - at the end of each function the original template is called and it replaces whatever is there on the page. I still can't figure out why it is designed that way (4 versions already), it seems unnecessary thing to do. You can either comment out lines like this
Code:
Or replace with yoru own template
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: AJAX Add to Cart Issue
Steve,
That is quite odd, indeed. Commenting out that line did the trick. Thank-you SO MUCH for this tip.
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
#4
|
|||||||||
|
|||||||||
Re: AJAX Add to Cart Issue
I thought I'd add a side note to this, you can also use the ajax template call to call a different template after add to cart. Very handy if you want to pop up a continue shopping or checkout button after add to cart has been pressed.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|