Product Details > Merchandising
How to use some of the Aurora merchandising facilities on your product details page.
Previously viewed
You must always include the {if} statement just to confirm that they do have any previously viewed items.
{if $recentlyViewed}
<h2>Previously Viewed Items</h2>
{foreach from = $recentlyViewed item=product_item}
<li>
<a href="{$product_item.product_filename}"><img class="" src="/product-images/resizeandpad:61:73/{$info.image_id}" alt="{$product_item.product_name}"/></a>
<div class="quicklookbutton">
<a href="" class="quicklook" rel="{$product_item.id}"><img src="/templates/{$templates_dir}/_images/buttons/quicklook.gif" alt="" /></a>
</div>
</li>
{/foreach}
</ul>
{/if}
Customers who bought this also bought
{if $alsoBought}
<h2>Customers who bought this also bought</h2>
<ul>
{foreach from = $alsoBought item=product_item}
<li>
<a href="{$product_item.product_filename}">
<img class="" src="/product-images/resizeandpad:145:171/{$product_item.image_id}" alt="{$product_item.product_name}" />
</a>
<div class="quicklookbutton">
<a href="" class="quicklook" rel="{$product_item.id}"><img src="/templates/{$templates_dir}/_images/buttons/quicklook.gif" alt="" /></a>
</div>
<span class="description">
<a href="{$product_item.product_filename}">{$product_item.product_name}</a>
<span class="price">{$product_item.product_price|displayPrice}</span>
{if $product_item.total_reviews > 0}
<ul class="stars">
{$product_item.product_rating|productStarRating:"/templates/`$templates_dir`/_images/icons/star_small"}
</ul>
{/if}
</span>
</li>
{/foreach}
</ul>
{/if}
Cross-sells
{foreach from = $cross_sells item=product_item}
{/foreach}
Upsells
{foreach from = $upsells item=product_item}
{/foreach}
Bundles
For more information visit our Bundles area.
Updated over 2 years ago