View Single Post
  #8  
Old 03-14-2017, 10:04 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Adding product attributes to minicart

I'm not sure why it doesn't print attributes.

As far as I see your template iterates over items returned by \XLite\View\Minicart::getItemsList().
This method returns an array of \XLite\Model\OrderItem object, so you should be able to call any of its methods on "item" in your template.
I see the getAttributeValues() and getAttributeValuesIds() methods in that class, but not getAttributesList().

Perhaps you should debug what these methods return to find out why it is empty for you.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote