Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Sidebox Customization

    Trying to use this zc tutorial to have only certain sideboxes show on my checkout page (also have numinix's Fast and Easy Checkout mod) installed.

    I'm switching out $show_featured in the tutorial with what I believe to be the correct name for the variable and it doesn't seem to be working as should. The sideboxes show up on all pages.

    I'm trying to accomplish this with the shopping cart, information and create account sideboxes. Any ideas?
    Thank you,
    autoace

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Customization

    What variable names are you using for the boxes? What are those box ids in view source? What test code are you using (give full example)?

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Sidebox Customization

    Quote Originally Posted by gjh42 View Post
    What variable names are you using for the boxes? What are those box ids in view source? What test code are you using (give full example)?
    For the information sidebox:

    if ($this_is_checkout_page) {
    $show_information = true;
    } else {
    $show_information = false;
    }

    For the shopping cart sidebox:
    if ($this_is_checkout_page) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }

    and the create account sidebox:
    if ($this_is_checkout_page) {
    $show_create_account = true;
    } else {
    $show_create_account = false;
    }

    I have the files installed in includes/modules/sideboxes/MY_TEMPLATE
    Thank you,
    autoace

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Customization

    $this_is_xxx only exists for the home page. Others need to be tested for like

    if($current_page_base == 'checkout_shipping') {
    or
    if(in_array($current_page_base, explode(',','checkout_shipping,checkout_payment,checkout_success'))) {

    Look at the "main_page=xxx" in the address bar when on the page to get the exact id to use.

  5. #5
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Sidebox Customization

    also the ids in view source are:

    shoppingcart, information

    I can not get the create account sidebox to show, so I'm not sure of the id.
    Thank you,
    autoace

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Customization

    Actually, the sidebox ids do not really matter for this purpose (aside from settings not interfering with each other); whatever variable name you use for $show_yyy just needs to be carried through in the rest of that file.

  7. #7
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Sidebox Customization

    OK, I've tried testing all 3 code scenarios:

    //if ($this_is_checkout_page) {
    //if($current_page_base == 'checkout') {
    if(in_array($current_page_base, explode(',','checkout'))) {
    $show_information = true;
    } else {
    $show_information = false;
    }

    I looked at the url:
    https://www.mydomain.com/testsite/in...ut&action=null

    and put 'checkout' accordingly.

    Still doesn't work, am I missing something?

    Should I try clearing my browser's cache?
    Last edited by autoace; 20 Nov 2010 at 04:09 PM. Reason: question
    Thank you,
    autoace

 

 

Similar Threads

  1. Sidebox Customization
    By kamelion0927 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 May 2011, 04:17 PM
  2. Stuck on sidebox customization
    By Shane78 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 31 Aug 2009, 10:16 PM
  3. Sidebox customization
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 28 Jan 2008, 09:21 PM
  4. Sidebox Customization
    By atsdotha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Sep 2006, 06:21 PM

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