Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / specials, best sellers side box not appearing on product info page

specials, best sellers side box not appearing on product info page

Locked

Started by rajoo_sharma on 18 Sep 2009, 12:03 PM · Views: 1,343

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Sep 2009, 12:03 PM
#1
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Post #1 by rajoo_sharma

Hi,

I've turned on two boxes in right column, specials and best sellers. I don't know why they are not appearing on the product info (product details) page?

Is there any setting in the admin configuration to turn it off or on?

Regards

18 Sep 2009, 6:25 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

Specials says ...

  if (isset($_GET['products_id'])) {
    $show_specials= false;
  } else {
    $show_specials= true;
  }

Best Sellers says ...

// test if box should display
  $show_best_sellers= false;

  if (isset($_GET['products_id'])) {
    if (isset($_SESSION['customer_id'])) {
      $check_query = "select count(*) as count
                      from " . TABLE_CUSTOMERS_INFO . "
                      where customers_info_id = '" . (int)$_SESSION['customer_id'] . "'
                      and global_product_notifications = '1'";

      $check = $db->Execute($check_query);

      if ($check->fields['count'] > 0) {
        $show_best_sellers= true;
      }
    }
  } else {
    $show_best_sellers= true;
  }

So Specials are, by design, not showing on the product _info ...

Best Sellers are, by design, showing based on is customer logged in and has global notifications turned on ... if not logged in, then it does not show ...

You could customize these further with your templates and overrides to always show ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Sep 2009, 8:43 AM
#3
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Post #3 by rajoo_sharma

Thanks Ajeh,

I'll override the template then.

Thanks and Regards