@ordergroove/offers 2.28.4 → 2.28.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordergroove/offers",
3
- "version": "2.28.4",
3
+ "version": "2.28.5",
4
4
  "description": "offer state component",
5
5
  "author": "Eugenio Lattanzio <eugenio63@gmail.com>",
6
6
  "homepage": "https://github.com/ordergroove/plush-toys#readme",
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@ordergroove/offers-templates": "^0.4.19"
49
49
  },
50
- "gitHead": "601ca594fddc7375b615c58985f56a7030ea2bf4"
50
+ "gitHead": "6fd874680ea2cf1624ef69a399de1b83128e1473"
51
51
  }
@@ -340,6 +340,8 @@ export function getOrCreateHidden(parent, name, value) {
340
340
  * @param store
341
341
  */
342
342
  function synchronizeSellingPlan(store: any, offerElement?: HTMLElement) {
343
+ if (offerElement.isCart) return; // hidden inputs are used when product page, not cart.
344
+
343
345
  [...document.querySelectorAll('form[action$="/cart/add"] [name=id]')].forEach((productIdInput: HTMLInputElement) => {
344
346
  const productId = productIdInput.value;
345
347