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

Ecommerce: allow sloppy voucher entry #102

Open
schuttelaar opened this issue Dec 19, 2017 · 1 comment
Open

Ecommerce: allow sloppy voucher entry #102

schuttelaar opened this issue Dec 19, 2017 · 1 comment

Comments

@schuttelaar
Copy link

The vouchers are case sensitive. This is not a problem when people copy/paste or click on a link. However, when using manual entry people don't always use proper capitalization and ignore or substitute separator characters (like dash with space or underscore). The voucher code is not accepted when there is not an exact match. This leads to frustration and lost sales.

The solution would be to allow sloppy entry of voucher codes. In order to preserve backwards compatibility the sloppy entry for vouchers should be optional.

Proposed changes

Add a checkbox "Allow sloppy entry" for the voucher series.

When this checkbox is enabled a simplified version of the voucher is added to an extra column. The simplified code ONLY contains lowercase letters and numbers. All other characters are removed.

When a voucher is entered and does not match, the code will be converted to a simplified version and attempted to match. Only when there is no match for both should an exception be thrown.

Example code:

  • EX-GHab3-sa

Simplified code:

  • exghab3sa

Accepted entry:

  • EX-GHAB3-SA
  • exghab3.sa
  • ex-gha b3-sa
@fashxp
Copy link
Member

fashxp commented Dec 20, 2017

interesting idea! we'll discuss that internally.

@brusch brusch transferred this issue from pimcore/pimcore May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant