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

Code Error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2010, 03:54 PM
  DominicanCreations's Avatar 
DominicanCreations DominicanCreations is offline
 

Senior Member
  
Join Date: Jan 2010
Location: Montreal, Canada
Posts: 151
 

Default Code Error

Hi, I seem to be having a problem with displaying an image on my home page. I am missing something. I see the following text code next to my credit card image on the right side.

div style="text-align:center; padding:5px; "><img src="{$ImagesDir}/2cocreditcards_vert.jpg" alt="" />

Can someone tell me where I made my mistake.

Thanks,

Eric
http://dominicancreations.com
__________________
X-Cart Version 4.5.1

http://dominicancreations.com
sales@dominicancreations.com

facebook.com/dominicancreations

SUPPORT SELF-EMPLOYED ARTISANS
Reply With Quote
  #2  
Old 11-09-2010, 04:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Code Error

Looks like you are missing an opening < in front of the div tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-09-2010, 04:13 PM
  DominicanCreations's Avatar 
DominicanCreations DominicanCreations is offline
 

Senior Member
  
Join Date: Jan 2010
Location: Montreal, Canada
Posts: 151
 

Default Re: Code Error

I tried that but then it messed up my top section. It went all out of alignment.

Eric
__________________
X-Cart Version 4.5.1

http://dominicancreations.com
sales@dominicancreations.com

facebook.com/dominicancreations

SUPPORT SELF-EMPLOYED ARTISANS
Reply With Quote
  #4  
Old 11-09-2010, 04:53 PM
  DominicanCreations's Avatar 
DominicanCreations DominicanCreations is offline
 

Senior Member
  
Join Date: Jan 2010
Location: Montreal, Canada
Posts: 151
 

Default Re: Code Error

I seem to have solved my problem using this code: <!--div style="text-align:center; padding:5px; ">--!><br><center><img src="{$ImagesDir}/2cocreditcards_vert.jpg"

Not sure if this is the correct way to do it but it worked, at least I think so, maybe it will create problems elsewhere that I have not yet discovered !

Eric
__________________
X-Cart Version 4.5.1

http://dominicancreations.com
sales@dominicancreations.com

facebook.com/dominicancreations

SUPPORT SELF-EMPLOYED ARTISANS
Reply With Quote
  #5  
Old 11-09-2010, 05:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Code Error

Don't use html comments in smarty, use this:

{* hidden code *}

Or just delete it completely.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-09-2010, 05:52 PM
  DominicanCreations's Avatar 
DominicanCreations DominicanCreations is offline
 

Senior Member
  
Join Date: Jan 2010
Location: Montreal, Canada
Posts: 151
 

Default Re: Code Error

Thanks for the info.

Eric
__________________
X-Cart Version 4.5.1

http://dominicancreations.com
sales@dominicancreations.com

facebook.com/dominicancreations

SUPPORT SELF-EMPLOYED ARTISANS
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 11:51 AM.

   

 
X-Cart forums © 2001-2020