rupdog5500 Posted August 23, 2016 Share Posted August 23, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
rupdog5500 Posted August 23, 2016 Author Share Posted August 23, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 23, 2016 Share Posted August 23, 2016 You have partially done something here: https://forum.whmcs.com/showthread.php?107083-Misleading-pricing-with-promo-code-usageIn 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.1I 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 have seen many companies have done this successfully like: https://crm.vpscheap.net/cart.php?a=add&pid=183https://www.eleven2.com/brain/cart.php?pid=63&promocode=summer16 etc. 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.