Jump to content

Adding promocode box in stadard_cart Summary Box


rupdog5500

Recommended Posts

Hi,

 

Does anyone know how to add promocode box & logic to the floating "Order Summary" box of standard_cart? Something like: https://crm.vpscheap.net/cart.php?a=add&pid=183

I am trying to get viewcart.tpl code of promocode into ordersummary.tpl but can't figure our how to do it.

 

Can anyone help and shed some coding light into it.

 

Thanks

Link to comment
Share on other sites

Brian,

 

You have partially done something here: https://forum.whmcs.com/showthread.php?107083-Misleading-pricing-with-promo-code-usage

 

In you post here https://forum.whmcs.com/showthread.php?107083-Misleading-pricing-with-promo-code-usage&p=439855#post439855 can you moduly the code for all poromocode types?

 

I want to pass promocode over url with paackge id and have it show in "order summary" on right for standard_cart v6.3.1

I can see the code in orer summary in cart.php?a=view but not cart.php?a=confproduct&i=0

 

I have seen many companies have done this successfully like: https://crm.vpscheap.net/cart.php?a=add&pid=183

https://www.eleven2.com/brain/cart.php?pid=63&promocode=summer16 etc.

 

Can you help?

 

Thanks

Link to comment
Share on other sites

You have partially done something here: https://forum.whmcs.com/showthread.php?107083-Misleading-pricing-with-promo-code-usage

In you post here https://forum.whmcs.com/showthread.php?107083-Misleading-pricing-with-promo-code-usage&p=439855#post439855 can you modify the code for all promocode types?

something along these lines...

 

<span class="pull-left">{$carttotals.promovalue}{if $carttotals.promotype eq "Percentage"}%{/if} {$carttotals.promorecurring} {if $carttotals.promotype eq "Price Override"}{$LANG.orderpromopriceoverride}{elseif $carttotals.promotype eq "Free Setup"}{$LANG.orderpromofreesetup}{else}{$LANG.orderdiscount}{/if}:</span>

 

I want to pass promocode over url with paackge id and have it show in "order summary" on right for standard_cart v6.3.1

I can see the code in orer summary in cart.php?a=view but not cart.php?a=confproduct&i=0

I did mention in the above thread you linked to that configureproduct.tpl doesn't have access to the promocode. :)

 

I assume that you did spot that both those websites you mentioned are using custom, possibly commercial, orderform templates? :)

one is using custom .js and possibly even hooks - so you'd like me to simply write some equivalent code, over multiple templates, to do the same for you - i'd effectively have to write a custom cart to do it... that's not going to happen i'm afraid. :roll:

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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