Forums / Setting Up Specials and SaleMaker / time bound discount for a category of product

time bound discount for a category of product

Locked

Started by alfo on 27 Nov 2007, 6:32 AM · Views: 2,184

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Nov 2007, 6:32 AM
#1
alfo avatar

alfo

Zen Follower

Join Date:
Apr 2006
Location:
Sydney, Australia
Posts:
103
Plugin Contributions:
0

time bound discount for a category of product

Hi

Has anyone implemented a discount that is specific to a particular category of product? i.e. discount will be applied to only 'sandwich category'

Also has anyone implemented a discount that can automatically turn off after a certain time? i.e. order before 11am and get 5% off. but system automatically knows not to offer the discount after 11am.

ALFO

alfo

https://www.alfo.com.au
online ordering for catering, tea parties, take away food and retail from alfo cafe
https://www.alifefullof.com.au
tea party essentials: leaf tea, coffee beans, oils, chocolate and more

28 Nov 2007, 6:34 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: time bound discount for a category of product

SaleMaker in the Catalog ... SaleMaker ... menu can set a discount on 1 Category of Products ...

As to date and time, that is not part of SaleMaker nor Specials ...

It could, however, be custom coded ... have you got your coder hat on? :smartalec:

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 2007, 7:33 AM
#3
alfo avatar

alfo

Zen Follower

Join Date:
Apr 2006
Location:
Sydney, Australia
Posts:
103
Plugin Contributions:
0

Re: time bound discount for a category of product

One day I will learn to code but for now I run a cafe all day...however I am willing to try this piecemeal.

  1. I know the following code will define ALFOADS to be used in an output string showing the date and time.

define('ALFOADS','the time is '. strftime(DATE_TIME_FORMAT) . '.');

how do I limit this definition to just show the hour as 11am i.e. using 24 hour clock.

alfo

https://www.alfo.com.au
online ordering for catering, tea parties, take away food and retail from alfo cafe
https://www.alifefullof.com.au
tea party essentials: leaf tea, coffee beans, oils, chocolate and more