Announcement

Collapse
No announcement yet.

Removing Price messes up Related Items layout

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

    Removing Price messes up Related Items layout

    I can't duplicate this behavior in my own dev site, but it's driving me absolutely mad. I have even copied the code for the Product Display Layout and pasted into the site I'm working on. The minute I delete BOTH instances of

    Code:
    <mvt:if expr="l.settings:product:price GT 0">				<div id="js-price-value" class="h3 charcoal nm" data-base-price="&mvt:product:price;">&mvt:product:formatted_price;</div>
    			<mvt:else>
    				<div id="js-price-value" class="all-hidden" data-base-price="&mvt:product:price;"></div>
    			</mvt:if>
    			<mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
    				<p>Normally: <s id="js-additional-price">&mvt:product:formatted_base_price;</s></p>
    			</mvt:if>
    			<div id="js-product-discounts"></div>
    The layout for the Related items loses the slider formatting. I can copy the code from the store and past it into my dev site and it works.

    Could there be an issue with the javascript file that needs to be updated?
    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

    #2
    Re: Removing Price messes up Related Items layout

    Hi Leslie,

    There are dependencies in the scripts.js file which require the above code on the page. It is the function for updating the product price if you have up charges in an attribute but are not using attribute machine for attribute pricing.
    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


      #3
      Re: Removing Price messes up Related Items layout

      So what do I do if I do not want to display the product price?
      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


        #4
        Re: Removing Price messes up Related Items layout

        LOL, well at least for now the class "all-hidden" is my friend.

        So I am to understand this correctly - if the product has attributes, trying to remove the code that displays the pricing is going to break the Related Products layout. If the product doesn't have attributes it will have no affect? At least that's what I seem to be seeing.
        Last edited by lesliekirk; 08-26-15, 12:11 PM.
        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

        Working...
        X