Beekingo Posted June 4, 2019 Share Posted June 4, 2019 Hello! I know this has been asked several times before but i do not find any solution. Maybe now its easier to do this. We allways pass the promocode in cart link and it works ok after all. But the customer can´t see it applied when select the billing cycle. It is possible to show the prices with the promocode applied on billing cycle cart step? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 5, 2019 Share Posted June 5, 2019 16 hours ago, Beekingo said: I know this has been asked several times before but i do not find any solution. Maybe now its easier to do this. nothing has changed. 16 hours ago, Beekingo said: We always pass the promocode in cart link and it works ok after all. But the customer can´t see it applied when select the billing cycle. It is possible to show the prices with the promocode applied on billing cycle cart step? possible? yes - but not without some work. if memory serves, on the product configuration page, the promocode isn't available to the template using Smarty variables... if you're passing it in the URL, you can get to it via the session variables, e.g {$smarty.session.cart.promo}, but that wouldn't tell you which cycles were discounted by this promocode, so you'd have to query the database to get the cycles, discount type, rate etc, manipulate the pricing array accordingly and then return it to the template. it would probably by simpler to just remove the pricing from the billingcycle dropdown - that can be done either by a hook, or editing the template. 1 Quote Link to comment Share on other sites More sharing options...
Beekingo Posted June 5, 2019 Author Share Posted June 5, 2019 (edited) Hello! This works in some way. I check if the variable existes to show a text that say "Discounts may apply on next step". I hope in next releases whmcs takes this in consideration. Regards, Edited June 5, 2019 by Beekingo 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.