add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'VND': $currency_symbol = 'VNĐ'; break; } return $currency_symbol; } Happy Ninja – Noomacca

Happy Ninja

29

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Danh mục: ,
/*Author: levantoan.com*/ (function ($) { $(document).ready(function () { if($('form.variations_form.cart').length > 0) { $('form.variations_form.cart').each(function (){ let thisWrap = $(this).closest('.product-info.summary'); let oldPrice = $('.price-wrapper > .price', thisWrap).html(); let descBox = $('.product-short-description', thisWrap); $(this).on('show_variation', function (e, variation) { $('.devvn_variation_description', thisWrap).remove(); if(variation.price_html) $('.price-wrapper > .price', thisWrap).html(variation.price_html); if(variation.variation_description) descBox.append('
'+variation.variation_description+'
'); }); $(this).on('hide_variation', function (e) { $('.price-wrapper > .price', thisWrap).html(oldPrice); $('.devvn_variation_description', thisWrap).remove(); }); }) } }); })(jQuery);