Hi Leslie,
For the function to run, the product has to have attributes and attribute machine has to be undefined.
Announcement
Collapse
No announcement yet.
Storyteller Dynamic Pricing
Collapse
X
-
Originally posted by lesliekirk View Post
Are there any specific settings that need to be configured to trigger it? It looks like it works with all attribute types. I've tried radio buttons and drop down select but the product price doesn't change with either one. I'm not seeing any javascript errors. I'm wondering about the settings in the Attribute Machine? The Displayed Price and the Additional Price Display.where a product is using inventory variants and non-variant attributes
Leave a comment:
-
Hi Leslie,
To the best of my knowledge, it should work out of the box for products that aren't using attribute machine, i.e. any variants.
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Leslie,
In that case, the code Brennan is referring to is included with Storyteller. You can locate it in the scripts.js file by searching for:
Code:// ---- Update Display Price Based on Attribute Selections (If Attribute Machine Is Not Being Used) ---- //
Leave a comment:
-
Hi Leslie,
In that case, the code Brennan is referring to is included with Storyteller. You can locate it in the scripts.js file by searching for:
Code:// ---- Update Display Price Based on Attribute Selections (If Attribute Machine Is Not Being Used) ---- //
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Leslie,
The code you are referring to could cause conflicts if you add it where a product is using inventory variants and non-variant attributes.
Leave a comment:
-
Hi Leslie,
The code you are referring to could cause conflicts if you add it where a product is using inventory variants and non-variant attributes.
Leave a comment:
-
Originally posted by Brennan View PostNormally in order to get the price to change automatically based on the attribute selected you must use inventory variants. This is the only method miva supports by default. There are some use cases where you don't want inventory variants for whatever reason.
Because of that in a few of the readythemes (suivant, optics, iron & wool, coustic and levels) we added custom javascript specific to those themes which will do this price change for you without inventory variants. This is why it is working for you on some products even though do you don't have variants.
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Leslie,
Is there a reason the priced attribute isn't part of the variant? Without going one way or the other, I don't see a clean way to make it work.
Leave a comment:
-
Hi Leslie,
Is there a reason the priced attribute isn't part of the variant? Without going one way or the other, I don't see a clean way to make it work.
Leave a comment:
-
What you recommend I do for an item that has a combination of Inventory Variant and non Inventory Variant Attributes. The Inventory Variants have a price of 0.00 but the attribute that isn't an Inventory Variant has a price that I need to dynamically update the product price when selected.
Leave a comment:
-
Hi Leslie,
This code will only run if the particular product is not using variants. If a product is using variants, attribute machine takes over and the price will update if the variants are set up to do that.
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Leslie,
Looks like there was a typo in the Storyteller product page code. To get the functionality working, change the data-hook value of the form to
Code:data-hook="product-details__purchase"
Leave a comment:
-
Hi Leslie,
Looks like there was a typo in the Storyteller product page code. To get the functionality working, change the data-hook value of the form to
Code:data-hook="product-details__purchase"
Leave a comment:
-
Originally posted by Matt Zimmermann View PostHi Leslie,
Storyteller ships with a version of this functionality.
Leave a comment:
Leave a comment: