Forums / Templates, Stylesheets, Page Layout / Specials in Product Info Right Column?

Specials in Product Info Right Column?

Started by susan101 on 21 Aug 2011, 2:06 AM · Views: 800

Results 1 to 5 of 5
21 Aug 2011, 2:06 AM
#1
susan101 avatar

susan101

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Specials in Product Info Right Column?

Does anyone know how I can get the Specials and Bestsellers sideboxes to show in the right column on the product info page?

21 Aug 2011, 3:08 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Specials in Product Info Right Column?

Using your templates and overrides, you want to copy:
/includes/modules/sideboxes/specials.php

to your overrides directory:
/includes/modules/sideboxes/your_template_dir/specials.php

In the code you will see:

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

This tells it NOT to show when there is a $_GET['products_id']

Change the code to read:

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

For the best_sellers, you need to copy:
/includes/modules/sideboxes/best_sellers.php

to your overrides directory:
/includes/modules/sideboxes/your_template_dir/best_sellers.php

This is designed to only show when the $_GET['products_id'] is set and when the customer is setup for global notifications ...

The easiest way to change that is to change the code:

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

to read:

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

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!

30 Aug 2011, 8:40 PM
#3
tzre avatar

tzre

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

Re: Specials in Product Info Right Column?

Why does that code exist ? I mean :

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

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

Why shouldnt specials be shown on a products_info page ? What were the reasons to Not show it?

30 Aug 2011, 10:33 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Specials in Product Info Right Column?

tzre:

Why does that code exist ? I mean :

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

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

> 
> Why shouldnt specials be shown on a products_info page ? What were the reasons to Not show it?

To not distract the customer from paying full price for whatever product/s they're viewing?

The best way to learn is to try stuff. But, back it up first.

31 Aug 2011, 2:03 PM
#5
tzre avatar

tzre

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

Re: Specials in Product Info Right Column?

No, seriously...