cubecart / v6

CubeCart Version 6
https://cubecart.com
72 stars 58 forks source link

Related Products to be Styled #3599

Closed bhsmither closed 3 months ago

bhsmither commented 4 months ago

When checking out, there is a section showing related products. Currently, this is minimally styled.

Feature Request: Below is a suggested styling to match the "panel" CSS style seen everywhere else:

{if $RELATED}
<div class="show-for-medium-up">
   <h2>{$LANG.catalogue.related_products}</h2>
   <ul class="small-block-grid-5 no-bullet" data-equalizer>
      {foreach from=$RELATED item=product}
      <li>
<div class="panel">
<div data-equalizer-watch>
<div class="text-center">
         <a href="{$product.url}" title="{$product.name}"><img src="{$product.img_src}" class="th" alt="{$product.name}"></a>
</div>
<h3>
         <a href="{$product.url}" title="{$product.name}">{$product.name}</a>
</h3>
</div>
         <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>
</div>
      </li>
      {/foreach}
   </ul>
</div>
{/if}
abrookbanks commented 4 months ago

Also split it out into an include