Originally posted by Brennan
View Post
Announcement
Collapse
No announcement yet.
Storyteller Dynamic Pricing
Collapse
X
-
Storyteller Dynamic Pricing
Would this custom javascript be compatible with the Storyteller ReadyTheme? The store owner doesn't want to deal with all the inactive Inventory Variant products that it will generate.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Hi Leslie,
Storyteller ships with a version of this functionality.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
-
Hmmmm, then I must be doing something wrong. This is a recent install of Storyteller and the dynamic pricing isn't working. Is there a certain way that I need to configure the attributes? The site is behind a wall so I can't share it publicly.Originally posted by Matt Zimmermann View PostHi Leslie,
Storyteller ships with a version of this functionality.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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"
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Okay, cool. That works nicely, it seems, as long as there are no Inventory Variants involved. Is there a way for this to co-exist nicely with a combination of them?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"
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
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.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
So the store owner doesn't have to deal with all the inactive Inventory Variant products it's going to create. This item is more of an add-on but I don't think I can kit build.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.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
How difficult would it be to use this custom javascript with Storyteller? I have a store owner that does not want to use Inventory Variants.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.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
I'm thinking it would only be non-variant attributes. The has dozens of Attribute Templates that they go through and update pricing with. Inventory Variants wouldn't work since the Attribute Template must be "copied" to work. Unless something has changed that allows the Attribute Template to be "linked" and work with Inventory Variants (which would be awesome).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.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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) ---- //
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
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.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) ---- //
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
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.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
Comment