// ========================================================================= // SHOW PRICE IN EURO // ========================================================================= function show_price_in_euro(){ global $product; if( $product->has_child() ) { $product->get_id(); $var_price_huf = $product->get_variation_price( 'min', true ); $exchange_rate = 360; $price_eur = $var_price_huf / $exchange_rate; echo '<span class="price euro"><span class="woocommerce-Price-amount amount eur">'.round($price_eur, 1).' €</span></span>'; } else{ $product->get_id(); $price_huf = $product->get_price(); $exchange_rate = 360; $price_eur = $price_huf / $exchange_rate; echo '<span class="price euro"><span class="woocommerce-Price-amount amount eur">'.round($price_eur, 1).' €</span></span>'; } } add_action('woocommerce_after_shop_loop_item', 'show_price_in_euro',-1);
Penni says
https://waterfallmagazine.com
Simply want to say your article is as surprising. The clarity in your post is simply excellent and i can assume you are an expert on this
subject. Fine with your permission allow me to grab your RSS feed
to keep up to date with forthcoming post. Thanks a
million and please continue the gratifying work.
Also visit my web page :: sql interview questions