Forums / General Questions / What is the variable for specials

What is the variable for specials

Locked

Views: 903

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 May 2007, 8:34 PM
#1
kands avatar

kands

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

What is the variable for specials

I want to do something like this

<?php if (*There is 'specials' items*){ //Do something only if there is an item or items on special } What condition can I use to check to see if there are any specials
10 May 2007, 11:14 PM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: What is the variable for specials

Don't know myself off the top of my head, but remember that the specials link only shows in the categories sidebox when there are specials...look in there. :wink:

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

11 May 2007, 7:38 PM
#3
kands avatar

kands

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

Re: What is the variable for specials

Thanks Ryk for pointing me in the right direction, I found the code I needed which I have listed below incase it helps someone else

$show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
if ($show_this->RecordCount() > 0)
//You have specials