Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Name in Cart Max only 20 Characters


ipatel

Recommended Posts

Please help me

 

My products name appear fine on every page, they show up, however as soon as I add to cart and view the cart content, it display only the first 20 characters.

 

Please can someone help me.

 

Thanks

Link to comment
Share on other sites

It's a quirk of your template.

 

They've added code to limit the output.

 

Post the contents of your /catalog/shopping_cart.php (preferrably bewteen CODE tags).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Could it be the value in MAX_DESCR_NAME_SHOPPCART

 

Is this maintainable in your max values bit of the admin area?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Hi, Ive changed the number 0,MAX_DESCR_NAME_SHOPPCART to 5,MAX_DESCR_NAME_SHOPPCART

all that does is starts 5 characters later

eg:

0= Pointe Pre-Inked Sta

5= e Pre-Inked Stampers

 

What would i be looking for in max values in the admin area? becuase i do not see one for product name or product title. Also i don't understand what

0,1,2,3,4 would do.

 

Thanks

Link to comment
Share on other sites

Change:

 

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . substr($products[$i]['name'],0,MAX_DESCR_NAME_SHOPPCART) . '</a>';

to

 

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['name'] . '</a>';

MAKE A BACKUP FIRST.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It should be in the admin area somewhere

 

Alternatively change

 

substr($products[$i]['name'],0,MAX_DESCR_NAME_SHOPPCART)

 

to

 

$products[$i]['name']

 

or

 

substr($products[$i]['name'],0,30)

 

Change 3 to your preferred value.

 

The best solution is to find it in the admin area.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

THANK YOU!

The changing of the code has solved the problem.

 

I appreciate your efforts, and to show the appreciation, I am willing to donate via paypal.

You could PM me your paypal e-mail. It will only be $10 (£5) just to show mt grattitude.

 

Thanks once again.

 

Also if you could help me with the below, I will double the donation, (is this cheeky?)

 

removeqi3.th.png

 

extractbw3.th.png

 

Many Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...