-
Notifications
You must be signed in to change notification settings - Fork 600
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
STENCIL-3383 Do not show add to cart on disabled products. #1063
STENCIL-3383 Do not show add to cart on disabled products. #1063
Conversation
51eb385
to
9e5de44
Compare
💚 |
@@ -43,7 +43,7 @@ | |||
<a href="{{url}}" class="button button--small card-figcaption-button" data-product-id="{{id}}">{{lang 'products.choose_options'}}</a> | |||
{{/if}} | |||
{{#if pre_order}} | |||
<a href="{{url}}" class="button button--small card-figcaption-button">{{lang 'products.pre_order'}}</a> | |||
<a href="{{pre_order_add_to_cart_url}}" class="button button--small card-figcaption-button">{{lang 'products.pre_order'}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a new field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it will be a new fields which will only be passed for pre-order. On product details page it is a form so it is not required on those pages. But on pages where it is a card it is necessary bcoz earlier it was taking users to product detail pages. It is a similar url construct to add to cart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - just need to resolve the merge conflict
751634b
to
f55b397
Compare
What?
This PR fixes a couple of things;
Tickets / Documentation
https://jira.bigcommerce.com/browse/STENCIL-3383
https://jira.bigcommerce.com/browse/STENCIL-3353
Screenshots (if appropriate)
Before
After
Pre order
options
disabled online ordering
Add to cart
Login for pricing in list view
@bigcommerce/stencil-team @bc-ranji @cristycarpenter