Announcement

Collapse
No announcement yet.

Dynamic price not updating

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

    Dynamic price not updating

    I have a PR7 store that has the attribute machine items added to the head & body, inventory variants set up, and the correct IDs (price-value and inventory-message) around the price and inventory messages in the template.

    However, the dynamic price & messages are not updating on the product page. I have tried going back to the default page templates and that does not change anything. When I view the page's source code, I can clearly see the attribute machine JS running, but the price does not change when attributes are chosen.

    This issue is putting a hold on development of the store, it would be great if someone could provide some insight into what might be happening (or not happening).

    The test page in question can be seen here: http://www.safetyaspectsllc.com/safe...ty-glasses.htm

    Any help would be appreciated!

    #2
    Re: Dynamic price not updating

    When you setup the variants did you choose the variant to control the price or the sum of product plus attributes?
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Dynamic price not updating

      I think I tried both methods, but it should be the variant controlling the price.

      I actually just tested a different product by creating new attributes, choosing the price controlled by inventory variant, and interestingly enough just before the product page finishes loading, the product's price can be seen ($10) but when the JS loads, it changes to $0, and choosing an attribute doesn't change the price to anything but 0.

      Comment


        #4
        Re: Dynamic price not updating

        Did you actually set the price of the variant?
        Thanks,

        Rick Wilson
        CEO
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Dynamic price not updating

          I am having a problem with this as when I set the attribute to track inventory I get the error message of "Unable to locate form for inventory attributes" on the PROD page but I do get the 3 different inventory level messages.

          Comment


            #6
            Re: Dynamic price not updating

            I'm trying to follow along here as I am running into the issue of the price not changing when products are selected. I've set up a product price. One attribute "color" doesn't have an additional cost - so it's set to $0.00. One attribute "size" - has an additional cost based on size.

            If I select Variant Price is set by the Inventory Product. The storefront product now displays a price of $0.00. So does that mean I have to go back in and add a price? If so, where? Or do I have to make sure each attribute has some sort of price - for example all colors have the base price of $20?

            Chuck's tutorial shows that each variant is converted into a product, at what point is that supposed to happened? I'm not seeing the generation of additional products where I'm trying to create the 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


              #7
              Re: Dynamic price not updating

              Leslie,

              Jump on AIM, I'll walk you through it and then you can post the results for posterity :)
              Thanks,

              Rick Wilson
              CEO
              Miva, Inc.
              [email protected]
              https://www.miva.com

              Comment


                #8
                Re: Dynamic price not updating

                I have the missing piece to the puzzle! I wasn't setting prices in the newly created products (created from clicking the Inventory Variants - Auto Generate).

                My oversight was caused by my own personal "gotcha" - the new default of the Products displaying Active verses All - since these "products" are not active.

                Once I went in and assigned a price to each of these, the pricing dynamically changed on my dev site.

                Rick's question "Did you actually set the price of the variant?" now makes a whole lot of sense. Next I have to see if I can figure out why the pricing isn't changing dynamically on another site. Everything looks to be set up correctly, but I'm going to start back at the PROD template and go from there.

                So if you opt to use "Variant Price is set by the Inventory Product" you must go back in and set the price in each and every product that is generated. As Rick pointed out to me when he stepped me through the process, when you get into hundreds of variants, it's best to do this through a flat file import.
                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


                  #9
                  Re: Dynamic price not updating

                  Oh good grief, I am such a dork! (I would have rather used what Red Forman would say, but...) Yes, make sure you look at the PROD page tabs. Under the Attribute Inventory tab. You need to define Inventory Element AND the Price Element.

                  <mvt:DOH>If you don't define it, it won't display.</mvt:DOH>
                  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


                    #10
                    Re: Dynamic price not updating

                    I'm having this same problem, I've tried every variation of everything everyone has said so far and nothing seems to work. I don't understand Leslie's last post, I don't know what she means by defining the element and the price, when I look under that tab those are just boxes to be filled in, and whatever word i drop in there doesn't show up anywhere on the site.

                    I have a product with five sizes, so the default price says 0. Using the Kit builder I defined the five sizes and attached them to products that have their own prices set up, but no active page. I then clicked generate variants and selected "sum of their parts", as I had seen in another video that that should add the product price of the non-active product to the price of the product hosting the attribute. This did not happen, So I went into inventory variants and made sure each variant had "sum of their parts" selected. When that didn't change anything, I specified a price for each variant and tried it that way, but that didnt work either. I re-generated the variants through the kit builder and chose the other option, and then went through each variant again trying each option. Nothing has worked. What am I missing?

                    Comment


                      #11
                      Re: Dynamic price not updating

                      Originally posted by wunderwurks View Post
                      I don't understand Leslie's last post, I don't know what she means by defining the element and the price, when I look under that tab those are just boxes to be filled in, and whatever word i drop in there doesn't show up anywhere on the site.
                      The "element" is a CSS element. In my instance, I defined them as:

                      Inventory Element: inventory-message
                      Price Element: price-value

                      Then in the Product Display Layout tab (in the template)

                      Code:
                      <div class="product-price">Price: <span id="price-value" class="bold">&mvt:product:formatted_price;</span></div>
                      Code:
                      <div id="inventory-message">
                              <mvt:if expr="l.settings:product:inv_active">
                              &mvt:product:inv_long;
                              </mvt:if>
                      </div>
                      Those were some of the missing pieces to my puzzle.
                      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


                        #12
                        Re: Dynamic price not updating

                        Hmm, all that seemed to do was add a second spot on the page where the price is shown, but both still say zero no matter what other variations of options I choose. I feel like I'm missing something basic here. If I have a price designated for the product (0) and prices designated for variants, and the product attributes are set to "sum of their parts", shouldn't that be enough? the change in price shows up when you get to the shopping cart/checkout page, but not on the product page itself. argh.

                        Comment


                          #13
                          Re: Dynamic price not updating

                          The Dynamic pricing built into PR7 DOES NOT WORK with Sum Of Parts, only with set by the Variant.
                          Thanks,

                          Rick Wilson
                          CEO
                          Miva, Inc.
                          [email protected]
                          https://www.miva.com

                          Comment


                            #14
                            Re: Dynamic price not updating

                            Now I'm more confused. I watched a video of Rick demonstrating something similar to what I was talking about where he attached two sets of attributes to one product, namely infant clothes, which was just put up recently. In that video, you (Rick) used the Sum of Parts option, and the dynamic pricing seemed to work just fine.

                            Regardless of that, I tried setting up a new product to start fresh and give this another try, but it still isn't working. The first thing I did was create individual product pages for the different styles of one product for the variant list to call to, just called Small Vase, Medium Vase, and Large Vase, each with their own price. I then made a product page called Vase, gave it a price of 10, and added three attributes, Small Medium and Large. I gave each attribute the same price as the individual product pages, as I thought perhaps if I was using the Variant Generator with the "set by master product and attributes" choice, it would just read the attribute prices without the need to call back to the actual product pages I had made.

                            After creating the attributes, I went to Inventory Kit Builder and configured each size so that the quantity was 1, and made the code correspond to the codes for the individual product pages I had made earlier. I then generated the three variants, and under the Inventory Variants clicked through each one to make sure they were set to the master product setting. After checking the preview store and seeing that dynamic pricing had not worked, I went back through the Inventory Variants and set them all to sum of parts and tried again, still nothing. I then went back and changed them all to specific values and gave them the prices I had on the product pages, and that still didnt work.

                            I then went back to the kit builder and re-generated my variants with sum of their parts checked and once again tried all three settings in the Inventory Variants and nothing has worked.

                            My assumption is that I've missed something basic, like a switch for turning on dynamic pricing or something, somewhere in another part of my store builder I didn't know I had to deal with. I inherited the job of getting our store launched from another employee and have been slowly working my way through to make sense of all this, so anything you might think is obvious to have done, I might not.

                            Comment


                              #15
                              Re: Dynamic price not updating

                              That's my fault, sorry about that, I didn't think you were in the Kit Builder.

                              If you get me access to your store, I'll have someone on our team look through all your settings and find the gremlin. Shoot me an email and I'll give you some instructions on getting us your data securely.
                              Thanks,

                              Rick Wilson
                              CEO
                              Miva, Inc.
                              [email protected]
                              https://www.miva.com

                              Comment

                              Working...
                              X