GT Enterprise Plugin-Request a Quote button Offer item free

Popular automatic website translation tool

GT Enterprise Plugin-Request a Quote button Offer item free

Postby GlennB » Sun Dec 06, 2015 11:18 pm

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
GlennB
 
Posts: 7
Joined: Tue Nov 10, 2015 1:37 am

Re: GT Enterprise Plugin-Request a Quote button Offer item f

Postby Edvard » Tue Dec 08, 2015 5:55 pm

Hi,

You have this javascript which replaces Add to cart button with Request a quote button:

Code: Select all
<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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: GT Enterprise Plugin-Request a Quote button Offer item f

Postby GlennB » Thu Dec 10, 2015 12:56 pm

OK I understand. Thanks for the help.

Glenn Berry
GlennB
 
Posts: 7
Joined: Tue Nov 10, 2015 1:37 am

Re: GT Enterprise Plugin-Request a Quote button Offer item f

Postby Edvard » Thu Dec 10, 2015 2:51 pm

You are welcome!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux