Jump to content

Show Discounts Through Order Form Flow


NameHero

Recommended Posts

Hey guys,

 

This seems pretty straight forward, but I can't find an answer.

 

When a customer selects a package we automatically append a promotional code depending on the sale we're running.

 

When they go to the configurable options page the prices don't reflect the discount, hence creating TONS of confusions and lots of pissed off emails.

 

For example:

 

https://www.dropbox.com/s/dqoejwh1if102tn/Screenshot%202017-09-22%2015.46.54.png?dl=0

 

You can see, we've added "Discounts Apply On Checkout" to try to clear it up, but it sure would be nice to show the discounted monthly rate here.

 

Any help is much appreciated! I'm willing to pay if it takes something custom!

Link to comment
Share on other sites

This seems pretty straight forward, but I can't find an answer.

which means it's either a newbie question... or you've found one of WHMCS design black holes the rest of us take for granted... spoiler alert - this isn't a newbie question! :)

 

When a customer selects a package we automatically append a promotional code depending on the sale we're running.

When they go to the configurable options page the prices don't reflect the discount, hence creating TONS of confusions and lots of pissed off emails.

For example:

https://www.dropbox.com/s/dqoejwh1if102tn/Screenshot%202017-09-22%2015.46.54.png?dl=0

You can see, we've added "Discounts Apply On Checkout" to try to clear it up, but it sure would be nice to show the discounted monthly rate here.

Any help is much appreciated! I'm willing to pay if it takes something custom!

long story short - it's going to take something custom.

 

for whatever reason, WHMCS decided to not make any promotional variables available at the product configuration stage of the cart process, or change existing values based on there being one... it's always been this way (or at least since I bought my first license in 2013)... there was hope it would change in v6... then v7... let's see if v8 fills that void. :roll:

 

on the product configuration page, there are ways that you can find out if a promotion code has been added to the cart - but that is literally it... you don't know if it's valid for product(s) in the cart; you don't know what conditions it applies or requires - I can't think of any way, other than querying the database, to see if the entered promo code is valid, applicable and what effect it will have on pricing.

 

that means you'll need an action hook... at the very least to query the db to validate the promo code - then additionally it either alters the pricing array to adjust for the discount, or it makes the variables available to the template and you modify the output in the template.

Link to comment
Share on other sites

which means it's either a newbie question... or you've found one of WHMCS design black holes the rest of us take for granted... spoiler alert - this isn't a newbie question! :)

 

 

long story short - it's going to take something custom.

 

for whatever reason, WHMCS decided to not make any promotional variables available at the product configuration stage of the cart process, or change existing values based on there being one... it's always been this way (or at least since I bought my first license in 2013)... there was hope it would change in v6... then v7... let's see if v8 fills that void. :roll:

 

on the product configuration page, there are ways that you can find out if a promotion code has been added to the cart - but that is literally it... you don't know if it's valid for product(s) in the cart; you don't know what conditions it applies or requires - I can't think of any way, other than querying the database, to see if the entered promo code is valid, applicable and what effect it will have on pricing.

 

that means you'll need an action hook... at the very least to query the db to validate the promo code - then additionally it either alters the pricing array to adjust for the discount, or it makes the variables available to the template and you modify the output in the template.

 

Thanks for the response! This is what I kinda figured after spending hours, no days on this :).

 

We'll work on an action hook to query the DB and pray they decide to make this available in version 8!

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