Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    72
    Plugin Contributions
    0

    Default Turning off columns issues with if(cpath ....

    Hello - I've used this code in the past to turn off columns in my categories pages ....

    if (in_array($cPath,explode(",",'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 ,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,4 7,48,49,50,51,52,53,54,55,56,57,58,59,60,61,66,67,68,69,70')) ) {
    $flag_disable_right = true;
    }

    but now it doesn't seem to work since I upgraded to 1.3.9 because a URL that looked like this ...
    /index.php?main_page=index&cPath=84
    now looks like this ...
    /index.php?main_page=index&cPath=3_84

    I think the underscore may be causing a problem?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Turning off columns issues with if(cpath ....

    What happens if you use:
    $current_category_id

    instead of:
    $cPath

    on that?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Oct 2010
    Location
    San Juan Puerto Rico
    Posts
    62
    Plugin Contributions
    0

    Default Re: Turning off columns issues with if(cpath ....

    On the same lines... I want to remove both columns on the main page I am assuming just adding in the following to Define_main_page.php will work?

    PHP Code:
    $center_column_only = array('main_page');
    if (
    in_array($current_page_base,$center_column_only) ) 
    {
      
    $flag_disable_right true;
      
    $flag_disable_left true;

    Did I miss anything? I try it and my page goes to all text. I think I am missing something, but I am unsure. Still learning this code base.

 

 

Similar Threads

  1. Need help with turning somthing off
    By buttonmanb in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 5 May 2010, 05:37 PM
  2. need help with turning off the in stock box
    By buttonmanb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 May 2010, 11:58 PM
  3. Turning off columns on selected pages
    By red8ii8 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2007, 11:23 PM
  4. Turning off columns
    By waru in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jan 2007, 02:07 AM

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