Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove short description in product page


vjboc

Recommended Posts

Posted

Hello:

 

Solution to remove short descriptions from product pages in osCommerce.

 

Locate: includes\modules\product_listing.php

Remove

$p_desc = substr(strip_tags($product['products_description']), 0, MAX_DESCR_1).'...<br>';

Was on line 180 for me.

 

Locate: includes\modules\new_products.php

Remove

$p_desc = ''.substr(strip_tags($product['products_description']), 0, MAX_DESCR_1).' ...';

Was line 36 for me.

 

Best of luck and Kindest Regards

Tom

Posted

The template is an oscommerce template. When I uploaded the template to my server it had the oscommerce shopping cart already attached to it. Is there a somewhat of a direction where the code would be if there wasn't a template.

  • 7 months later...
Posted

i know this is old thread, but i need to know how to edit this very same file with the short description. instead of removing it, i want to know about truncating the amount of characters.

 

more specifically, what i want to know is increasing the truncation. the amount of characters my osc short description is set to is only like 5 or 6 characters. i want to make it many more characters.

 

if at all possible, can someone please help me trace back how that piece of code get's it's info from the full english description?

 

ultimately, what i would like to do is make that piece of code grab text from the full description of a different language, like the spanish or dutch description.

 

any tips or pointers or help would be much appreciated.

  • 3 months later...
Posted

Hello:

 

Solution to remove short descriptions from product pages in osCommerce.

 

Locate: includes\modules\product_listing.php

Remove

$p_desc = substr(strip_tags($product['products_description']), 0, MAX_DESCR_1).'...<br>';

Was on line 180 for me.

 

Locate: includes\modules\new_products.php

Remove

$p_desc = ''.substr(strip_tags($product['products_description']), 0, MAX_DESCR_1).' ...';

Was line 36 for me.

 

Best of luck and Kindest Regards

Tom

 

 

 

Hey I know this is an old post. I removed short description and I put these codes back in and I still have no short description. Somebody please help. What else is needed to have a short description?

Archived

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

×
×
  • Create New...