Jump to content

View promocode applied to prices when choose billing cycle in cart step


Beekingo

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by Beekingo
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