Developer forum

Forum » Ecommerce - Standard features » Related products linking to the wrong place.

Related products linking to the wrong place.

Nikita Austin
Reply
Currently I have two groups of related products for each product in the ecommerce.

My code looks like this:
<!--@LoopStart(ProductRelatedGroups)-->
        <h2 class="related_h2"><!--@Ecom:Product:RelatedGroup.Name--></h2>
<!--@LoopStart(RelatedProducts)-->
        <!--@HeaderStart-->
            <div id="relatedproducts">
              <ul id="relatedproductlist" class="horizontal" style="list-style:none;">
        <!--@HeaderEnd-->
                    <li class="listitem<!--@RelatedProducts.LoopMod2-->">
                        <a href="<!--@Ecom:Product.Link.Clean-->"><!--@Ecom:Product.Name--></a>
                    </li>
        <!--@FooterStart-->
              </ul>
            </div>
        <!--@FooterEnd-->
<!--@LoopEnd(RelatedProducts)-->
<!--@LoopEnd(ProductRelatedGroups)-->

The problem for me is this part of the code :
<a href="<!--@Ecom:Product.Link.Clean-->"><!--@Ecom:Product.Name--></a>

The related products need to link to their own group, but I can't seem to find a tag to output the right information.
For example, if these related products were on a product in the "products/cups" category the link would look like this:

website.dk/products/cups/relatedproduct.aspx

Where its supposed to look like this :

website.dk/wheretobuy/relatedproduct.aspx

Tell me if it makes any sense what so ever.


Replies

 
Nikita Austin
Reply

 

You must be logged in to post in the forum