Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Adding a small picture file to all products

Adding a small picture file to all products

Locked

Views: 488

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Oct 2009, 11:54 AM
#1
matt_smith avatar

matt_smith

Zen Follower

Join Date:
Oct 2008
Posts:
108
Plugin Contributions:
0

Adding a small picture file to all products

Hi

I want add two small gifs to appear after the name of the product on each product page. One will say "Recycled" and one will say "Fairly Traded". I know I could do each one individually, but with over 100 products I do not fancy it!!

Is there an easier way of doing it, however there will be a few products that should not have them - I guess this confuses things!

Hope some whizz can help me.

Thanks

matt

20 Oct 2009, 1:10 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Adding a small picture file to all products

If some products will not have the tags, you will have to do something individually. Are the tags independent - could a product have one but not both? If so, that is another variable to take care of.

Is the number of products that do not get tags small and stable? If so, you could set up a pair of defined constants with a list of product ids, and add some code to /includes/templates/your_template/templates/tpl_product_info_display.php to output the gifs if the current product's id is not in the list. This would let you access the same info in the product listing if you want the gifs there too.

If you have a larger and varying list of products to handle, you may need to add a couple of fields to the product table in the database so each product can be checked off at creation/editing time.

20 Oct 2009, 1:23 PM
#3
matt_smith avatar

matt_smith

Zen Follower

Join Date:
Oct 2008
Posts:
108
Plugin Contributions:
0

Re: Adding a small picture file to all products

Thanks for the quick reply. I'll investigate.

Matt