X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   'Add to Cart' Alert Message (https://forum.x-cart.com/showthread.php?t=56998)

cflsystems 05-01-2012 10:33 AM

Re: 'Add to Cart' Alert Message
 
Seems like the code is escaped but can't tell you much without seeing it in action. You use "|escape" to escape special characters, you can use "|escape:'alt'" or "|escape:'html'"

swartzieee 05-01-2012 10:39 AM

Re: 'Add to Cart' Alert Message
 
Steve, I can give you ftp access if you would like?

bitofeverything 05-01-2012 10:42 AM

Re: 'Add to Cart' Alert Message
 
3 Attachment(s)
somehow the js code is getting broken up on multiple lines.
I'm attaching screenshots of working code, the working source code and the source code from buckeye.

swartzieee 05-01-2012 11:04 AM

Re: 'Add to Cart' Alert Message
 
bitofeverything - Thank you for all your help. I am not sure how to fix this issue though.

bitofeverything 05-01-2012 12:04 PM

Re: 'Add to Cart' Alert Message
 
something is placing the javascript code across multiple lines.
The code in the cart_alert.tpl should look like the 1st screenshot.
If your code looks like that, then look at the product_thumbnail.tpl as the newline braeks are happening directly after the image tag

swartzieee 05-01-2012 02:11 PM

Re: 'Add to Cart' Alert Message
 
I do not see where it has line breaks in my code.

bitofeverything 05-01-2012 02:57 PM

Re: 'Add to Cart' Alert Message
 
1 Attachment(s)
I've attached a copy of the cart_alert.tpl that I use.
The only other thing that I can suggest is taking the code apart piece by piece.

cflsystems 05-01-2012 02:57 PM

Re: 'Add to Cart' Alert Message
 
Which site is this for? Is the code on the site?

swartzieee 05-01-2012 03:09 PM

Re: 'Add to Cart' Alert Message
 
The site is http://www.BuckeyeFanApparel.com

The code is currently active. I could grant you access to ftp if you would like Steve.

cflsystems 05-01-2012 03:25 PM

Re: 'Add to Cart' Alert Message
 
Yes you have line breaks in the code which will break the js script. Everything between

Shadowbox.open(

and

',height:420,width:600});}

has to be one line, you can have empty space between tags but no line breaks


All times are GMT -8. The time now is 12:04 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.