Jump to content
Sign in to follow this  
Claudia M

Checkout Related Products

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}

 

Share this post


Link to post
Share on other sites

Posted (edited)

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.

Edited by bsmither

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...