Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Products Name, split onto 2 lines?

Products Name, split onto 2 lines?

Views: 1,556

Results 1 to 7 of 7
16 Feb 2010, 2:32 PM
#1
paulmd avatar

paulmd

New Zenner

Join Date:
Oct 2008
Posts:
25
Plugin Contributions:
0

Products Name, split onto 2 lines?

Is there a way to add a newline command (carriage return) within the Product Name field of a product?

This is because I would like to force the start of a second line as a subtitle, rather than just accepting the natural line breaks that occur when the first line is full up.

Thanks

16 Feb 2010, 3:38 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: Products Name, split onto 2 lines?

You should be able to use a <br /> when inputting your product names.

16 Feb 2010, 4:52 PM
#3
paulmd avatar

paulmd

New Zenner

Join Date:
Oct 2008
Posts:
25
Plugin Contributions:
0

Re: Products Name, split onto 2 lines?

Many thanks! That's sorted.

16 Feb 2010, 6:11 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Products Name, split onto 2 lines?

Bear in mind that this field is limited to 64 characters. While it is possible to increase this, it is not a good idea to make it too large.

18 Aug 2018, 6:58 AM
#5
natulechka avatar

natulechka

New Zenner

Join Date:
Aug 2018
Location:
Ukraine
Posts:
1
Plugin Contributions:
0

Re: Products Name, split onto 2 lines?

Hi!
How can I increase product's name to 80 characters?

schoolboy:

Bear in mind that this field is limited to 64 characters. While it is possible to increase this, it is not a good idea to make it too large.

19 Aug 2018, 2:41 AM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,805
Plugin Contributions:
15

Re: Products Name, split onto 2 lines?

You would need to modify the products_description table to increase the length of the products_name from 64 to whatever length you require.

Be forewarned that anything beyond that will probably be truncated in more places than you can imagine.

19 Aug 2018, 5:15 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Products Name, split onto 2 lines?

dbltoe:

You would need to modify the products_description table to increase the length of the products_name from 64 to whatever length you require.Be forewarned that anything beyond that will probably be truncated in more places than you can imagine.Would want to also modify the products_name field in orders_products so that the name doesn't get truncated there as well.