Jump to content

Order Complete discount not showing - Mobile


bondimedical
 Share

Recommended Posts

I am finding the discounts are not showing on the order complete page of the CubeCart 5 mobile skin. I have had a look at content.receipt.php and found this code:

<div class="subtotals">

	<p><span class="price">{$SUM.subtotal}</span> {$LANG.basket.total_sub}</p>

	<p><span class="price">{$SUM.shipping}</span> {$LANG.basket.shipping}</p>

	{foreach from=$TAXES item=tax}

	<p><span class="price">{$tax.value}</span>{$tax.name}</p>

	{/foreach}

  </div>

  {if $DISCOUNT}

  <div class="discounts">

	<p><span style="color: #FF0000" class="price">{$SUM.discount}</span> {$LANG.basket.total_discount}</p>

  </div>

  {/if} 

  <div class="total"><span class="price">{$SUM.total}</span> {$LANG.basket.total_grand}</div>

Why is the discount not showing?

Link to comment
Share on other sites

This appears to be a bug with the mobile skin and the simplest solution is to move the line which displays the discounts into the "subtotals" div

<div class="subtotals">

	<p><span class="price">{$SUM.subtotal}</span> {$LANG.basket.total_sub}</p>

	<p><span class="price">{$SUM.shipping}</span> {$LANG.basket.shipping}</p>
    
    <p><span style="color: #FF0000" class="price">{$SUM.discount}</span> {$LANG.basket.total_discount}</p>

	{foreach from=$TAXES item=tax}

	<p><span class="price">{$tax.value}</span>{$tax.name}</p>

	{/foreach}

  </div>

You may remove the style="color: #FF0000" if you don't want the discount to appear red.

Link to comment
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.

 Share

×
×
  • Create New...