Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Short Description


blindek

Recommended Posts

Hello,

 

How is possible that short description will consider the html code?

 

If you check here:

 

http://www.seftiko.si/delovne-rokavice-showa-c-18_61.html

 

The short description don't consider new lines and other html tags, but when you go on "Details" page of the product in the long description there are considered html tags.

It would require code changes that would break other parts of osC, like Searches and a lot of unknowns...

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

so there is no possibilities, maybe some addons or something? That just \n new lines will shows?

There are all kinds of add ons that modify the product listings. Perhaps one of them will suit your needs. Search the Contributions for Short Description.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

So for item #129, you want the text to be formatted as you entered it?

 Showa 600
Rokavice iz PVC zelene barve
z bombažno podlogo brez šivov.
Hrapava obdelava zagotavlja
dober oprijem v suhem in mokrem
delovnem okolju.
- Dolžina: 25 cm
- Velikosti: 8M - 9L - 10XL...

Was that how you entered the product description text in the first place, or were there HTML tags in it? Probably the easiest thing would be to run the product description text through nl2br(), which inserts <br/> at every end-of-line. There may be an add-on to do that already. Or, use <pre> and </pre> tags around the text to suppress "reflow" of the lines.

 

Of course, if you suppress HTML formatting of the text, it will look odd when your display area becomes wider or narrower...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...