keat Posted February 8, 2016 Share Posted February 8, 2016 Occasionally, we get customers telling us that finding a part would be easier if it showed the product ID on the main cart page. We have a lot of items which look the same, so they have to enter inside the product to obtain the ID. (particularly things like copper washers) Is there any way to have this displayed on the main cat page ? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 8, 2016 Share Posted February 8, 2016 Your customers will not be able to use the 'product_id'. That is for internal database querying. Probably what your customers are wanting to see is the 'product_code'. That can be easily added to the skin template to show. Quote Link to comment Share on other sites More sharing options...
keat Posted February 8, 2016 Author Share Posted February 8, 2016 Sorry, I did actually mean Product_Code Quote Link to comment Share on other sites More sharing options...
keat Posted February 9, 2016 Author Share Posted February 9, 2016 I assume a change needs to be made in content.category.php, and I thought i'd try to be clever and work out where. I found something, and am now making headway. <span style="float:left;">{$product.product_code}</span> Quote Link to comment Share on other sites More sharing options...
keat Posted February 9, 2016 Author Share Posted February 9, 2016 This seems to do the trick If anyone else needs this, then edit skins/yourskin/templates/content.category.php Find: <img src="{$product.thumbnail}" alt="{$product.name}" />Replace with: <img src="{$product.thumbnail}" alt="{$product.name}" /><span style="float:left;">{$product.product_code}</span> This will populate the product code underneath the thumbnail Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.