Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mx_show_custom_price() {
- global $product;
- $mx_product_custom_price = $product->get_meta ('cash_price');
- $price_eur = convert_to_eur($mx_product_custom_price);
- $formatted_price_eur = "<span class='woocommerce-Price-amount amount amount-eur'> <small>($price_eur €)</small> </span>";
- echo "
- <div id='price-container'>
- <span id='price-text'>Neka druga cijena:</span> <span>". number_format($mx_product_custom_price, 2, ",", ".").' kn' . $formatted_price_eur ."</span>
- </div>
- ";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement