Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Product Info - Show a Bestseller Image

Product Info - Show a Bestseller Image

Locked

Started by namsingh on 16 Aug 2008, 9:24 PM · Views: 978

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
16 Aug 2008, 9:24 PM
#1
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Product Info - Show a Bestseller Image

Al i'm trying to do is show an image on the product info page if the item is a bestseller. Here's my code so far that I am inserting into the tpl_product_info_display file

<? $product_best_sellers_query = "select p.products_id from " . TABLE_PRODUCTS . " p where p.products_status = '1' and p.products_ordered > 0 and p.products_id = $products_model; if ($best_sellers_query !='') { echo('Bestseller'); } ?>