Page 10 of 27 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 264
  1. #91
    Join Date
    May 2010
    Location
    New York, NY
    Posts
    10
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    This has turned out to be a great mod. I was hesitant at first, as I would have liked what @sunflowertami was asking for as well. We have a restaurant, and there are several 'specials' we sometimes come back to due to popularity. Once we add a menu item, it would be great to go from RED to GREEN and have it tweet automatically without the extra step.

    Quote Originally Posted by sunflowertami View Post
    Hmm...well thanks for trying! I think I'll just use the original php file. It will still tweet the stuff on my temp category and people will click on it to get to my site however it will say product not found.
    It was tweeting immediately after I added a new menu item, even if status was 'out of stock' (RED).
    I found the culprit that was creating the tweet bug.

    Quote Originally Posted by jamielife View Post

    and replace just those 3 lines with:

    PHP Code:
     } elseif ($action == 'update_product') {
            
    zen_db_perform(TABLE_PRODUCTS_DESCRIPTION$sql_data_array'update'"products_id = '" . (int)$products_id "' and language_id = '" . (int)$language_id "'");
     
    // bof Auto Tweet.
    if($_POST['products_status'] = "1"){
    include 
    'twitter/twitter.php';
    require_once 
    'twitter/bitly.php';

    // CHANGE: path to your store (i.e. http://example.com/store
    $myStoreUrl 'http://www.example.com';
    // CHANGE: Your stores Twitter username and password
    $twitter = new Twitter("TwitterUsername","TwitterPassword");
    // CHANGE: Your bit.ly Username and API Key
    // API Key should be a long number starting with "R_"
    // available free @ http://bit.ly/account/your_api_key
    $bitly = new Bitly('myBITLYusername''R_321321321321321');

    // ##### No need to change below this line #####
    // URL for bitly.php to shorten
    $shirturl $myStoreUrl '/index.php?main_page=product_info&cPath=' $current_category_id '&products_id=' $products_id ;
    // send tweet.
    $shirtname $sql_data_array['products_name'];
    $mytweet ='New Product Available: "' $shirtname '" Check it out at ' $bitly->shorten($shirturl);
    $twitter->updateStatus($mytweet);
    }
    // eof Auto-Tweet
          

    Follow @jamielife's directions above, but where...

    PHP Code:
    if($_POST['products_status'] = "1"){ 
    change to...

    PHP Code:
    if($_POST['products_status'] == 1){ 
    This should do the trick. it would still be nice for the action to perform when turning RED to GREEN, but this should solve it tweeting when inactive. Great mod @jamielife!

  2. #92
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    application error Re: AutoTweet [support]

    I have installed the autotweet, but the file name update_product.php is the same file name for the autofacebook which i upload earlier, what can i do to fix this and have both working at the same time

  3. #93
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    I have installed the autotweet, but the file name update_product.php is the same file name for the autofacebook which i upload earlier, what can i do to fix this and have both working at the same time

  4. #94
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    can you tell me the code i need to copy from the twitter update_product.php and paste into the facebook auto update update_product.php

    i have facebook already installed and running just want to add the twitter one also but the updateproduct will overwrite the facebook changes.

  5. #95
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    If Twitter goes down for any reason for instance, over capacity, the Twitter add on will cause an error on the cart website. Would it be possible to add an if-then-else type catch all to handle such a situation? New products cannot be entered while Twitter is down unless the code is commented out or some other workaround is used. The tweet goes out but the new product addition isn't realized and has to be reentered.

  6. #96
    Join Date
    Jun 2010
    Location
    Essex, UK
    Posts
    4
    Plugin Contributions
    0

    help question Re: AutoTweet [support]

    I can't seem to get mine working. Could it be the new version of Zen Cart as I'm running v1.3.9d?

    I have made the changes in the autoTweet.php file and uploaded all files to my server. When I create a new product nothing happens on Twitter.

    Have you any ideas?

  7. #97
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    I'm Looking for a way to implement it with the multisite-mod.
    I need to update multiple Twitter-accounts for each site in the multi-sitemod, only publishing the products available for the specific sites.
    Not all categories are available on each site.

  8. #98
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    I have installed this mod & it's working but it showing like this on twitter:

    New Product Available: "" Check it out at http://bit.ly/aeG164

    It's not showing the item title and when you click on the link it shows a 404 not found page. How can I correct this problem so that it can work properly?
    Diva Boutiques
    www.divaboutiques.com

  9. #99
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Nevermind I figured it out!

    I had to change the following information

    // CHANGE: path to your store (i.e. http://example.com/store
    $myStoreUrl = 'http://divaboutiques.com';

    To this:

    // CHANGE: path to your store (i.e. http://example.com/store
    $myStoreUrl = 'http://divaboutiques.com/store';

    And everything is working fine now!
    Diva Boutiques
    www.divaboutiques.com

  10. #100
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: AutoTweet [support]

    Thanks for the add on but you can do this an easier way without pulling out your hair. To submit to twitter every time you add a product is very simple. Just add this bit of code into your admin/includes/modules/update_product.php, just before the zen_redirect right at the end of the file, add the code below and don't forget to put in your user name and password thats it. No other files necessary.

    // 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 = "http://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;
    $message = $_POST['products_name'][$_SESSION['languages_id']]. ' $' . $products_price . ' ' . $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

 

 
Page 10 of 27 FirstFirst ... 8910111220 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. v151 Autotweet Errors/Not Posting
    By Little Red Crane in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2014, 04:56 PM
  3. is there any AutoTweet addon or autofacebook addon work well with EasyPopulate?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Dec 2010, 03:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR