Advertisement
eimkasp

WooCommerce double currency

Aug 22nd, 2014
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.38 KB | None | 0 0
  1. /*
  2. Double currency display WooCommerce
  3. Code By: Eimantas Kasperiunas - http://kasperiunas.com
  4. */
  5. jQuery(document).ready(function($) {
  6.     $(".amount").each(function() {
  7.         var original_price = parseFloat($(this).html());
  8.         var second_price = original_price / 3.45;
  9.         $(this).html(original_price + "Lt<span class='euro_price'> / " +  second_price.toFixed(2) + "€</span>" );
  10.     });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement