Jump to content

[SOLVED] Add image on product page by manufacturer


Recommended Posts

I need an image added to the product page that only shows up with specific manufacturers.

 

Does anyone know how to do this. My website is www.knifedeal.com and if you look at the product page the image that reads "Login for Discount" needs to be on all but one of my manufacturers.

 

It would even work if I could do image mapping by manufacturer instead of category although this is not as good for this purpose.

 

Thanks,

 

Nate

Edited by vekia (see edit history)
Link to comment
Share on other sites

you can do it in two ways. with module to place custom content on product page (which has got filtering based on association with manufacturer) or manually in product.tpl file

if condition like:

{if $product_manufacturer->id_manufacturer==4}
<image> if product id_manufacturer = 4
{elseif $product_manufacturer->id_manufacturer==6}
<image id product id_manufacturer = 6
{/if}

you can define as many if conditions as you want

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...