Storefront + VM2 - not displaying +&- Buttons on Product

GK User
Sun Nov 23, 2014 10:44 pm
After I added a stockable custom field in VM, with 2 options, it stops to display the + and - buttons on product layout.
I downloaded the template today and installed with quick start.

Are there any solutions to this problem?
User avatar
Fresh Boarder

teitbite
Tue Nov 25, 2014 8:10 am
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

GK User
Tue Nov 25, 2014 3:47 pm
teitbite wrote:Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.



I've solved the Problem already. I found it in another topic in this Forum today and could fix it. Will post links and pics in Future Posts.
User avatar
Fresh Boarder

teitbite
Thu Nov 27, 2014 9:32 am
Hi

Ok. Thank You. Can You please just add the link to the threat that helped You ? In case someone will be looking for an answer and find this thread first.
User avatar
Moderator

GK User
Mon Jan 26, 2015 4:52 pm
Hi,
I have the same problem. Could you post the link for the solution?
Thank you very much
Regards,
User avatar
Junior Boarder

teitbite
Tue Jan 27, 2015 8:02 pm
Hi

I think this thread can help here: https://www.gavick.com/forums/instyle/d ... ns#p191554
User avatar
Moderator

GK User
Thu Feb 05, 2015 5:10 pm
Hi,
unfortunately that post didn't solve my problem. Could you help me, please?

teitbite wrote:Hi

I think this thread can help here: https://www.gavick.com/forums/instyle/d ... ns#p191554
User avatar
Junior Boarder

teitbite
Fri Feb 06, 2015 8:17 pm
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Wed Feb 11, 2015 4:48 pm
Hi

Add this to /layout/blocks/head.php

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.quantity-controls input.quantity-plus').attr('value','+');
$('.quantity-controls input.quantity-minus').attr('value','-');
});})(jQuery)</script>
User avatar
Moderator

GK User
Fri Feb 13, 2015 4:47 pm
Hi,
I followed your hint but the problem remains the same.
It occurs on product with custom field (color, size, etc.) only.
In all other products it always worked fine.
User avatar
Junior Boarder

teitbite
Sat Feb 14, 2015 1:05 pm
Hi

Please send me an access to ftp and a link to the example of the page with this problem.
User avatar
Moderator

GK User
Mon Feb 16, 2015 6:42 pm
Hi, I sent you a PM.
Thanks
User avatar
Junior Boarder

teitbite
Tue Feb 17, 2015 8:18 pm
Hi

A small modification to the code before:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
   function checkForChanges() {
      if( $('.quantity-controls input.quantity-plus').attr('value') != '+' ) {
         $('.quantity-controls input.quantity-plus').attr('value','+');
         $('.quantity-controls input.quantity-minus').attr('value','-');
      } else {
         setTimeout(checkForChanges, 50);
      }
   }

   $(checkForChanges);
});})(jQuery)</script>


this worked in Your case.
User avatar
Moderator

GK User
Wed Feb 18, 2015 1:46 pm
Hi teitbite,
thank you very very very very very much :)

Great! You are fantastic!
Thanks again.
User avatar
Junior Boarder

GK User
Tue Feb 24, 2015 11:40 am
Hi teibite,
I'm sorry but I have to ask your help again about this issue.
If you chose another color of the product ("Scegli il colore") +&- buttons disappear again :(
Could you help me, please?
Thank you.
Regards,

Marco

teitbite wrote:Hi

A small modification to the code before:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
   function checkForChanges() {
      if( $('.quantity-controls input.quantity-plus').attr('value') != '+' ) {
         $('.quantity-controls input.quantity-plus').attr('value','+');
         $('.quantity-controls input.quantity-minus').attr('value','-');
      } else {
         setTimeout(checkForChanges, 50);
      }
   }

   $(checkForChanges);
});})(jQuery)</script>


this worked in Your case.
User avatar
Junior Boarder

teitbite
Thu Feb 26, 2015 11:35 am
Hi

Hehe. That's what You get if You try to make a smart script :) Just replace it with:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
   function checkForChanges() {
      if( $('.quantity-controls input.quantity-plus').attr('value') != '+' ) {
         $('.quantity-controls input.quantity-plus').attr('value','+');
         $('.quantity-controls input.quantity-minus').attr('value','-');
         setTimeout(checkForChanges, 50);
      }
   }

   $(checkForChanges);
});})(jQuery)</script>


I've basicaly removed "} else {" from it.
User avatar
Moderator

GK User
Thu Feb 26, 2015 6:30 pm
Hi,
unfortunately the problem persists. :(

teitbite wrote:Hi

Hehe. That's what You get if You try to make a smart script :) Just replace it with:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
   function checkForChanges() {
      if( $('.quantity-controls input.quantity-plus').attr('value') != '+' ) {
         $('.quantity-controls input.quantity-plus').attr('value','+');
         $('.quantity-controls input.quantity-minus').attr('value','-');
         setTimeout(checkForChanges, 50);
      }
   }

   $(checkForChanges);
});})(jQuery)</script>


I've basicaly removed "} else {" from it.
User avatar
Junior Boarder

teitbite
Mon Mar 02, 2015 10:24 pm
Hi

Ok. Try with this code than:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
   function checkForChanges() {
         $('.quantity-controls input.quantity-plus').attr('value','+');
         $('.quantity-controls input.quantity-minus').attr('value','-');
         setTimeout(checkForChanges, 50);
   }

   $(checkForChanges);
});})(jQuery)</script>
User avatar
Moderator

GK User
Wed Mar 04, 2015 5:15 pm
Hi,
finally it works!
Thank you very much :)
User avatar
Junior Boarder

teitbite
Fri Mar 06, 2015 11:52 am
Hi

Great to hear that. Glad I could help :)
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.