Announcement

Collapse
No announcement yet.

&mvt:product:formatted_price;

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

    #16
    Re: &mvt:product:formatted_price;

    Nope none of that changed.

    Can you post the code snippet that is not working?
    Last edited by Brennan; 12-22-14, 04:53 PM.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #17
      Re: &mvt:product:formatted_price;

      Dan, Where is the new variable display hidden in the new MM9 interface?

      Here is the code that does not work for me. It uses Sebenza Tools. Should I change it to toolkit or does it really matter?

      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_base_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_base_price;</span>
      				</div>
      Jamin Jones, CEO
      the Appalachian Offroad Motorcycle Company

      Comment


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

        That code looks fine. Sebenza tools should work in Version 9. Can you make sure the custom fields are all assigned to the page?
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


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

          Dan, Where is the new variable display hidden in the new MM9 interface?
          You have to enable the Token List module under Utilities for the stock display to become available. We continue to use our own internal variable display module for a number of reasons, we have made it free on the new app store: http://apps.miva.com/product/GD-VARIABLES.html (it has the added bonus of Test Order capabilities)

          Here is the code that does not work for me. It uses Sebenza Tools. Should I change it to toolkit or does it really matter?
          I agree with Brennan that the code looks correct, however there are always concerns with the Sebenza mods. The Sebenza Tools module was silently discontinued some time back due to issues and lack of updates/support. I know Miva has said they tested it with MM9, however I don't know how far they took that testing with this particular module since it covers a broad range of functions.

          Unfortunately it's going to be hard for anyone to narrow this module down as the culprit on this end without testing/diagnosing under your particular conditions. In the end, it may not even be the module. As Brennan stated it could be something as simple as the custom fields not being assigned.

          You could definitely transition this to the Toolkit with the use of mvt:assign to make things a little easier. Hasn't been updated in a while, but we kicked out an article covering common functions with mvt:assign here: http://glendaledesigns.com/knowledge...mvtassign-tag/ The product lookup function would be handled through the Toolkit, the rest could be done with mvt:assign.

          Comment


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

            That was it, Brennan! Somehow the custom fields got unassigned during the update.

            Is a similar pricing display included in the new layout using these options? What's the original template code for this?

            Displayed Price: 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)
            Additional Price Display: None
            Retail Price
            Base Price (includes any legacy price group discounts but does not reflect sales, coupons or discounts applied in the basket)
            Display Predicted Discounts
            Jamin Jones, CEO
            the Appalachian Offroad Motorcycle Company

            Comment


              #21
              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, are you trying to implement this conditional on the attribute machine's dynamic output? Are there variants with dynamic pricing at play?

              Comment


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

                All I am trying to do is use the strike thru pricing that is supposed to be available when a discount is set up in the new Marketing / Price Groups / Product Discount. I know the discount works because the product price is discounted in the basket.
                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


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

                  Code:
                  <span id="price-value" class="bold">Price: </span>    <span id="price-value-additional" style="text-decoration: line-through">
                          <mvt:if expr="l.settings:product:base_price GT l.settings:product:price">    
                             <span id="price-value" class="bold"> &mvt:product:formatted_base_price;</span>
                          </mvt:if>
                      </span>
                      <span id="price-value" class="bold">&mvt:product:formatted_price;</span>
                      <div id="product-discounts"></div>
                  Mark Hood
                  Vermont Gear

                  Comment


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

                    CTGY page has the same checkbox on the product display layout.

                    My ctgy page layout is below



                    Code:
                    <div class="item-price pull-right"><div class="product-price">
                        <mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
                            <span style="text-decoration: line-through">&mvt:product:formatted_base_price;</span>
                        </mvt:if>
                        <span class="bold">&mvt:product:formatted_price;</span>
                    </div></div>
                    Mark Hood
                    Vermont Gear

                    Comment


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

                      Yup - I'm beginning to think there might be an issue with the store. I'm going to open a support ticket...
                      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


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

                        Originally posted by lesliekirk View Post
                        Yup - I'm beginning to think there might be an issue with the store. I'm going to open a support ticket...
                        Good luck.... Luckily it was just the checkbox gotcha for me
                        Mark Hood
                        Vermont Gear

                        Comment


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

                          Just for s&g I added your code in addition to my code. Your code displayed the full price - no discount :(
                          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


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

                            Strange it works for me and is currently live but I really pounded my head the first time until I found that checkbox.

                            http://extranet.miva.com/forums/show...ing+sale+price
                            Mark Hood
                            Vermont Gear

                            Comment


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

                              Yeah...I checked the box a while back...
                              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


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

                                I am trying to wrap my brain around this whole thing and I am working on a store using MMUI. Will this work on MMUI or do I need to switch the store to CSSUI to get this to work?

                                Comment

                                Working...
                                X