Zen Cart Logo
Forums / General Questions / Need help looking for a contribution...

Need help looking for a contribution...

Locked

Views: 1,010

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
15 Jul 2009, 10:24 PM
#1
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Need help looking for a contribution...

What I am looking for is "New!" and it would be in red. Let me show you want I want to do.

here is an example of the product listing.

Product Image_______________Product Name_____________Price

What I want is New! on the left side of the Product image. Is this possible?

15 Jul 2009, 11:47 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need help looking for a contribution...

You would need to edit /includes/modules/your_template/product_listing.php, and in the case for image add a test for the new condition and append the "New" gif where it is true.

There are a number of ways you could arrange this test, either by specifying in the code or a define which product ids are new, or by looking up the "new product" status in the database. The best method depends on your specific criteria.

15 Jul 2009, 11:49 PM
#3
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need help looking for a contribution...

Its not an Image of "New!" its a text that I can add when I have a new product out.

15 Jul 2009, 11:54 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need help looking for a contribution...

The exact thing you want to output is easy to set up; but how do you want to determine which products get the "New"? Automatic or manual decision?

15 Jul 2009, 11:56 PM
#5
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need help looking for a contribution...

I want to the New show for awhile then take new off. What would you suggest?

16 Jul 2009, 12:00 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need help looking for a contribution...

Set the "new product" time cutoff in admin for your desired duration.
Then you can do a check for the status of each product in the file location as mentioned. I don't have time now to work out the details - someone else should be able to give pointers.

16 Jul 2009, 12:01 AM
#7
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need help looking for a contribution...

I don't understand what you mean....

15 Nov 2009, 11:17 PM
#8
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need help looking for a contribution...

Can anyone help get a red "New!" next to a product image where I can manually input it in?

16 Nov 2009, 5:36 AM
#9
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,682
Plugin Contributions:
0

Re: Need help looking for a contribution...

Can anyone help me. Is there a contribution or a code is when I put a new item in the store next to it will show like "New!" in red next to the picture of the item.