Announcement

Collapse
No announcement yet.

Showing Assigned Categories on Product Page

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

    Showing Assigned Categories on Product Page

    On our current Miva website we put Related Categories That You May Also Be Interested In: and then we list all of the categories that product is assigned. However, the old code we used does not seem to show the categories any longer on our new dev site. Here is the code we were using:

    <mvt:foreach iterator="cat" array="productcategories">&nbsp;
    <a href="/category/&mvta:cat:code;.html">&mvt:cat:name; |</a></mvt:foreach>

    Did anything change or what else do you recommend to show the assigned categories on the product page?

    #2
    That seems like it was a Toolkit feature. Use this instead:

    Code:
    <mvt:do name="l.doit" file="g.Module_Library_DB" value="CategoryList_Load_Offset_Product_Assigned(l.settings:product:id,0,'','',0,l.null, g.categoriesOfProducts )" />
    
    <mvt:foreach iterator="cat" array="global:categoriesOfProducts">
    
    {  Your Old Display Code }
    
    </mvt:foreach>
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Yes, we did set-up toolkit years ago, so that was probably it. Either way, THANK YOU Bruce as the code you supplied worked perfectly. Just what I needed!

      Comment

      Working...
      X