Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Double currency display WooCommerce
- Code By: Eimantas Kasperiunas - http://kasperiunas.com
- */
- jQuery(document).ready(function($) {
- $(".amount").each(function() {
- var original_price = parseFloat($(this).html());
- var second_price = original_price / 3.45;
- $(this).html(original_price + "Lt<span class='euro_price'> / " + second_price.toFixed(2) + "€</span>" );
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement