Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Not displaying product until available date

Not displaying product until available date

Locked

Views: 1,175

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
1 May 2008, 3:28 AM
#1
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Not displaying product until available date

Hi everyone

When listing a product we set an available from date, so if it is future date, products still starts showing up as an upcoming product, which is great but i don't want to show that. Can some one please assist? I want it to appear on the available from date please.

If there is a nifty way from admin please let me know, otherwise can some one please point me to the right file, i can change the code myself to achieve that but having trouble finding the right file.

regards

1 May 2008, 3:46 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Not displaying product until available date

M,
After scanning through 298 posts on the Search Function "Upcoming Products"

  1. I believe you will half to do a little coding to achieve your task...:smartalec:
1 May 2008, 4:05 AM
#3
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Not displaying product until available date

Hi haredo

Coding is not a problem, it will be pretty simple just would require one check, but i just can't find the right file, do you know which file should i look into?

regards

1 May 2008, 4:10 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Not displaying product until available date

includes/ modules/ upcoming_products.php

make sure to copy to your_template_name and then play..

1 May 2008, 4:59 AM
#5
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Not displaying product until available date

Dear Haredo

unfortunately that probably is not the right file as it does not show it only as upcoming on that product category, new in month, etc. so i wanted to find the main location which deals with product listing.

regards

1 May 2008, 5:01 AM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Not displaying product until available date

Im not sure if this works for your problem, but try this:
Go to admin->configuration->Index Listing and try the "Show Upcoming Products" settings.

1 May 2008, 5:10 AM
#7
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Not displaying product until available date

Hi Yellow and Haredo
If someone can point me to the place where the code checking is done for the status of the product active or inactive, that will be the solution. It will be a function in some file, definitely not a class function as checked already.

regards

1 May 2008, 5:15 AM
#8
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Not displaying product until available date

dear yellow,
The method you are suggesting will only stop it displaying on main page, my aim is not to show the product at all until it has reached its available date, like i said it is not hard to do just a matter of find the piece of code where status checking is done, because that is where it handles it globally, if status is set to OFF globally it won't show, i hope i am making sense :)

regards

1 May 2008, 5:31 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Not displaying product until available date

More or less you need something similar to what happens when a Product is Sold Out but backwards ...

If you used the same technique and made a Coming Soon image spit out instead of the add to cart or buy now button ... then the product cannot be purchased ...

We will be looking into adding something like this in a future release ... :smile: