The problem with the product name is that it is language dependant. So there is no simple variable holding it.
However you can access the name in the default language using
$_POST['products_name'][$_SESSION['languages_id']]
The problem with the product name is that it is language dependant. So there is no simple variable holding it.
However you can access the name in the default language using
$_POST['products_name'][$_SESSION['languages_id']]
Just a note as well. There is an API to use bit.ly, although it takes a bit more work than tinyUrl as it requires authentication.
Hi All,
Back to the drawing board with this, it's working but now I want the product special price sent to twitter... what would I use instead of $products_price to display $products_special_price?
OK, answered my own question again:
$display_special_price = zen_get_products_special_price($products_id, true)
But how do you get the price to display to two places after the decimal point? At present, it's displaying £49.9900 instead of £49.99
OK, solved:
round(zen_get_products_special_price($products_id, false), 2)
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
Wilt, could you please, put all this improves:
$_POST['products_name'][$_SESSION['languages_id']]
$display_special_price = zen_get_products_special_price($products_id, true)
round(zen_get_products_special_price($products_id, false), 2)
like must be in the message row please?
I try in this way:
without success...Code:$message = STORE_NAME . ' has a new product. ' . $_POST['products_name'][$_SESSION['languages_id']] . round(zen_get_products_special_price($products_id, false), 2) . $tinyPurl;