Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Right column disable on tell_a_friend page but enable on product_info_display page

Right column disable on tell_a_friend page but enable on product_info_display page

Started by inception on 28 Dec 2011, 7:15 PM · Views: 822

Results 1 to 2 of 2
28 Dec 2011, 7:15 PM
#1
inception avatar

inception

New Zenner

Join Date:
Jun 2011
Posts:
63
Plugin Contributions:
0

Post #1 by inception

i want to disable right column on tell a friend page
but i want to enable right column on product info display page

i tried adding the code to tpl main page, but it seams the right column must enable/disable both to product_info_display and tell_a_friend pages

any ideas?

29 Dec 2011, 2:31 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Let's say you want to disable for tell_a_friend and for privacy, you can use:

  if (in_array($current_page_base,explode(",",'privacy,tell_a_friend')) ) {
    $flag_disable_right = 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!