Skip to content

Commit

Permalink
feat(checkout): CHECKOUT-7176 Displaying the Hidden Cart Source Input…
Browse files Browse the repository at this point in the history
… Field on PDP page (#2392)
  • Loading branch information
bc-mackxu authored Sep 6, 2023
1 parent 6266427 commit 93c65a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Display fees on cart page [#2376](https://github.com/bigcommerce/cornerstone/pull/2376)
- Replace Twitter logo with X logo within social sharing and social link components [#2387](https://github.com/bigcommerce/cornerstone/pull/2387)
- Added nvm config [#2389](https://github.com/bigcommerce/cornerstone/pull/2389)
- Displaying the Hidden cart_order_source Input Field on PDP page [#2392](https://github.com/bigcommerce/cornerstone/pull/2392)

## 6.12.0 (07-06-2023)
- sync package lock file [#2373](https://github.com/bigcommerce/cornerstone/pull/2373)
Expand Down
3 changes: 3 additions & 0 deletions templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ <h2 class="productView-brand">
data-cart-item-add>
<input type="hidden" name="action" value="add">
<input type="hidden" name="product_id" value="{{product.id}}"/>
{{#if product.cart_order_source}}
<input type="hidden" name="cart_order_source" value="{{product.cart_order_source}}"/>
{{/if}}
<div data-product-option-change style="display:none;">
{{inject 'showSwatchNames' theme_settings.show_product_swatch_names}}
{{#each product.options}}
Expand Down

0 comments on commit 93c65a3

Please sign in to comment.