Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Short Product Description


Guest

Recommended Posts

I tried to add the short product description contrib to my site, It really messed up the tables, even with moving the pictures to list column 1.

 

There is a function in the general.php file that wa made for the contrib:

 

function osc_trunc_string($str="",$len=150,$more=1)

 

The way I want to implement this is by putting a <br> into the product listing colum and putting in the code example: (my code is slightly modified to add the manufacturer to the list also)

 

$lc_text = '<a class="productListing-data" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . ($HTTP_GET_VARS['cPath'] ? $HTTP_GET_VARS['cPath'] : tep_get_product_path($listing_values['products_id']) ) . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['manufacturers_name'] . ' ' . $listing_values['products_name'] . '</a><br>' . osc_trunc_string(strip_tags($listing_values['products_description'], ''), PRODUCT_LIST_DESCRIPTION_LENGTH) . '';

 

So I'm wondering what code would I need so that I'm not dealing with broken colum and table issues currently present in my site http://www.forksdrumcloset.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...