24/7 Support - 800.608.6482

Miva Merchant Community Forums

  1. #1
    Join Date
    Mar 2006
    Posts
    6,871

    Default Related Products on Category Page

    Just to make sure its just something I overlooked...you should be able to show the related products of a product on the Category Display page correct?

    Here's the template outline:
    Category Page
    Category List
    Product List
    Attributes
    Related Products

    (and yes, the items are all checked in the ctgy template, products are assigned and everything else works by the related products )

  2. #2
    Join Date
    Jul 2008
    Location
    NE Ohio - Go Cavs!
    Posts
    952

    Default Re: Related Products on Category Page

    We do it with ToolKit (#45). Not sure about native. Seems you wouldn't need the ToolKit function if it was native, though.

  3. #3
    Join Date
    Dec 2006
    Location
    Florida
    Posts
    1,205

    Default Re: Related Products on Category Page

    Quote Originally Posted by Bruce - PhosphorMedia View Post
    Just to make sure its just something I overlooked...you should be able to show the related products of a product on the Category Display page correct?

    Here's the template outline:
    Category Page
    Category List
    Product List
    Attributes
    Related Products

    (and yes, the items are all checked in the ctgy template, products are assigned and everything else works by the related products )
    The same module, cmp-cssui-prodlist, creates the product list for related products, the product list, the search results, and the category products list. I think it expects to be on a product page so it won't work.

    Toolbelt provides this command.

    <mvt:item name="ry_toolbelt" param="Products_Related|g.length|g.Product_Code|g. Maxitems|g.SortBy" />
    Last edited by RayYates; 04-11-12 at 06:43 AM.
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton
    PCINet: http://www.pcinet.com/
    Toolbelt: http://www.pcinet.com/miva-modules/ry_toolbelt.html
    Toolbelt Documentation: http://www.pcinet.com/docs/toolbelt_docs.html
    Miva Script: http://www.MivaScript.com/

  4. #4
    Join Date
    Mar 2006
    Posts
    11,182

    Default Re: Related Products on Category Page

    If you have the Emporium Plus Tool Kit the token is similar
    <mvt:item name="toolkit" param="related|pcount|l.all_settings:product:code" />
    However, you would not use g.Product_Code for the product variable since that variable does not exist on the category page. Instead, use l.all_settings:product:code.

  5. #5
    Join Date
    Mar 2006
    Posts
    6,871

    Default Re: Related Products on Category Page

    duh! Wap!....ok, the key is instating g.product_code within the Product list....

  6. #6
    Join Date
    Oct 2012
    Posts
    5

    Default Re: Related Products on Category Page

    I know this posting is quite old, but did you ever figure this out with native code? I couldn't exactly follow your comment about g.product_code within the Product list. I am using PR8 Update 12 and customizing a template for a client. Would like to rule out being able to do this with native code before buying a module.

    Quote Originally Posted by Bruce - PhosphorMedia View Post
    duh! Wap!....ok, the key is instating g.product_code within the Product list....

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •