Jump to content

Checkout Related Products


Claudia M

Recommended Posts

What does this code in foundation/templates/ checkout do?  If it does something how do you activate it and can you use in on the product page?

{if $RELATED}
<div class="show-for-medium-up">
   <h2>{$LANG.catalogue.related_products}</h2>
   <ul class="small-block-grid-5 no-bullet">
      {foreach from=$RELATED item=product}
      <li>
         <a href="{$product.url}" title="{$product.name}"><img src="{$product.img_src}" class="th" alt="{$product.name}"></a>
         <br>
         <a href="{$product.url}" title="{$product.name}">{$product.name}</a>
         <p>
            {if $product.ctrl_sale}
            <span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
            {else}
            {$product.price}
            {/if}
         </p>
      </li>
      {/foreach}
   </ul>
</div>
{/if}

 

Link to comment
Share on other sites

This code in the template is shown if there are related products.

CubeCart takes the current list of items in the shopping basket, scans past orders that had at least one of these same products in those orders, and presents all the other products that were purchased in those orders to the customer.

It is the same as "Customers who bought this also bought..." when viewing an Amazon product page.

Cubecart mis-uses the term 'related'. There is no real relationship being used between any given product in the shopping basket and what CubeCart shows as Related Products.

If CubeCart is not showing any Related Products, then there are no orders found where there were these items found in an order that had other items in that order. That is, perhaps all your orders were single-item orders.

Yes, this is usable in a round-about way to show on the Product page. Because the code to gather the 'related' items is not a separate function, we will need to derive a separate set of statements in a code snippet destined for the Product page.

There may be a plugin already available to give a similar result.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...