Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Additional Sidebox Only to Appear in current_category_id

    Quote Originally Posted by Aetherlux

    use either:


    if ($_GET['cPath'
    == 1_8 or $_GET['cPath'] == 1_9)

    or

    IF ($current_category_id=='8' or $current_category_id=='9')
    I'm pretty sure you cannot use the underscores in the cPath and you do not use the apostrophes in the category_id

    What exactly are you trying to achieve Aetherlux?

    This is how I got it to work though:

    PHP Code:
    if ($current_category_id == or $current_category_id == or $current_category_id == 33 or $current_category_id == 34 or $current_category_id == 35 ) {
    require(
    $template->get_template_dir('tpl_lingerie_sizes_sidebox.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_lingerie_sizes_sidebox.php');
    $title BOX_HEADING_LINGERIE_SIZES_SIDEBOX;
    $title_link false;
    require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);


  2. #12
    Aetherlux Guest

    Default Re: Additional Sidebox Only to Appear in current_category_id

    Yea, I messed up with the apostrophes. I was just pointing out that $current_category_id referred to the single digit and that cpath refered to the underscore sparated path. In your previous examples you had the two swapped so I was trying to help you realize that fact so that you could get it working. I see that you have done that now, so congrats on achieving your goal.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need sidebox to appear on 1 page only
    By Sevenhelmets in forum Basic Configuration
    Replies: 1
    Last Post: 7 Mar 2010, 01:23 PM
  2. i made a sidebox but the sidebox dont appear on my store
    By antonio_Portugal in forum General Questions
    Replies: 1
    Last Post: 21 Jul 2009, 04:51 AM
  3. Adding additional sidebox to one category only?
    By Dunk in forum General Questions
    Replies: 6
    Last Post: 21 Feb 2009, 11:04 AM
  4. EZ Pages sidebox appear in only specific category id's?
    By HTsean in forum General Questions
    Replies: 1
    Last Post: 14 May 2008, 03:19 PM
  5. More Information Sidebox to appear only when logged in
    By mathgyrl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jan 2008, 08:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR