Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x]: Purchase Total Not Working #3223

Closed
RitterKnightCreative opened this issue Jul 18, 2023 · 2 comments
Closed

[3.x]: Purchase Total Not Working #3223

RitterKnightCreative opened this issue Jul 18, 2023 · 2 comments
Labels
bug commerce3 Issues related to Commerce v3

Comments

@RitterKnightCreative
Copy link

What happened?

Description

In the interface for Craft Commerce 3.X (and 4.X for that matter) there's a spot for Purchase Total.

Is this the number of line items or purchase total in dollars (or the current currency)?

Screenshot 2023-07-18 at 9 47 21 AM

I recently had a client setup a coupon code where they thought it was the item subtotal (in dollars) and complain that their coupon code wasn't applying. But that doesn't seem to work. Commerce changed the value from 1500 to 1,500 which leads me to believe it's a number and not the value?

We ended up using the order condition formula for their minimum order spent and that worked.

So this is either a bug or the verbiage could stand to be a little more clear.

At least Craft Commerce 4 has the Rules builder which makes quick work of this but that same box still applies.

Craft CMS version

3.8

Craft Commerce version

3.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@RitterKnightCreative RitterKnightCreative added commerce3 Issues related to Commerce v3 bug labels Jul 18, 2023
@nfourtythree
Copy link
Contributor

Hi @RitterKnightCreative

Thank you for raising this point.

The Purchase Total input is localised to take into account the user's formatting preference set on their user account. This gives the user familiarity in entering a value in a format they are used to.

In terms of the logic matching as you can see from these two sets of lines the purchase total is checked against the item subtotal (if there are no matching purchasables selected) or the against the sum of the subtotal for the matching purchasables.

Hopefully, this makes sense, let us know if you need further clarification.

Thanks!

@RitterKnightCreative
Copy link
Author

I just realized when you said matching purchasables, the client had forgotten to include another category in the match so their customer's order didn't make it over the minimum amount.

Going to close this since it's not a bug but appreciate the help @nfourtythree!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce3 Issues related to Commerce v3
Projects
None yet
Development

No branches or pull requests

2 participants