Jump to content

Promotions not applied correctly in orders added by Admin/API


Recommended Posts

Hi,

we have set a Promotion code that should apply only to orders have hosting, and to discount only from the hosting:

-Example when applying promotion code from client area:

example.com: 40, hosting package: 60, promotion code( 20% ): 12, subtotal: 100, total: 88

-When applied from Admin/API:

example.com: 40, hosting package: 60, promotion code( 20% ): 20, subtotal: 100, total: 80

 

Why orders through admin/API not working as expected?

 

I reviewed the promotion code options and nothing seems wrong:

Type: percentage

Recurring: not enabled

Applies To: selected Hosting plans

Billing Cycles: selected billing cycles (most of our plans are annually )

Start Date: set to a date

Expiry Date: set to a date

Maximum Uses: 0

Lifetime Promotion: not ticked

Apply Once: not ticked

New Signups: not ticked

Apply Once / Client: not ticked

Existing Client: not ticked

Enable for product upgrades: ticked

Link to comment
Share on other sites

  • WHMCS CEO

The logic behind this change was that when an admin places an order, they can often select a promotion code that has x% or $x discount, submit, and then find it hasn't applied and the order has gone through at full price since the promo didn't quite apply to the combination of products selected.

 

And so what we did in 5.1 was to make it so that if you're an admin placing an order, if you select x% or $x discount, you actually get that, no matter what rules it has. I don't think it was intentional to have it affect the API though. Will check into it.

 

Matt

Link to comment
Share on other sites

thanks for reply,

It would be great if the admin orders work the same as client area, because now we add the order with promotion code, then manually editing the invoice to remove the extra discount.

As for the API, I hope you will fix it.

 

Regards,,,

Link to comment
Share on other sites

  • 2 weeks later...
Hello Lysenshi,

 

They just sent me a fix for this (we had the same complaints). They just emailed me a new API file for the addorder which added a new variable for checking the validity of the coupon. I'd assume your have one shortly.

 

I would love to have that fix. Or maybe add some switch to enable the promo validation.

 

Saludos.

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