Forums / Setting Up Specials and SaleMaker / "Specials" category which automatically has specials

"Specials" category which automatically has specials

Locked

Views: 4,104

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
30 Apr 2009, 3:55 PM
#1
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

"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

4 May 2009, 4:08 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Specials" category which automatically has specials

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

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 ... :smile:

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 May 2009, 4:09 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 May 2009, 4:20 PM
#4
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

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

4 May 2009, 5:05 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :unsure:

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 May 2009, 5:24 PM
#6
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: "Specials" category which automatically has specials

The site doesn't use siteboxes - have a look at https://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

4 May 2009, 6:59 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

    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!

5 May 2009, 9:31 AM
#8
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

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

5 May 2009, 3:32 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Specials" category which automatically has specials

Thanks for the update that you found the switch to turn that on ... :smile:

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!