Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured products mod


Guest

Recommended Posts

Hello

I made some modifications to the Featured Products mod that I will upload as a new version, but I need some help to finish it.

 

With this contribution you can set a short description for every product, and the idea is to show this short description in the default page.

 

Everything works great! I can create new products with a short description or not in every language set in the site, I can previsualize the new product, or update it. But (yes.. there is allways a but!)

 

In catalog/includes/modules/featured_products_short.php (is a modification of featured_products.php) is where I have the code that shows the list of featured products in default.php

 

<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><b><u>' . $featured_products_array[$i]['name'] . '</u></b></a><br>' . '<br>' . TEXT_PRICE . ' ' . $products_price; ?></td>

 

I'd like to show the short description in that cell.. but I can't do it! I know that I have to take the value from catalog/includes/modules/featured_products.php

 

$featured_products_query = tep_db_query($featured_products_query_raw);

 while ($featured_products = tep_db_fetch_array($featured_products_query)) {

   $featured_products_array[] = array('id' => $featured_products['products_id'],

                                   'name' => $featured_products['products_name'],

                                   'shortdescription' => $featured_products['products_shortdescription'],

                                   'image' => $featured_products['products_image'],

                                   'price' => $featured_products['products_price'],

                                   'specials_price' => $featured_products['specials_new_products_price'],

                                   'tax_class_id' => $featured_products['products_tax_class_id'],

                                   'manufacturer' => $featured_products['manufacturers_name']);

 }

 

 

But if I add $products_shortdescription or $featured_products_array[$i]['shortdescription'] nothing seems to be working..

 

Some help?

 

Emiliano

 

my english really sucks.. but i hope that someone could understand what i'm trying to say...

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