zeepreeme
Forum Replies Created
-
I really liked this plugin, but unfortunately I have the same issue with Woocommerce 3.2.
I get a note in the cart, but the associated wrapping cost is not added.It seems this plugin is not supported any longer?
Forum: Plugins
In reply to: [WooCommerce] Exclude Categories from Related Products@jshwebdesigns
Were you able to get this working? I am looking for a solution as well.Thanks
Read up a bit on java and solved it by slightly adjusting the class selectors, it was taking the price strings from two more places due to same classes.
$(document).ready(function () { var originePrice = $(".summary p.price").html(); $(".summary .variations_form .woocommerce-variation-add-to-cart input").change(function () { setTimeout(function() { if( $(".summary .variations_form select").val() == '') { $(".summary p.price").html(originePrice); $(".summary .stock.variation").slideUp(500, function() { $(this).remove(); }); } else if ( $(".single_variation_wrap .woocommerce-Price-amount").length ) { var variationPrice = $(".single_variation_wrap .woocommerce-Price-amount").text(); $(".summary p.price").text(variationPrice); $(".summary .stock.variation").slideUp(500, function() { $(this).remove(); }); setTimeout(function() { $(".summary .variations_form .woocommerce-variation-availability .stock").insertAfter( ".summary p.price" ).addClass('variation').hide().slideDown(500); }, 500); } }, 200); }); });
the script is doing exactly what I have been looking for to do, so thanks for this.
- This reply was modified 7 years, 8 months ago by zeepreeme.
I’ve been looking for something like this as well. As my shop is set up I would like the product price span replaced by the variant’s price (same as e.g shopify does).
The second script from @klemonnier seems to work and has the benefit that when the variable list is reset, the original price span is shown again.
Unfortunately the price is not printed right, all the variable prices are printed with the correct variable price always in the middle.
I tried to look it through but I don’t know java script that much so I can trace what is wrong, anyone please care to help?As Troy mentioned, I also believe it would be a great function to implement into woocommerce as a standard functionality (by choice?)
Thanks
MartinForum: Plugins
In reply to: [Loco Translate] trouble syncing pot file to sourceHello,
Thank you very much for your quick reply.
I’ve had some difficulties understanding how to start with all this, thanks for the guiding.
I will localise my child theme and use a translate a specific domain for my child theme.- This reply was modified 7 years, 8 months ago by zeepreeme.