Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Question about 'featured' and 'specials' database tables

Question about 'featured' and 'specials' database tables

Locked

Views: 4,504

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Nov 2010, 7:13 PM
#1
apsona avatar

apsona

Zen Follower

Join Date:
Jan 2010
Posts:
190
Plugin Contributions:
1

Question about 'featured' and 'specials' database tables

The 'featured' and 'specials' database tables seem to be intended to represent whether or not a product is featured/on special. Each of these tables has a products_id field, referencing the product, but each has its own primary key as well. This seems to imply that a given product record can have more than one corresponding 'featured' record, and more than one 'specials' record. This seems counter-intuitive to me, unless the intent was to maintain an audit trail of when a product has been featured or has been on sale. Is that the real intent? I looked in the Zen Cart database wiki, but that's not much help in this regard.

To rephrase my questions:

  • Is it reasonable to expect that a given product record can have more than one corresponding record in the featured table?
  • And in the specials table?
  • If so, how does Zen Cart interpret these multiple records?

Thanks in advance.
Apsona
http://apsona.com

29 Nov 2010, 2:44 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Question about 'featured' and 'specials' database tables

At this time, 1 record per Product is used for each ...

Later, in the future, this will be expanded to multiple records per Product to allow them to be turned on and off as needed based on the date constraint ...

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!

29 Nov 2010, 2:58 AM
#3
apsona avatar

apsona

Zen Follower

Join Date:
Jan 2010
Posts:
190
Plugin Contributions:
1

Re: Question about 'featured' and 'specials' database tables

Thanks, Ajeh. This is exactly what I needed to know.

Regards.
Apsona
http://apsona.com

29 Nov 2010, 4:52 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Question about 'featured' and 'specials' database tables

Not a problem ... once the rewrites are done for this ... the specials and featured will be expanded ...

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!