Originally posted by Matt Zimmermann
View Post
Announcement
Collapse
No announcement yet.
SOLD OUT button not displaying
Collapse
X
-
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
-
It is controlled through the outofstock functionMatt 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
-
Originally posted by Matt Zimmermann View PostIt is controlled through the outofstock functionCode:// ---- Update Button For "Out Of Stock" ---- // function outOfStock () { var button = $('#js-add-to-cart'), buttonText = button.val(); if (button.is(':disabled') == true) { button.addClass('bg-gray').val('Sold Out'); } else { button.removeClass('bg-gray').val(buttonText); }; }; outOfStock ();
http://www.celebrate365.com/product/TG634SLV.html
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
-
I would recommend contacting support so they can access the administration portal to review all the settings.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
-
Thanks Matt, I just did.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
-
Update the Add to cart input on the Product Display Layout template
Suivant Readytheme FIX:
<mvt:if expr="( l.settings:product:inv_level EQ 'out' )">
<input type="submit" value="Add to Cart" data-value="Add to Cart" id="js-add-to-cart" class="button button-block uppercase add-to-cart bg-teal bold" disabled />
<mvt:else>
<input type="submit" value="Add to Cart" data-value="Add to Cart" id="js-add-to-cart" class="button button-block uppercase add-to-cart bg-teal bold" />
</mvt:if>
Coustic Readytheme FIX:
<mvt:if expr="( l.settings:product:inv_level EQ 'out' )">
<input type="submit" value="Add to Cart" data-value="Add to Cart" id="js-add-to-cart" class="button button-medium uppercase add-to-cart button-pill" disabled />
<mvt:else>
<input type="submit" value="Add to Cart" data-value="Add to Cart" id="js-add-to-cart" class="button button-medium uppercase add-to-cart button-pill" />
</mvt:if>Happie Mendenhall
Support Technician
Miva, Inc.
Comment
-
I realize I started this for the Suivant ReadyTheme but I'm having a similar issue with Iron & Wool. I created a new PROD page template, I copied everything over from a working PROD page template, I changed the body ID to body id="PROD" but the words "SOLD OUT" do not appear on the copy. The button is grayed out but no text on the button change. So why would it work on the on the page template and not this one? I changed the body ID so that the javascript would work for the page. This has me truly baffled.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
-
I figured it out - it should have been js-PROD that I changed it to. <mvt:doh>It works now</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
Comment