Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

'Add to Cart' Alert Message

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #71  
Old 05-01-2012, 10:33 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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'"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #72  
Old 05-01-2012, 10:39 AM
  swartzieee's Avatar 
swartzieee swartzieee is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 58
 

Default Re: 'Add to Cart' Alert Message

Steve, I can give you ftp access if you would like?
__________________
4.7.11
BuckeyeFanApparel.com
Reply With Quote
  #73  
Old 05-01-2012, 10:42 AM
 
bitofeverything bitofeverything is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default Re: 'Add to Cart' Alert Message

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.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-05-01 at 1.31.33 PM.png
Views:	51
Size:	26.7 KB
ID:	3036  Click image for larger version

Name:	Screen Shot 2012-05-01 at 1.31.55 PM.png
Views:	51
Size:	13.7 KB
ID:	3037  Click image for larger version

Name:	Screen Shot 2012-05-01 at 1.32.07 PM.png
Views:	47
Size:	16.8 KB
ID:	3038  
__________________
Version 4.2.2 [linux] Adult Toy Superstore
Version 4.3.0 [linux] Coochy Outlet
Reply With Quote
  #74  
Old 05-01-2012, 11:04 AM
  swartzieee's Avatar 
swartzieee swartzieee is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 58
 

Default Re: 'Add to Cart' Alert Message

bitofeverything - Thank you for all your help. I am not sure how to fix this issue though.
__________________
4.7.11
BuckeyeFanApparel.com
Reply With Quote
  #75  
Old 05-01-2012, 12:04 PM
 
bitofeverything bitofeverything is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default 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
__________________
Version 4.2.2 [linux] Adult Toy Superstore
Version 4.3.0 [linux] Coochy Outlet
Reply With Quote
  #76  
Old 05-01-2012, 02:11 PM
  swartzieee's Avatar 
swartzieee swartzieee is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 58
 

Default Re: 'Add to Cart' Alert Message

I do not see where it has line breaks in my code.
__________________
4.7.11
BuckeyeFanApparel.com
Reply With Quote
  #77  
Old 05-01-2012, 02:57 PM
 
bitofeverything bitofeverything is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default Re: 'Add to Cart' Alert Message

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.
Attached Files
File Type: tpl cart_alert.tpl (4.1 KB, 39 views)
__________________
Version 4.2.2 [linux] Adult Toy Superstore
Version 4.3.0 [linux] Coochy Outlet
Reply With Quote
  #78  
Old 05-01-2012, 02:57 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: 'Add to Cart' Alert Message

Which site is this for? Is the code on the site?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #79  
Old 05-01-2012, 03:09 PM
  swartzieee's Avatar 
swartzieee swartzieee is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 58
 

Default 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.
__________________
4.7.11
BuckeyeFanApparel.com
Reply With Quote
  #80  
Old 05-01-2012, 03:25 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:19 PM.

   

 
X-Cart forums © 2001-2020