Announcement

Collapse
No announcement yet.

hide upsold products from 'new products'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hide upsold products from 'new products'

    Hi. I am using Toolkit to show the most recently added products and there are a few items, I created as 'upsell only' products that I didn't add to categories but they show in the 'new products' list.

    I'm wondering what might be the best way to hide them so they don't render in the loop (see below)? I'm not sure if there are 'upsell' variables that can be tested for so I do an 'if not upsell-product'. I guess I could also add a test like 'if not 'prod1, prod12, prod14' which might be cumbersome if there are lots of products. I also thought a custom field i.e. if not 'custom-field-hide-me' - or maybe there is even some way to test if it does not belong to a category i.e. if not category=null?

    Figured I'd ask to at least move me in the right direction - and spare my meager population of remaining brain cells. ;)

    Current Code
    Code:
    <mvt:item name="toolkit" param="last|pcount|4" />
    <mvt:if expr="pcount GT 0">
    <table border="0" width="100%" class="newprodsm" style="margin-top: 4px">
    <th>Recently Added Products</th>
    <mvt:foreach iterator="newproduct" array="new">
    <tr><td><a href="&mvt:global:sessionurl;Screen=PROD&Product_Code=&mvta:newproduct:code;&Store_Code=&mvta:store:code;" class="shorten">
    &mvt:newproduct:name;</a></td></tr>
    </mvt:foreach>
    </table>
Working...
X