The "great" Miva forum banned me for registering and asking this question. Not sure if any here can help me with this...
On the category pages, I need to display the products in columns based on Best Sellers, New Releases, etc. There are categories set up with subcategories. Products are assigned to a category and possibly a subcategory.
Choral
- Choral Best Sellers
- Choral New Releases
Vocal
- Vocal Best Sellers
- Vocal New Releases
All parent categories' names are one word, with their subcategories adding two words. The category page will show all the products in the parent category, I just want to filter what's in each in column. I was trying to compare the added two words to part of the subcategory name with an expression. That way it wouldn't matter what parent category you were in, the same code could be used for all. Seems like something that's very basic, but isn't working.
Example non-working code:
<div class="row">
<h2>Best Sellers</h2>
<mvt:foreach iterator="product" array="products">
<mvt:if expr="'Best '$'Sellers' IN g.category:name">
product display stuff here
</mvt:if>
</mvt:foreach>
</div>
<div class="row">
<h2>New Releases</h2>
<mvt:foreach iterator="product" array="products">
<mvt:if expr="'New '$'Releases' IN g.category:name">
product display stuff here
</mvt:if>
</mvt:foreach>
</div>
A little late to the party, but I was just looking into a way to do this and ended up using Emporium Plus Tool Kit.
Replace best-sellers with your category code. After that you can use a regular foreach to iterate through the products
Repeat for as many categories as you need to display on one page.