Forum Archive - GT Enterprise Plugin-Request a Quote button Offer item free

GT Enterprise Plugin-Request a Quote button Offer item free
Dec 6, 2015 7:18 pm by GlennB
I'm the person working without a web developer and have 1 more issue I need to get resolved. The developer I had set the English version of Wordpress when I have an item with a price of 0 the request a quote button is shown. Please see the page below scroll down to middle of page: http://medeqipexp.com/product-category/ ... systems-2/ In the GT Enterprise Translation Version Says the item is free and there is an add to cart button. Adds the item at 0 & luckily the item cannot be checked out. http://af.medeqipexp.com/product-catego ... systems-2/ Is there a coding fix that will work like the last issue? I appreciate your help. Thanks, Glenn Berry
Re: GT Enterprise Plugin-Request a Quote button Offer item f
Dec 8, 2015 1:55 pm by Edvard
Hi, You have this javascript which replaces Add to cart button with Request a quote button: <script type="text/javascript"> (function($) { $(document).ready(function(){ var btnText = "Free!"; var btnSwap = "Request A Quote"; $(".product .price").html(function () { return $(this).html().replace(btnText, "<a class='button btn btn-primary' id='btnSwap' href='http://medeqipexp.com/quote/'>"+btnSwap+"</a>"); }); if ($("#btnSwap").length) { // $(".button.alt").remove(); // $(".quantity").remove(); $(".product .add_to_cart_button").remove(); // Remove Add to Cart Button on product-category $(".single_add_to_cart_button").remove(); } }); })(jQuery); </script> As you can see it searches for "Free!" to make the replace. In the translated version "Free!" is being translated, that's why it doesn't make the replace. You will need to modify the javascript which makes the replace to be more smarter and also work on translated pages. Thanks!
Re: GT Enterprise Plugin-Request a Quote button Offer item f
Dec 10, 2015 8:56 am by GlennB
OK I understand. Thanks for the help. Glenn Berry
Re: GT Enterprise Plugin-Request a Quote button Offer item f
Dec 10, 2015 10:51 am by Edvard
You are welcome!

SIMILAR TOPICS

Onloading the plugin quickly flashes up flags and text namesFeb 7, 2019 3:29 pmReplies: 1Post by: brobertson
Problem with pluginDec 30, 2018 11:59 pmReplies: 1Post by: Iyari
How to remove mobile Language Select Button transparencyDec 5, 2018 10:06 pmReplies: 10Post by: JeffTR
Plugin Not WorkingMar 10, 2018 6:49 pmReplies: 11Post by: wsjiii
Enterprise URLs not workingMay 14, 2018 8:25 pmReplies: 1Post by: dpitfield

Try GTranslate with a free 15 day trial