$display_special_price = zen_get_products_special_price($products_id, true)
Can anyone help me with this script I've been working on? It's a script that uploads product details to Twitter automatically. I have it working about 99.9% but just one annoyance. When I upload the product, it's sending the special price to 4 decimal places £49.9900 instead of just £49.00
Can anyone see what I need to add to this section of the script so that it outputs to 2 decimal places only?
$display_special_price = zen_get_products_special_price($products_id, true)
Re: $display_special_price = zen_get_products_special_price($products_id, true)
OK, solved:
round(zen_get_products_special_price($products_id, false), 2)