Announcement

Collapse
No announcement yet.

&mvt:product:formatted_price;

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

    &mvt:product:formatted_price;

    Upon inspecting our site for Miva 9 functionality, I noticed that &mvt:product:formatted_price; was not displaying correctly for price group customers on the product display page. It works fine on the category display page using the same exact code. I updated to the new template &mvt:product:formatted_base_price; with no luck.

    Disclaimer: Product Display uses Sebenza Product Template Manager and this code uses Sebenza Toolkit tucked into a Latu Widget. However, this should not affect the displaying of &mvt:product:formatted_price;

    Code:
    <mvt:item name="sebenzatools" param="product_lookup|retail|l.all_settings:product:code" />
                            
    <mvt:if expr="l.settings:product:price LT l.settings:product:customfield_values:customfields:RTP">    
    
    
                <div id="productRetailPrice">
            <span class="productLabel retail">Retail:</span>
            <span class="productValue retail" itemprop="highPrice">$&mvt:product:customfield_values:customfields:RTP;</span>
                    </div>
    
    
    <mvt:item name="sebenzatools" param="var|yousave|(l.all_settings:product:customfield_values:customfields:RTP - l.all_settings:product:price) ROUND 2" />
                    
                    <div id="productSavings">
                        <span class="productLabel savings">You Save:</span>
                        <span class="productValue savings">$&mvt:global:yousave;</span>
                    </div>
                    
                    <div id="productYourPrice">
                        <span class="productLabel">Your Price:</span>
                        <span itemprop="price"><span class="productValue" itemprop="lowPrice">&mvt:product:formatted_price;</span>
                                              </span>            
                    </div>
                <mvt:elseif expr="l.settings:product:price NE 0">
                    <div id="productPrice">
                        <span class="productLabel">Retail Price:</span>
                        <span class="productValue" itemprop="price">&mvt:product:formatted_price;</span>
                    </div>
    
    
                          <meta itemprop="seller" content="Appalachian Offroad MC" />
                          <meta itemprop="condition" content="new" />
                        </span>
    
    
                                    
                <mvt:elseif expr="l.settings:product:weight NE 675">
                    <div id="productNotAvailable">
                        <p>Product Not Available</p>
                        <p><em>This product is discontinued, superseded<br />  or currently not available to order.</em></p>
                    </div>
                </mvt:if>
    Jamin Jones, CEO
    the Appalachian Offroad Motorcycle Company

    #2
    Re: &amp;mvt:product:formatted_price;

    I recall the latu.net module using different variables under certain circumstances, try &mvt:widget:product:formatted_price;

    Comment


      #3
      Re: &amp;mvt:product:formatted_price;

      Originally posted by Dan - Glendale Designs View Post
      I recall the latu.net module using different variables under certain circumstances, try &mvt:widget:product:formatted_price;
      I tried that but it doesn't display anything. The widget doesn't appear to be the problem, i tested without it with the same results.

      It appears Miva is applying the price group discount to the item twice. I'm not sure if this is a MM9 bug with the new price groups or what?
      Jamin Jones, CEO
      the Appalachian Offroad Motorcycle Company

      Comment


        #4
        Re: &amp;mvt:product:formatted_price;

        Have you tried isolating product:formatted_price outside of Sebenza Product Template Manager, Sebenza Tools and latu.net Wow Wow Widgets to see if it fires properly? In our testing, the legacy price groups in MM9 appear to work as expected.

        Comment


          #5
          Re: &amp;mvt:product:formatted_price;

          Originally posted by Dan - Glendale Designs View Post
          Have you tried isolating product:formatted_price outside of Sebenza Product Template Manager, Sebenza Tools and latu.net Wow Wow Widgets to see if it fires properly? In our testing, the legacy price groups in MM9 appear to work as expected.
          Yes, this exact same code works just fine in category display.
          Jamin Jones, CEO
          the Appalachian Offroad Motorcycle Company

          Comment


            #6
            Re: &amp;mvt:product:formatted_price;

            I was referring to the product page. If you isolate outside of those modules on the product display and it works as expected, you know one of them is the culprit. These particular modules are of concern because they have not been updated/supported in some time, so it's not outside the realm of possibility that one of them is failing/improperly overriding that variable.

            From there I would say someone is going to need to get in there and run further tests/diagnostics.

            Comment


              #7
              Re: &amp;mvt:product:formatted_price;

              Color me stupid, but I cannot get this to display.

              Code:
               <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:original_price">        <strike>$&mvt:product:customfield_values:customfields:original_price;</strike><mvt:if expr="l.settings:product:base_price"><span>&mvt:product:formatted_base_price;</span></mvt:if>
                      <mvt:else>
                      <mvt:if expr="l.settings:product:base_price">&mvt:product:formatted_base_price;<mvt:else>Please See Product Description</mvt:if>
                      </mvt:if>
              Now all it displays is the Please See Product Description message
              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


                #8
                Re: &amp;mvt:product:formatted_price;

                The product:base_price variable holds a value even if it is zero. Try:

                Code:
                <mvt:if expr="l.settings:product:base_price GT 0">&mvt:product:formatted_base_price;<mvt:else>Please See Product Description</mvt:if>

                Comment


                  #9
                  Re: &amp;mvt:product:formatted_price;

                  That made perfect sense, but did not 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


                    #10
                    Re: &amp;mvt:product:formatted_price;

                    What is the value of product:base_price on the item you are testing with?

                    Comment


                      #11
                      Re: &amp;mvt:product:formatted_price;

                      Well, that's a good question, where do I determine that? I don't see a field for that on the Product Edit screen.
                      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: &amp;mvt:product:formatted_price;

                        Well, that's a good question, where do I determine that?
                        Throw in a variable display tool/module (http://apps.miva.com/product/GD-VARIABLES.html) or use the built in one.

                        I don't see a field for that on the Product Edit screen.
                        It's not a field, but an option in MM9 under point and click mode for the Product Display Layout:
                        • Retail Price
                        • Base Price (includes any legacy price group discounts but does not reflect sales, coupons or discounts applied in the basket)
                        • Sale Price (includes legacy price groups and predicted discounts)

                        Comment


                          #13
                          Re: &amp;mvt:product:formatted_price;

                          Yup - Base Price is 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


                            #14
                            Re: &amp;mvt:product:formatted_price;

                            As far as I can tell, I've added the setting in the Attribute Machine, I've updated the tags but it's still not displaying on the page as expected.
                            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


                              #15
                              Re: &amp;mvt:product:formatted_price;

                              None of my price calculations seem to work after upgrading to MM9. Are we sure Miva didn't change the custom field variables in v9?
                              Jamin Jones, CEO
                              the Appalachian Offroad Motorcycle Company

                              Comment

                              Working...
                              X