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

Product description html code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-17-2006, 01:38 PM
 
laffe laffe is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 46
 

Default Product description html code

I wanted to add html code to my product description.
But all the text disapeared when i saved the page.

Isnt it possible to have html code in the product description?

Leif-Harald
__________________
sybo.no. your norwegian poker supplier

X-cart version 4.0.18
Reply With Quote
  #2  
Old 11-17-2006, 04:18 PM
 
balinor balinor is offline
 

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

Default Re: Product description html code

It shouldn't be a problem....remember not to put <html>, <head> or <body> tags in your html
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-18-2006, 02:08 AM
 
laffe laffe is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 46
 

Default Re: Product description html code

There are none of those tags.
I can use code for fonts and adding images. But I wanted to add the adsense code.
That messed it up, and all code was deleted when i stored the info

Leif-Harald
__________________
sybo.no. your norwegian poker supplier

X-cart version 4.0.18
Reply With Quote
  #4  
Old 11-18-2006, 03:03 AM
 
balinor balinor is offline
 

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

Default Re: Product description html code

Ahhh...you didn't mention JavaScript That can't be added to the description tags...you need to add that to the template itself.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-18-2006, 03:21 AM
 
laffe laffe is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 46
 

Default Re: Product description html code

ok. sounds complicated. Not what I can do. Thanks

LHN
__________________
sybo.no. your norwegian poker supplier

X-cart version 4.0.18
Reply With Quote
  #6  
Old 02-06-2010, 01:20 PM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Default Re: Product description html code

strange you should mention no <body> tags, have spent some time trying to get a new <DIV> based layout to work!!! no matter what i try it keeps shifting to the left over the image! the usual way of creating a container then contents within the tags is to use a body tag with css style to center it all. This really messes up so i can see now a body tag is not possible.

strange thing is the current product description layout uses a div container with a table based layout inside and it all sits where it should! i need to change to divs and not tables as all my descriptions are to change.......is this possible with x-cart....

any comments appreciated..

www.dvdinfo.org

version 4.2.0
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #7  
Old 02-06-2010, 03:19 PM
 
balinor balinor is offline
 

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

Default Re: Product description html code

Ok, forget about the body tag as that has nothing to do with formatting. If your divs are overlapping it is an issue with your code, not the body tag. Perhaps if you post what code you are trying to use in the description we can help debug it for you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 02-20-2010, 02:36 AM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

Smile Re: Product description html code

Hi, thanks for reply, i found the body tag was a problem in the code as x-cart body css styles were being applied to my own template. So firstly i removed body tags, html tags and just used the DIV tags, plus my own css rules. With the addition of a few inline rules to force css to ignore xcart rules on my font sizes. and color. Using the CENTER tags also forces the whole template in the middle of the xcart layout.

I also included a top rule to make all browsers comply to the template.

below is the code showing an example product which works exactly how i wanted it to, its only basic, but does the job and doesnt use tables. Only css and Divs.

thanks again for the reply, anyone feel free to copy and use the template or any part of it in your site (if it helps others) then i am happy to share it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<style type="text/css">

.container {width: 680px;
height: 685px;
font-family: Arial, Helvetica, sans-serif;
color: #666;
background-color: #FFF;

}



.header-title {
width: 550px;
height: 70px;
margin: 1px;
float: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 36px;
color: #FFF;
font-weight: bold;
line-height: 70px;
background-image: url("http://www.dvdinfo.org/ebay-images/strongtitle.gif");
}



.iconright {width: 123px;
height: autopx;
margin-top: 1px;
margin-right: 1px;
float: right;

}


.contentmain {
height: auto;
margin: 1px;
float: left;
text-align: left;
width: 546px;
font-size: 15px;
padding: 2px;

}

.rightpanelImgs {width: 123px;
height: auto;
margin-right: 1px;
float: right;
}


.imageright {margin-bottom: 2px;}


.featuresproduct {width: 546px;
height: auto;
float: left;
margin: 1px;
text-align: left;
padding-top:5px;
font-size: 13px;
font-weight: bold;
padding: 2px;
}



p {padding: 2px;
margin: 0;}



.imagelarge {width: 268px;
height: 225px;
margin: 1px;
clear: both; float: right;}

.postage {width: 404px;
height: auto;
clear: left; float: left;
text-align: left;
margin: 1px}

.paymentmethod {width: 404px;
height: auto;
float: left;
text-align: left;
margin: 1px}

.whatwill {width: 404px;
height: 65px;
float: left;
text-align: left;
margin: 1px
}



.strongbackground {font-weight: bold;
font-size: 15px;
background-image: url("http://www.dvdinfo.org/ebay-images/strongbackground.gif");
color: #FFF;}

</style>

<center>


<div class="container">

<div class="header-title">Sega Rally Xbox 360</div>

<div class="iconright"><img src="http://www.dvdinfo.org/ebay-images/xbox360-logo-small.jpg" width="121px" height="70" alt="xbox 360"></div>

<div class="contentmain">
<p style="font-size: 15px; color: #666;">Sega Rally encourages players to put the pedal to the metal and enjoy thrilling head-to-head racing. Skilled driving will go hand-in-hand with pure luck as you hurtle around looping tracks in a wide selection of 4WD, 2WD & Classic vehicles that react quite differently depending upon the racing surface. Sega Rally offers a vast variety of fully deformable environments and surfaces, from littered gravel tracks, all weather tarmac roads, to snow driven trails - no two laps let alone a race will ever be the same.</p>
<br>

<p style="font-size: 15px; color: #666;">This Game is in Very Good condition complete with case and booklets.</p>
</div>

<div class="rightpanelImgs"><img class="imageright" name="rightimage1" src="http://www.dvdinfo.org/ebay-images/SMALL/sega-rally1-small.jpg" width="121px" height="168" alt="place holder"/>
<img class="imageright" name="imageright2" src="http://www.dvdinfo.org/ebay-images/SMALL/sega-rally2-small.jpg" width="121px" height="68px" alt="tester">
<img class="imageright" name="imageright3" src="http://www.dvdinfo.org/ebay-images/SMALL/sega-rally3-small.jpg" width="121px" height="68px" alt="tester">
<img class="imageright" name="imageright4" src="http://www.dvdinfo.org/ebay-images/SMALL/sega-rally4-small.jpg" width="121px" height="68px" alt="tester">
</div>

<div class="featuresproduct"><ul style="font-size: 13px; color: #666;">

<li>Bumper to bumper Rally racing</li>
<li>Fully deformable environments & surfaces</li>
<li>Speed & adrenaline</li>
<li>Offers a wonderfully vibrant graphical world</li>
<li>A wide selection of 4WD, 2WD and Classic vehicles</li>
<li>Advanced AI, multiplayer and online capabilities</li>
<li>Arcade accessibility with simulation depth</li>
<li>Supurb driving experience</li>
<li>Customizable cars</li>
</ul>
</div>

<div class="imagelarge">

<object type="application/x-shockwave-flash"

style="width:268px; height:225px;"

data="http://www.youtube.com/v/ZYH0c6e8HdA&autostart=1&rel

=0&autoplay=1">
<param name="movie"

value="http://www.youtube.com/v/ZYH0c6e8HdA&autostart=1&re

l=0&autoplay=1" />
</object>

</div>
<div class="postage">

<p class="strongbackground">Postage</p>
<p style="font-size: 13px; color: #666;">All items are sent 1st class and will be despatched same day if payment received before 2pm. Proof of postage is obtained for every item we send and includes insurance against loss or damage.</p>
</div>



<div class="paymentmethod">
<p class="strongbackground">Payment methods </p>
<p style="font-size: 13px; color: #666;">Prefered payment method is Paypal, you can use most debit credit cards and there is no need to be registered. Alternitively we accept postal order or cheque should you prefer.</p>
</div>
<div class="whatwill">
<p class="strongbackground">What will i receive</p>
<ul style="font-size: 15px">
<li>1 X Sega Rally Xbox 360 Game with booklets</li></ul>
</div>
</div>


</center>
__________________
SURECOM XCART V4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:54 PM.

   

 
X-Cart forums © 2001-2020