Zen Cart Logo
Forums / General Questions / How Display a NEW logo or icon in product listing for new products ?

How Display a NEW logo or icon in product listing for new products ?

Views: 4,277

Results 21 to 30 of 30
8 Apr 2011, 5:10 PM
#21
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

How Display a NEW logo or icon in product listing for new products ?

Glen, can I pick your brain one more time?

Which (if any) of the above lines of code could I add to my product_info_display template to get the icons to show up on the product info page too?

I tried what you posted in post #5 (where you cleaned up the code from the 'Tips' site), but it didn't work for me. Then again, I wasn't 100% positive that code was supposed to add it to the product info page.

8 Apr 2011, 8:48 PM
#22
gjh42 avatar

gjh42

Black Belt

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

Re: How Display a NEW logo or icon in product listing for new products ?

product_icons($_GET['products_id']) will insert the product icons wherever you add it in tpl_product_info_display.php.

22 Apr 2013, 11:36 AM
#23
uncharted avatar

uncharted

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: How Display a NEW logo or icon in product listing for new products ?

Hello,

Just wondering if you submitted a module for this?

Best Regards

22 Apr 2013, 3:36 PM
#24
gjh42 avatar

gjh42

Black Belt

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

Re: How Display a NEW logo or icon in product listing for new products ?

Not submitted, but there is a beta version attached to post 6 here:
http://www.zen-cart.com/showthread.php?180095-Flag-New-Products-with-in-a-Category

I am adding one more feature to this, and some other locations where it can display, and then I will be submitting it to Plugins.

23 Apr 2013, 1:07 AM
#25
uncharted avatar

uncharted

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: How Display a NEW logo or icon in product listing for new products ?

Hello,

Thank you. Exactly the module I'm looking for.
Will you be adding a sale icon for the final version?

Best Regards

23 Apr 2013, 12:31 PM
#26
gjh42 avatar

gjh42

Black Belt

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

Re: How Display a NEW logo or icon in product listing for new products ?

"Sale" applies to entire categories, so I don't see the value of having it as an icon on each product...

23 Apr 2013, 2:10 PM
#27
ajeh avatar

ajeh

Oba-san

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

Re: How Display a NEW logo or icon in product listing for new products ?

Just a thought on the "Sale" icon ...

I am browsing around your site and peeking at the New Products and there are 49 of them... now I have no idea, as a customer, what Products are in a Category on Sale ... I am doing a search on your site and up come 20 Products, I have no idea what Products are in a Category on Sale ...

There could be a real benefit to seeing a Sale icon ... just like the Special icon ... unless of course your Special icon already includes the Sale Products ... in which case, I never said nothing about it ... :lookaroun

23 Apr 2013, 7:02 PM
#28
gjh42 avatar

gjh42

Black Belt

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

Re: How Display a NEW logo or icon in product listing for new products ?

Good enough... that kind of thought was percolating in the back of my brain as I was writing. If non-category-specific listings are used, the Sale icon could be helpful. And I have a mechanism in the function call for turning each icon type on or off, so it would be easy to have it off in product listing pages to avoid an entire page of individual "sale" icons...

18 Sep 2014, 8:58 PM
#29
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: How Display a NEW logo or icon in product listing for new products ?

Hi all,
I;m looking to accomplish something quite similar, i would like to show some icons on the product info page, for various features, like free shipping, turnaround time etc. i would implement lest say 10 icons and somehow flag which products should display which features, is this possible?

19 Sep 2014, 2:43 AM
#30
gjh42 avatar

gjh42

Black Belt

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

Re: How Display a NEW logo or icon in product listing for new products ?

The product icons work by looking up database values for relevant things, so unless you have those characteristics stored in new db fields, you probably couldn't use the same approach.

If you have the info inserted in a uniform and distinguishable way into the product description, you could probably apply the technique to looking up the description and harvesting any values from it, then using them in icon generation.

If you don't want to have literal tags for these features in the description, you could use HTML and CSS tags like
<span class="free_shipping">free shipping</span>
<span class="turnaround">turnaround</span>
and then hide the elements by setting those CSS classes to display: none;

Testing the description for class="free_shipping" would tell your code whether to display the free shipping icon.