Zen Cart Logo
Forums / Addon Sideboxes / code to show/hide currencies sidebox?

code to show/hide currencies sidebox?

Locked

Views: 1,765

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Oct 2010, 4:11 AM
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

code to show/hide currencies sidebox?

Hi, can someone please point me to the code/file that 'turns off' the currencies dropdown menu as a user approaches checkout?

Thanks,

Scott.

12 Oct 2010, 4:27 AM
#3
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: code to show/hide currencies sidebox?

Hi, Ive only got this going on our test site so far, ive moved the currencies and manufacturer dropdown menus up into the header.

For some reason though, it doesnt move the title of the sidebox too. Im referring to the code used in this thread; http://www.zen-cart.com/forum/showthread.php?t=160848&highlight=manufacturer+header - i used this to move both sideboxes, and they function just fine.

What I need, is for the currencies text to show and hide at the same time as its respective dropdown menu.

So I have two options;

  1. figure out how to also move the sidebox titles into the header
  2. Or use the same code that shows/hides the currencies dropdown to show/hide a hard-coded title at the same time.

Cheers,

Scott.

12 Oct 2010, 11:36 AM
#4
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: code to show/hide currencies sidebox?

Found it myself eventually. - includes/modules/sideboxes/currencies.php

I copied and modified the following code and put it into; includes/templates/my template/common/tpl_header.php

<?php    
  // don't display on checkout page:
  if (substr($current_page, 0, 8) != 'checkout') {
    echo ('Im currencies text!');
  } ?>

The above text now shows or hides along with the currency dropdown menu.