Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2008
    Posts
    129
    Plugin Contributions
    0

    Default "Specials" category which automatically has specials

    Is is possible to have a "specials" category (called "Sale") which automatically lists any items which are on special? At the moment I'm using the Multiple Categories Link Manager and it's very time consuming.

    I can see in tpl_categories.php is says SHOW_CATEGORIES_BOX_SPECIALS == 'true'

    but I can't see where to turn this on in the admin. Thanks!
    John Crumpton, Technical Director of Double Sided
    Zen cart shop: Buy happie loves it

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

    Default Re: "Specials" category which automatically has specials

    The handy dandy Developers Tool Kit is your friend ...

    Go to the Tools ... Developers Tool Kit ... and in the top input box put in the constant you are looking for that is stored in the configuration table:
    SHOW_CATEGORIES_BOX_SPECIALS

    Now, select NONE from the dropdown and click SEARCH ...

    It will show you what is found and provide an EDIT button to get you there ...
    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!

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

    Default Re: "Specials" category which automatically has specials

    NOTE: Specials and Sales are not the same thing so this link only shows if you have Specials that are active in the specials table and have it turned on ...
    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!

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

    Default Re: "Specials" category which automatically has specials

    Thank you. And how do I create this as a category (so when you click "Sale" it shows all the Specials)?
    John Crumpton, Technical Director of Double Sided
    Zen cart shop: Buy happie loves it

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

    Default Re: "Specials" category which automatically has specials

    I am not following you ...

    You have a link to the Specials in the Category Sidebox ...

    Why are you needing a Category for them?
    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!

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

    Default Re: "Specials" category which automatically has specials

    The site doesn't use siteboxes - have a look at www.iamhappie.com - I just want a link in the right hand side which automatically shows all Specials. At the moment I have a Sale manual category.
    John Crumpton, Technical Director of Double Sided
    Zen cart shop: Buy happie loves it

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

    Default Re: "Specials" category which automatically has specials

    That sure looks like the Categories sidebox on your site ...

    But if you cannot use sideboxes, edit the original categories tpl file and you will see the code:
    Code:
        if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
          $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
          if ($show_this->RecordCount() > 0) {
            $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
          }
        }
    Adapt that to where you need the link ...
    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!

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

    Default Re: "Specials" category which automatically has specials

    Thanks! I found the answer to my question (which I perhaps didn't ask very clearly).

    To turn on a "Sale" category which automatically lists your Specials do the following:

    Configuration -> Layout Settings

    Choose "Categories Box - Show Specials Link" to true
    John Crumpton, Technical Director of Double Sided
    Zen cart shop: Buy happie loves it

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

    Default Re: "Specials" category which automatically has specials

    Thanks for the update that you found the switch to turn that on ...
    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. Display "Best Sellers" like "What's New" or "Specials" lists.
    By jsmooth in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jun 2010, 12:06 AM
  2. Possible to set the "also bought" and "specials" to nofollow?
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 2
    Last Post: 10 May 2010, 01:40 PM
  3. On Specials - How can I just display "20% off" or "save $x.xx", but not the price
    By candylotus in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 24 Apr 2008, 12:44 AM
  4. Display "Specials" as a category on the front page?
    By chris parker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Mar 2008, 02:09 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