Zen Cart Logo
Forums / General Questions / Adding a New Product icon to product listing

Adding a New Product icon to product listing

Locked

Views: 1,684

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Mar 2008, 9:34 PM
#1
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Adding a New Product icon to product listing

hi, i want to identify which products are new on my regular product listing...
say like "NEW" 2008 chevy camaro. i cant see how to do this. has anyone done this before or have any ideas? i tried pulling the query off the module for new product listing but it doesnt work and throws errors.

thanks for any thoughts!
MM

added: maybe even if someone knows where the product_listing page is pulling the query in from... i could then access the products_date_added field

14 Mar 2008, 10:05 PM
#2
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Adding a New Product icon to product listing

okay half way there i added
$mydate = zen_products_lookup($listing->fields['products_id'], 'products_date_added');

to the product_listing page which returns the date the product is added. but i am not sure how to then test for it for each product to return a "new" value.

i think the function zen_get_new_date_range() is probably what i need to use, but not sure how to go about the next step.

help!!

29 Dec 2010, 7:49 PM
#3
triumph avatar

triumph

New Zenner

Join Date:
Feb 2010
Posts:
36
Plugin Contributions:
0

Re: Adding a New Product icon to product listing

Hi,

Nobody do this??

:dontgetit :(

30 Dec 2010, 1:17 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Adding a New Product icon to product listing

This may point to an even more streamlined method than the one I just posted in your other thread.