Announcement

Collapse
No announcement yet.

Storyteller Dynamic Pricing

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Storyteller Dynamic Pricing

    Originally posted by Brennan View Post
    Normally 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.
    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

  • Hi Leslie,

    Storyteller ships with a version of this functionality.
    Matt Zimmermann
    Director of UI/UX Standards and Theme Development
    / Miva, Inc.

    Comment


    • Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Storyteller ships with a version of this functionality.
      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.
      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
        Director of UI/UX Standards and Theme Development
        / Miva, Inc.

        Comment


        • Originally posted by Matt Zimmermann View Post
          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"
          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?
          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
            Director of UI/UX Standards and Theme Development
            / Miva, Inc.

            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
                Director of UI/UX Standards and Theme Development
                / Miva, Inc.

                Comment


                • Originally posted by Matt Zimmermann View Post
                  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.
                  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.
                  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


                  • Originally posted by Brennan View Post
                    Normally 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.
                    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.

                    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
                      Director of UI/UX Standards and Theme Development
                      / Miva, Inc.

                      Comment


                      • Originally posted by Matt Zimmermann View Post
                        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.
                        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).
                        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
                          Director of UI/UX Standards and Theme Development
                          / Miva, Inc.

                          Comment


                          • Originally posted by Matt Zimmermann View Post
                            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) ---- //
                            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.

                            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
                              Director of UI/UX Standards and Theme Development
                              / Miva, Inc.

                              Comment

                              Working...
                              X

                              This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

                              This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

                              Accept