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?
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.
teitbite wrote:Hi
I think this thread can help here: https://www.gavick.com/forums/instyle/d ... ns#p191554
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.quantity-controls input.quantity-plus').attr('value','+');
$('.quantity-controls input.quantity-minus').attr('value','-');
});})(jQuery)</script>
<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>
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.
<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>
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.
<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>