Skip to content

CATALOG-2408 Fix updateView firing when there are no default options#1172

Merged
mjschock merged 1 commit into
bigcommerce:masterfrom
bookernath:CATALOG-2408
Feb 28, 2018
Merged

CATALOG-2408 Fix updateView firing when there are no default options#1172
mjschock merged 1 commit into
bigcommerce:masterfrom
bookernath:CATALOG-2408

Conversation

@bookernath
Copy link
Copy Markdown
Contributor

@bookernath bookernath commented Feb 27, 2018

What?

Fix price reflowing when there are no default options, which was overriding price ranges. We will now only update the PDP view when there are default option values, which will mirror the behavior of actually clicking on those options.

I took @bc-jz 's advice that it's better to override price ranges when there are default option values, so they do get overridden in that case to set shopper expectation around what price they'll get if they press "add to cart" right away.

As a future improvement, we might maintain price ranges if there are required options without default values (meaning I must click at least one option before I can add to cart). Might make sense to keep the range around in that case.

Tickets / Documentation

ping @bigcommerce/storefront-team

Fix price reflowing when there are no default options, which was overriding price ranges.
@bigbot
Copy link
Copy Markdown

bigbot commented Feb 27, 2018

Autotagging @bigcommerce/storefront-team @davidchin

@mjschock mjschock merged commit ccc18d2 into bigcommerce:master Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants