Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
Hi,
need some more information. When you say without success, do you mean no message is sent to twitter.
Are you including this in the product update code, as shown in previous posts.
Can you get any message to send to twitter.
ie if you just set
$message = 'This is a test";
also I have been informed that some people have problems calling twitter using an https domain and that setting
$url = "http://twitter.com/statuses/update.xml";
in the updateStatus function, works better.
I finally solved... was my syntaxis I think... the code works exactly like you provide...
thanks...
I have not been able, what is the final text :?
YYYYYYY: your usernameCode:// BOF twitter feed if ($action == 'insert_product') { $purl = zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id); $tinyPurl = file_get_contents('http://tinyurl.com/api-create.php?url='.$purl); function updateStatus($user, $password, $message) { $url = "https://twitter.com/statuses/update.xml"; $curl = curl_init($url); $data = array('status'=>$message); curl_setopt($curl, CURLOPT_USERPWD, $user.':'.$password); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_RETURNTRANSFER,1); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:')); $result = @curl_exec($curl); curl_close($curl); return $result; } $message = STORE_NAME . ' has a new product. ' . $tinyPurl; $user = 'YYYYYYYYY'; $password = 'XXXXXXXXX'; $result = updateStatus($user, $password, $message); $messageStack->add_session($result, 'error'); } // EOF twitter feed
XXXXXX: your password
I try with price and product name, but like in my store, product name is so large, I decide go with wilt text![]()
Hi, I have been able to successfully use this great Tweet but I have to make 2 separate mods if I put my item on sale.
For example, if I have an item listed for $12 but put it on sale for $7 then it tweets $12 so then I have to go in and hard code to $display_special_price SO my question is.....
Is it possible that it picks the current price whether it is a sale or not?
Thanks Wilt & everyone for all the help.
Wilt
I install the mod for another zen... and does not work...
the same like countrycharm here:
http://www.zen-cart.com/forum/showpo...3&postcount=36
I get the error area, without text and no post in twitter
I check with the hosting about the PHP Curl extensions and they said are available in my hosting account
I will pm you my code...
thanks in advance...
Hi does the code look like this with the highlighted area in red?
If it does try changing the https:// to just http:// and see if that want take care of your problem.// BOF twitter feed
if ($action == 'insert_product')
{
$purl = zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id);
$tinyPurl = file_get_contents('http://tinyurl.com/api-create.php?url='.$purl);
function updateStatus($user, $password, $message)
{
$url = "https://twitter.com/statuses/update.xml";
$curl = curl_init($url);
$data = array('status'=>$message);
curl_setopt($curl, CURLOPT_USERPWD, $user.':'.$password);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
$result = @curl_exec($curl);
curl_close($curl);
return $result;
}
$message = STORE_NAME . ' has a new product. ' . $tinyPurl;
$user = 'YYYYYYYYY';
$password = 'XXXXXXXXX';
$result = updateStatus($user, $password, $message);
$messageStack->add_session($result, 'error');
}
// EOF twitter feed
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
yessssssssssssssss!
thank you very much!!!!!!!!
![]()