Zen Cart Logo
Forums / Basic Configuration / How to create a daily sale

How to create a daily sale

Locked

Views: 4,582

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
14 Jul 2006, 12:23 AM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

How to create a daily sale

What I'm looking to do will probably take some custom programming. i'm looking for advice about where I can begin . . .

I would like to create a category called 'Deal of the Day' where I could have a daily special. It would only show 1 item, which would show for a 24 hour period, and then it would switch to the next Deal.

I know you can specify dates at which products are available and you can also specify the dates of specials. The pieces are there, just not sure how to put it together.

Thanks.

14 Jul 2006, 1:27 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

If you were to clone the featured ... you can do this ...

Be careful on the functions for the expiration/activate ...

If you do this perfectly, it will manage to handle this for you so that you could set them for the future and they will turn on/off for you automatically ...

15 Jul 2006, 4:41 AM
#3
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: How to create a daily sale

Ajeh:

If you were to clone the featured ... you can do this ...

Be careful on the functions for the expiration/activate ...

If you do this perfectly, it will manage to handle this for you so that you could set them for the future and they will turn on/off for you automatically ...

:clap: Whoo-hooo! I just spent the last 4 hours duplicating the featured section. I did a search with the developers toolkit and duplicated EVERYTHING. This is by far the most complicated thing I've done. I also had to duplicate all of the configuration keys and duplicate the featured table in the database.

To make a long story short, it works perfectly, at least so far. Thanks a bunch Ajeh.

15 Jul 2006, 3:00 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

Good job! :smile:

And you have experienced the concept of how fun it is to add a "quick" new feature to Zen Cart ...

Makes you think when you imagine all the groovy little toys and features that are in Zen Cart already ...

16 Jul 2006, 4:08 AM
#5
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: How to create a daily sale

One last question, how complicated would it be to have it skip directly to the product when the 'Daily Deal' link is used as there will only be 1 product in the listing. I guess something similar to what is done with the product categories. I see this code here:

includes/modules/pages/index/header_php.php

Line #55 : if (SKIP_SINGLE_PRODUCT_CATEGORIES=='True' and !isset($_GET['filter_id'])) {

But not sure how difficult it would be to add this to the features (or in my case the daily deal) products.

Thanks!

16 Jul 2006, 4:22 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

There is already a switch in Zen Cart that 1 product Categories go right to the Product _info page ...

16 Jul 2006, 4:24 AM
#7
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: How to create a daily sale

Maybe I wasn't clear, I know it exists for the product catalog, which is where I got that code from. But I was referring to the featured products. This built-in functionality only works for the product catalog.

16 Jul 2006, 4:27 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

You know how the Featured sidebox works and gives a link to what is the product?

Do you have a Daily sidebox?

I don't know how you are currently displaying this that clicking on it doesn't take you right to the product _info page ...

16 Jul 2006, 4:32 AM
#9
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: How to create a daily sale

Damn, you are right. Sorry :blush:. If I use the sidebox it will display the only featured product. I did want to just provide a text link at the top of the page that stated daily deal, but I'm not sure if that will work.

Thanks by the way, for your help.

16 Jul 2006, 2:26 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

If you can make a link to the image in the Daily sidebox ...

I bet you can make a text link and stick it in the header in a similar manner ... :smile:

6 Oct 2006, 7:01 AM
#11
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: How to create a daily sale

Hey Ajeh (or anyone else for that matter),

I have a link that takes the person to the daily deal. The item is on sale (just for the 24 hour period) so it shows up in the specials category as well. Is their anyway to have it only show up in the daily deal section (cloned featured section) and not in the specials?

Thanks,
Mike

7 Oct 2006, 4:22 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: How to create a daily sale

You would need to customize the special to first look at the daily and then exclude that products_id from the select statement ...

8 Oct 2006, 9:43 PM
#13
ajcannon avatar

ajcannon

New Zenner

Join Date:
Aug 2006
Posts:
68
Plugin Contributions:
0

Re: How to create a daily sale

voltage,

I love the Daily Sale module that you have on your site. Are you planning on releasing it as a downloadable module? I understand if you don't, and if you don't then I will probably go through the steps and make one myself and release it, but I just thought since you had already done it that you might be willing to release it yourself. Either way, this is one of the coolest mods I've seen.

-ajcannon