Ingomar Posted March 3, 2014 Share Posted March 3, 2014 Hi, I want to add the supplier and the manufacturer logo to my productpage. For the manufacturer logo, I have the following code (this already works): <a href="{$link->getPageLink('manufacturer')}"><img src="{$base_dir}img/m/{$product_manufacturer->id}-medium_default.jpg" alt="Merk"/></a> How can I add a similar kind of code for the supplier logo? Hope anyone can help me Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 3, 2014 Share Posted March 3, 2014 Hi. Almost the same way: you need to change the path, and get the supplier ID. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Ingomar Posted March 3, 2014 Author Share Posted March 3, 2014 Hi. Almost the same way: you need to change the path, and get the supplier ID. Regards. Robin. The CartExpert Team Thanks for your reply. Can you help me with that? This is the link to a supplier image: /img/su/4-medium_default.jpg and the number, in this example 4, is the supplier ID. Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 3, 2014 Share Posted March 3, 2014 That's right. The $product object has an id_supplier property, which contains the id: $product->id_supplier Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Ingomar Posted March 4, 2014 Author Share Posted March 4, 2014 Thanks Robin! It worked for me! Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 4, 2014 Share Posted March 4, 2014 Happy we could help. Please mark the topic as [sOLVED]. Regards.Robin.The CartExpert Team 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