Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48
  1. #21
    Join Date
    Sep 2006
    Posts
    27
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    Can this be applied for Categories box?

    Axel

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

    Default Re: Not to show Featured Product Sidebox on main page

    You can control all sideboxes by setting a given condition and just not letting it run ...

    Same holds true of any page, column, centerbox, etc.

    That is the beauty of being able to customize the code ... just need to find the trigger to manage the element that you are trying to control ...
    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. #23
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    Hi there,

    Just did what was suggested in that thread, it works great.
    I have a question though: I'd rather not touch the code that is not in MY_TEMPLATE.
    Is there any suggestion to be able to do the same thing as changing into modules/incription.php (example given) but to keep this change in MY_TEMPLATE?

    I've modified the tpl_information.php with the if statement suggested here , but the header of "information" still appears. (which is logical). Anyway to pick up whatever sidebox you want for different pages/ categories without touching the core code?

    THanks!

    cristele

  4. #24
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    Copy the file and place it within your template folder beneath modules/.

    Use:

    modules/MY_TEMPLATE/incription.php

    Then you can modify that code without worrying about messing up the core file.

    Keep in mind that whereever you see a classic folder, you can place your own folder with the same name as MY_TEMPLATE to override the core files, without modifying core files.

  5. #25
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    Quote Originally Posted by burtjesus View Post
    Copy the file and place it within your template folder beneath modules/.

    Use:

    modules/MY_TEMPLATE/incription.php

    Then you can modify that code without worrying about messing up the core file.

    Keep in mind that whereever you see a classic folder, you can place your own folder with the same name as MY_TEMPLATE to override the core files, without modifying core files.
    it didnt work...let me check i got you write:

    my template's name is "MY_TEMPLATE".
    so you say the inscription.php should be here:
    [zencart_location]\includes\templates\MY_TEMPLATE\modules\MY_TEMPLATE\inscription.php

    Is it correct?

    thanks,
    cristele

  6. #26
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    The file should be located in /includes/modules/MY_TEMPLATE/[somefile.php]

    This file will override the default file located in /includes/modules

    Keep in mind that whereever you see a classic folder, you can place your own folder with the same name as MY_TEMPLATE to override the core files, without modifying core files.
    -----
    Steve

  7. #27
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    That's very cool....works like a charm
    This is the coolest feature about ZenCart!

  8. #28
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    It's a fantastic template override system.

    It's important that you don't modify core files.. you should always use template override. Just create a folder in the appropriate directory called MY_TEMPLATE (use the real name of your template) and copy the default files into it. You can modify those files. If you screw it up royally, you can remove your override file, and the cart will use the defualt files again.

    See this link for some more info, and try some other searches in the tutorials or wiki
    https://www.zen-cart.com/tutorials/index.php?article=36
    -----
    Steve

  9. #29
    Join Date
    Apr 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    I have really tried to follow this thread, copying and pasting and testing and ...... getting nowhere except very frustrated.

    I downloaded the blank_sidebox.php. Renamed it to colour_sidebox.php
    into the 3 relevant folders as per the instructions.

    I am using override of merlin/. on the admin/tools/layout boxes controller I have turned on the sidebox.

    It now shows on all pages. However, I do not want it to show on the home page.

    What code do I use please and where do I put it.. Polite responses please..

    Thank you in anticipation

  10. #30
    Join Date
    Apr 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Not to show Featured Product Sidebox on main page

    Bump !

    Following on from the above, I have changed my code to the following.

    The Colours side box still shows on the main page. Any ideas please..
    I have tried changing the false to true, but nothing happens



    // test if box should display
    $show_colour_sidebox = false;

    $this_is_home_page = $($current_page== 'sideboxes');
    $show_colour_sidebox = !$this_is_home_page;


    if ($show_colour_sidebox == true) {
    require($template->get_template_dir('tpl_colour_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_colour_sidebox.php');
    $title = BOX_HEADING_COLOUR_SIDEBOX;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. How to show the featured product in the main page?
    By trancient18 in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 13 Nov 2010, 02:46 PM
  2. How to show subcategories in sidebox, not on main page?
    By zar_the_first in forum Customization from the Admin
    Replies: 4
    Last Post: 4 Jun 2010, 09:47 PM
  3. Featured product won't show on main page
    By genasoft in forum General Questions
    Replies: 2
    Last Post: 27 Aug 2009, 08:52 PM
  4. Show subcategories in Main Page (not sidebox)
    By cad in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Jan 2008, 07:42 AM
  5. Do not show Featured sidebox on the main page
    By dealbyethan.com in forum Basic Configuration
    Replies: 1
    Last Post: 4 May 2007, 06:50 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