Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How to List Each Feature on Category Page Rate Topic   - - - - -

 
  • creation
  • Member
  • Members
  • Join Date: 21-Jun 12
  • 10 posts

Posted 26 June 2012 - 11:45 AM #1

I'd like to list the features of my products on the category page, but need to list them individually so I can style and use JS based on their values.

At the moment I have looked at the forums and found that you can list all the features of a product like so:

{assign var="product_features" value="product_features_`$obj_id`"}{$smarty.capture.$product_features}

But is there a way to get, for example, an array of these features. I'd like to be able to get to:

<div class="sizes">
   <span class="sizes_label">Sizes:</span>
   <span class="sizes_m">M</span>
   <span class="sizes_l">L<span>
</div>

Any ideas? Thanks!