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

SI: User Supplied Price Upcharge #373

Open
WillStrohl opened this issue Sep 15, 2021 · 0 comments
Open

SI: User Supplied Price Upcharge #373

WillStrohl opened this issue Sep 15, 2021 · 0 comments
Milestone

Comments

@WillStrohl
Copy link
Member

Is your feature request related to a problem?

When using user-supplied price products for donation-style products, it's very common for non-profit organizations to offer for customers to cover the credit card transaction fee. This is often presented using a radio button or checkbox in some websites.

A non-profit store owner would like to enable a similar feature in Hotcakes Commerce to allow for a specified upcharge to be applied to the order when this option is selected.

Describe the solution you'd like

Two new fields should be added to the product details view. They are listed below.

  • Allow Upcharge? (checkbox, default to unchecked)
  • Upcharge Amount (Use the same textbox and dropdown list combo option seen in promotions where a number and amount/percentage are seen. This field will only be visible and editable if the previous checkbox is checked. The default value for this field should be 3%. There should only be two possible choices, so front-end validation is not necessary.

When this new setting is enabled and a valid value is found for the upcharge amount, this amount is applied as a new line item in the cart.

  • This line item should share some of the same behavior as the Free Item logic.
  • The upcharge line item can't be deleted.
  • The upcharge line item quantity can't be changed.
  • If the donation product is deleted, so is the upcharge line item.
  • If the donation product is added without the "Cover Credit Card Fees" checkbox being checked, this additional line item shouldn't exist.

Describe alternatives you've considered

None at this time.

Additional context

Customer support request 7671

@WillStrohl WillStrohl added this to the 03.09.00 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant