| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Custom Add To Cart Button with AJAX Possible? 4.3 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Way too much CSS going on, I'm not sure what to change when I look at the button.tpl file.
I have different graphics I want to use for the Add To Cart button. What do I need to change to update JUST the Add to cart button and not the others? Thanks!
__________________
xcart gold v.4.2.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Buttons in xcart are ridiculous and hard to work with. To change only add to card open button.tpl and add another condition to use your graphics, something like
if $mycondition eq "y" and then everywhere where add to card buttons is call you have to add mycondition="y" to the include
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() that's ridiculous and inefficient, I can't believe they would build a cart that didn't allow you to simply change a button design.. Thank you for your help, but I have no idea where to put it, and I think after hours of trying, I'm just beat. Maybe there's a mod out there for this, I'll have to check.
Thanks again..
__________________
xcart gold v.4.2.2 |
|||||||
#4
|
|||||||||
|
|||||||||
![]()
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
You can contact me at the email in my signature, I can help you with this
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#6
|
|||||||
|
|||||||
![]() man if someone could post a nice solution for this and to get the ajax minicart out of the dialogue box with clean code.... that would be very nice....
if you want to PM me with a quote I will pay NOW! need this asap!
__________________
A Few v4+ Xcarts |
|||||||
#7
|
|||||||||
|
|||||||||
![]() I have to agree, we had some developers work on changing our cart around, now the ajax buttons don't work, spent three hours on it, but had to come up with a hack workaround cause I didn't know how to fix the this.box.length issue.
The code for changing this out as a animated gif is overly complex, they would have done better to just swap out the entire button element and then put it back when done, but they are doing all sorts of nasty stuff with the DOM and looking for span tags with specific classes attached to them like span.button-right and span.button-left, all I can say is I never would have designed something so overly complicated. THIS IS WHAT I HAD TO CHANGE (bad workaround) if someone could tell me the real issue, I would like to know. // Widget :: check - ready widget or not ajax.widgets.add2cart.obj.prototype.isReady = function() { this.box.length = 1; //new code added for fix to problem return this.form.length > 0 && this.productid > 0 && this.box.length > 0; }
__________________
-Eric X-cart 4.3.2 up and running. Apache, PHP 5.2, APC, Redhat, Checkout One, On Sale, Smart Search, Remember Cart. Lots of other customization's, but perhaps typical of x-cart installations. X-cart 5 sort of in limbo, trying to make things work without much luck. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|