Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured products code addition


241

Recommended Posts

where and what in the includes/modules/featured.php code could be used to display the product description below the image.

 

I presume the code goes in here

 

 . $featured_products['products_image'], $featured_products['products_name'],

 

 

would this be $product_description['product_description'] and if so what query is required

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Steve

 

Are you wanting to show this as a short description or the full descritpion from product_info?

 

in modules/featured_products.php

   
     echo $featured_products_array[$i]['description'];

 

In modules/featured.php add the description to the eg p.products_name, p.products_description

 

Then further down add

   $featured_products_array[] = array('id' => $featured_products['products_id'], 
                                 'name' => $featured_products['products_name'], 
                         'description' => $featured_products['products_description'],

 

 

If you only want to add a short description the the code is slightly different

 

Dave

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...