-
Notifications
You must be signed in to change notification settings - Fork 613
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 to open Bulk Pricing modal from Quick View. #1483
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{{#if bulk_discount_rates.length}} | ||
{{#if product}}<dt class="productView-info-name">{{lang 'products.bulk_pricing.title'}}</dt>{{/if}} | ||
<dd class="productView-info-value"> | ||
<a href="{{url}}" | ||
{{#unless is_ajax }}data-reveal-id="bulkPricingModal{{#if id}}-{{id}}-{{$index}}{{/if}}"{{/unless}}> | ||
<a href="{{product.url}}#bulk_pricing" | ||
{{#unless is_ajax }}data-reveal-id="modal-bulk-pricing"{{/unless}}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🍹 from a "minimum viable change" perspective, is this needed? Or did this just feel like good cleanup? I believe bulk discount rates can be rendered on PLPs with certain configurations of theme config in which case this might serve a purpose (collisions, as you mentioned) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It felt like cleanup. Reverting that change until I'm absolutely 100% sure it wouldn't affect anything. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was wrong. |
||
{{lang 'products.bulk_pricing.view'}} | ||
</a> | ||
</dd> | ||
<div id="bulkPricingModal{{#if id}}-{{id}}-{{$index}}{{/if}}" class="modal modal--small" data-reveal> | ||
<div id="modal-bulk-pricing" class="modal modal--small" data-reveal> | ||
<div class="modal-header"> | ||
<h2 class="modal-header-title">{{lang 'products.bulk_pricing.modal_title'}}</h2> | ||
<a href="#" class="modal-close" aria-label="Close"><span aria-hidden="true">×</span></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.
This makes sure that the product URL is in the link, though it hasn't caused issues before. Follows the same convention as
#write_review