Jump to content

Issue with Displaying Discount Price on WHMCS Product Summary Page


Shipon Karmakar

Recommended Posts

Hello,
I've attempted to use the code below to display a discount on the product configuration/summary page. However, 
when I use this code, it doesn't seem to work. If anyone has a solution, please assist.

Product Link: https://shop.domain.com/store/web-hosting/starter?&billingcycle=annually&promocode=9J4A43INCV60PA

<div class="total-due-today">
   <span class="amt">{$producttotals.pricing.totaltoday}</span>
   <span>{$LANG.ordertotalduetoday}</span>
   {if $smarty.session.cart.promo}
       <span>Promotional Code: {$smarty.session.cart.promo}</span>
       <span>Discount: {$currency.prefix}{$carttotals.rawdiscount}{$currency.suffix}</span>
       <span>New Total: {$currency.prefix}{$carttotals.rawtotal}{$currency.suffix}</span>
   {/if}
</div>

 

Thanks.

Edited by Shipon Karmakar
Spelling Mistake
Link to comment
Share on other sites

  • Shipon Karmakar changed the title to Issue with Displaying Discount Price on WHMCS Product Summary Page

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated