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

Bulk Quick Add: Clicking "-" takes you back to 0 #3297

Merged
merged 6 commits into from
Mar 1, 2024

Conversation

sofiamatulis
Copy link
Contributor

@sofiamatulis sofiamatulis commented Feb 26, 2024

PR Summary:

Clicking on - takes you back to 0 on live cart. This shouldn't affect regular add to cart

Why are these changes introduced?

Fixes #issue.

What approach did you take?

Visual impact on existing themes

The buyer will be able to remove items from cart in live cart by using -

Testing steps/scenarios

  • Test cart (with and without vol pricing, qty rules) updating items in cart
  • Test cart drawer updating items in cart (with and without vol pricing, qty rules)
  • Test adding to cart from PDP, feat product (regular add to cart - this shouldnt be affected)
  • Test Quick Order List (with and without vol pricing, qty rules) updating items in cart
  • Test Quick Add bulk in the collection page (with and without vol pricing, qty rules) updating items in cart

Demo links

Checklist

@scottgmeadows
Copy link

Something is broken in this PR adding to cart when there are quantity rules. Wasn't able to test - taking you back to 0.

Here's the problem I experienced.

Repro steps:

  1. View a product with volume pricing and quantity rules as a b2b customer (eg: something with increments of 5, and a min of 10)
  2. Click plus button
  3. You'll get an error that says product has a min of 10 - but in dawn production we automatically infer the first valid value.
  4. Also a something is wrong error at the bottom.

@sofiamatulis
Copy link
Contributor Author

Something is broken in this PR adding to cart when there are quantity rules. Wasn't able to test - taking you back to 0.

Here's the problem I experienced.

Repro steps:

  1. View a product with volume pricing and quantity rules as a b2b customer (eg: something with increments of 5, and a min of 10)
  2. Click plus button
  3. You'll get an error that says product has a min of 10 - but in dawn production we automatically infer the first valid value.
  4. Also a something is wrong error at the bottom.

@scottgmeadows Good catch 👍 this was happening when we had a stepcount lower than the min. This should be fixed now

@eugenekasimov
Copy link
Contributor

eugenekasimov commented Feb 27, 2024

I did the first pass and everything looks good except that the PDP was a bit effected in my opinion. As far as I understnd you shouldn't be able to click on "-" on PDP to go to 0. I'm going to test more.
27-53-5w4rg-8x9uh

Copy link
Contributor

@eugenekasimov eugenekasimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected! 🚀

Copy link
Contributor

@andrewetchen andrewetchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Test cart drawer (with and without vol pricing, qty rules) updating items in cart
  • Test drawer updating items in cart (with and without vol pricing, qty rules)
  • Test adding to cart from PDP, feat product (regular add to cart - this shouldnt be affected)
  • Test Quick Order List (with and without vol pricing, qty rules) updating items in cart
  • Test Quick Add bulk in the collection page (with and without vol pricing, qty rules) updating items in cart

I tested everything above and it works as expected.

I did some more testing and noticed that when Enable quick add button is checked within the featured collection section on the homepage or PDP, it doesn't work (video). I also checked the editor link from #3217 and the same thing occurs. I'm assuming this is intentional and that it'll be taken care of in another PR? 🤔

@sofiamatulis
Copy link
Contributor Author

sofiamatulis commented Mar 1, 2024

I did some more testing and noticed that when Enable quick add button is checked within the featured collection section on the homepage or PDP, it doesn't work (video). I also checked the editor link from #3217 and the same thing occurs. I'm assuming this is intentional and that it'll be taken care of in another PR? 🤔

Yes, this is not part of this PR and will be taken care of when we introduce the new quick add to the remaining portions of the theme - issues are tracked here https://github.com/orgs/Shopify/projects/6397/views/26?pane=issue&itemId=50891026

Copy link

@scottgmeadows scottgmeadows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested all the scenarios and LGTM :)

@sofiamatulis sofiamatulis merged commit e8a4ba2 into quick-add-bulk Mar 1, 2024
4 of 5 checks passed
@sofiamatulis sofiamatulis deleted the quick-add-bulk-min-0 branch March 1, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants