Add single attribute to cart page?
-
I’m trying to figure out how to add just 1 line of a custom attribute on a simple product to appear under the title in the Cart page. I have a flooring store set up now, each product has 10+ attributes, but one “Sq/ft Per Box” is one of the most important which should follow into showing on the cart so ideally it appears right under the name. Right now I’ve only found 1 solution which did not work because it added ALL of the attributes to the cart and oddly enough removed them from the “additional info” tab.
I’m working inside the cart.php file and have been able to add the extra line under the title, but I am not sure how to pull in the attribute reference to show what the inputted attribute is. Basically I added a line of text saying “Sq/ft Per Box:” and nothing appears after, also the issue with how I did it is that will appear no matter what product appears, not just if the product has that attribute.
Any help appreciated, I can add more info if need be. Trying to be as descriptive as possible.
- The topic ‘Add single attribute to cart page?’ is closed to new replies.