nmcinnis Posted May 13, 2014 Share Posted May 13, 2014 (edited) 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 May 18, 2014 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 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 More sharing options...
nmcinnis Posted May 15, 2014 Author Share Posted May 15, 2014 Thank you! The code worked perfect. -Nate Link to comment Share on other sites More sharing options...
vekia Posted May 18, 2014 Share Posted May 18, 2014 glad to hear that i could help you a little i marked topic title as solved with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now