Results 1 to 9 of 9
  1. #1
    webmam Guest

    help question Disappearing Box

    I have 3 boxes on the left column -Catalog,Specials, Banner. They all work fine until I go to a product_info link. Then the Specials Box disappears from the left column. It ONLY effects the Specials Box. If I add other boxes they all appear.

    I'm using a template that was meant for 1.3. 6 and my cart is 1. 3. 8a. Where do I check to see if the "Specials" code appears on the the product_info page?

    My Cart Link

    Can anyone help?

  2. #2
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Disappearing Box

    I have exactly the same problem.

    On the site I'm building (link), as soon as you got onto a product info page, my specials box vanishes from the right hand column where it normally belongs.

    Any help would be gratefully received.

    Cheers,
    Bad Wolf.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Disappearing Box

    You'll both have to contact the designer of your templates to ask them why they chose to hack the code that way.

  4. #4
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Disappearing Box

    Mmm, I suppose it's worth looking to see if there is any specific code in the product info template that is stopping it from appearing.

    Thanks.

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Disappearing Box

    Sorry, but that is the default behavior of the Specials box.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Disappearing Box

    So it's a case of hard coding the specials back into the product info page then?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Disappearing Box

    No. Open includes/modules/sideboxes/specials.php and comment out or remove lines 13 through 21 which say:

    $show_specials= false;

    if (isset($_GET['products_id'])) {
    $show_specials= false;
    } else {
    $show_specials= true;
    }

    if ($show_specials == true) {


    and line 44 which contains a closing curly brace ( } ).

    Don't forget to save the edited file to a override folder.

  8. #8
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Disappearing Box

    Much obliged Steve!

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

    Default Re: Disappearing Box

    While removing the code above does work, an alternative to changing the code by deleting part of it is to modify the existing code just a little instead ...

    Looking at the same section of code:
    PHP Code:
    $show_specialsfalse;

    if (isset(
    $_GET['products_id'])) {
    $show_specialsfalse;
    } else {
    $show_specialstrue;
    }

    if (
    $show_specials == true) { 

    Just add an extra override in there of the variable:
    PHP Code:
    $show_specialsfalse;

    if (isset(
    $_GET['products_id'])) {
    $show_specialsfalse;
    } else {
    $show_specialstrue;
    }

    // bof: override to always show
    $show_specialstrue;
    // eof: override to always show

    if ($show_specials == true) { 
    This allows you to see the original code and your change in case you need it again in the future or want to alter it further ...

    NOTE: both ways will accomplish your original change ...
    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!]
    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!

 

 

Similar Threads

  1. Disappearing products
    By jenpen in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 25 Nov 2012, 01:44 PM
  2. Disappearing Background
    By Halollet in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jun 2010, 05:27 AM
  3. Disappearing Text Box
    By tcustomgolf in forum Setting Up Categories, Products, Attributes
    Replies: 32
    Last Post: 16 May 2009, 03:16 AM

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