Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Format prodict description?


beachboy

Recommended Posts

How do I format the produt descriptions so they don't look like this:

Detailed Description: Compact and light weight Lever throttle for feather control Rear exhaust air flow system Specifications: Free speed: 19000 rpm Operation pressure: 90 psi Minimum hose: 1/4" 0.6 HP Air consumption: 3 cfm Air inlet: 1/4" Length: 5.75" Weight: 1.25 lb

I saw the code on here once to seperate the lines but can't find it again..search came up empty..

Link to comment
Share on other sites

You can use any and all HTML in the product description. You do know HTML don't you? IMO it would look best in a table. You could make a template that you can copy and paste for each product description and then simply change the text depending on what you want.

Link to comment
Share on other sites

That works but it's a lot of work for a long description
Hitting control-v once per line doesn't seem that bad (i.e. copy <br> and then paste it everywhere). I like the idea of copying in a table and then editing it to, although sometimes you might miss a section and have information from the default product left there by mistake.

 

I think the tag you might be thinking of is <pre> which will use a fixed width font with line breaks and other whitespace as they are in your text, no need for <BR>

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

I thought there was a 255 character limit for the product description field? I saw in the wiki doc that you can enter basic html, but including tables seems like it would take up a lot of characters. Or can we just set this field to no limit.

 

I'm just getting started with osc.

 

I need to add new fields for the products as well. I did see some discussion on this - wondering if there is a simple way to do this.

 

Thanks

Link to comment
Share on other sites

The product descriptions are stored in the database as text instead of varchar(255) so you can go over 255 characters if you want too.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...