Zen Cart Logo
Forums / Basic Configuration / Need sidebox to appear on 1 page only

Need sidebox to appear on 1 page only

Locked

Views: 724

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Mar 2010, 9:57 AM
#1
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Need sidebox to appear on 1 page only

Hi folks

Just need some programming advice.

I'm adding a custom sidebox to my "billing" page (to include payment FAQ).

I downloaded the kuroi's "blank sidebox plugin" from the addons page, and have modified it with the advice from here.

However, I'm not entirely sure what the code should look like in terms of replacing the link. The tutorials code looks like:

if ($this_is_home_page) {

the link on my billing page (where I want the sidebox to appear) looks like:

..../index.php?main_page=no_account

...due to using Numinix's Fast and Easy Checkout plugin, set to COWOA.

I tried changing the code to:

if ($no_account) {

...but that didn't seem to do much (the sidebar isn't even showing at the moment).

I presume it's something incredibly simple - someone care to help?!

I'd really appreciate it!

Regards,

Seven

7 Mar 2010, 12:23 PM
#2
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Re: Need sidebox to appear on 1 page only

I'll answer my own question. This works for me, not sure if it's the correct way to do things (not a programmer), but I'm happy....

  if (in_array($current_page_base,explode(",",'no_account')) ) {
    $show_billing_questions = true;
  } else {
    $show_billing_questions = false;
  }

If anyone else is looking for a solution, there it is.