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

fix(catalog): CATALOG-2913 individual low inventory count for skus #1234

Merged
merged 1 commit into from
May 25, 2018

Conversation

ziad-abdo
Copy link
Contributor

@ziad-abdo ziad-abdo commented May 12, 2018

What?

address STOCK_LEVEL_DISPLAY_SHOW_WHEN_LOW
setting for skus. We were not properly switching back and forth
between skus that were above and below their own respective
threshholds.

Tickets / Documentation

Dependency

in order for this to work completely, this FE change depends on a BC pr
please see ticket for additional info.

    setting for skus. We were not properly switching back and forth
    between skus that were above and below their own respective
    threshholds.
@bigbot
Copy link

bigbot commented May 12, 2018

Autotagging @bigcommerce/storefront-team @davidchin

Copy link

@davidwrpayne davidwrpayne left a comment

Choose a reason for hiding this comment

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

LGTM

@mattolson
Copy link
Contributor

@Ubersmake Can you test this?

@@ -463,6 +463,9 @@ export default class ProductDetails {
// if the stock container is hidden, show
viewModel.stock.$container.removeClass('u-hiddenVisually');

viewModel.stock.$input.text(data.stock);
} else {
viewModel.stock.$container.addClass('u-hiddenVisually');
viewModel.stock.$input.text(data.stock);
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this text be updating to be an empty string since the data.stock does not exist in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

turns it out does not matter....this is working as is

@bc-jz
Copy link
Contributor

bc-jz commented May 23, 2018

💚 this is working for me

@ziad-abdo ziad-abdo merged commit 1acb31e into bigcommerce:master May 25, 2018
Ubersmake added a commit that referenced this pull request May 29, 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.

None yet

5 participants