Thread: Twitter Tweets

Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 60
  1. #21
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    I've tested it by clicking the "New Product" button and it works very well indeed. Great job Wilt very well done.

    Here is the code that appears at the top of the screen:

    Error Tue Jun 23 08:32:34 +0000 2009 2292140682 LIMELITES has a new product. http://tinyurl.com/mbvohh web false false 37887574 limelites.co.uk limelites http://s3.amazonaws.com/twitter_prod...tar_normal.gif false 8 9ae4e8 000000 0000ff e0ff92 87bc44 3 Tue May 05 08:51:47 +0000 2009 1 http://static.twitter.com/images/themes/theme1/bg.gif false 8 false false false

    This should be precisely what Linux was after and I can confirm that it does work beautifully. I'm sure it'll be useful to a lot of people who Twitter.

    Could I be a pain in the ######## and ask, is there a way to manipulate this code so that it also works when I "copy" a product and use the "Duplicate product" Radio Button to create a new ad?

  2. #22
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    I've tried replacing if ($action == 'insert_product') with if ($action == 'duplicate_product')

    ........ but obviously I don't know the correct function as this does noting... What might I need to use instead?

  3. #23
    Join Date
    Jan 2008
    Posts
    90
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    Honestly, since I'm using FireFox I have the Shareaholic plugin. I just go to the new product, right click, click Bit.ly and then post the new product to Twitter with two button presses. Sometimes I customize the message as well.

    BTW...the Shareaholic plugin for Firefox is amazing for e-commerce. I add to Bit.ly (which adds to Twitter for me), Facebook, MySpace, Kaboodle, and Twine from it and there is no need to add any code to Zen-Cart.

    I know it's not EXACTLY what you were looking for but it's definitely worth grabbing.

  4. #24
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    OK, so I've answered my own question. I just replaced if ($action == 'insert_product') with if ($action == 'update_product') and it's now adding everything to Twitter when I am in fact just duplicating existing ads to use as templates. When I finally click "Update" then it adds to Twitter.

    Wonderful!!

    I read the post above about Shareaholic and I've installed the FF Addon too. It will come in handy if I decide to ever use those other networks.... Do you recommend any in particular? Twine?? I've never even heard of Twine but is it worth the time and effort having your products listed there?

    Also, could I ask you to help with one more thing? Instead of the Twitter feed saying $message = STORE_NAME . ' has a new product. ' . $tinyPurl; would there be a way to make it display the product_id and the product_price and then the tiny URL? ?
    Last edited by limelites; 23 Jun 2009 at 05:32 PM.

  5. #25
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    OK guys, someone please help me out here as I've been struggling with this code for ages now. I'm trying to have the code upload to Twitter, but instead of the STORE_NAME and standard message, I want it to post the products name followed by the products_price and finally the tiny url....

    The Code I'm using is working for the price and the tiny url but I cannot for the life of me get the products name to display... what $ must I use for it to display the products name because $products_name just will not work!! I've also tried $productname and $ProductName but just cannot get it to display...

    $message = $products_name . ' £' . $products_price . ' ' . $tinyPurl;

    Can anyone help please??

  6. #26
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,930
    Plugin Contributions
    4

    Default Re: Twitter Tweets

    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']]

  7. #27
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,930
    Plugin Contributions
    4

    Default Re: Twitter Tweets

    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.

  8. #28
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    Wilt, thank you!! That worked an absolute treat :-)

  9. #29
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    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?

  10. #30
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    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

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. v151 Twitter Feed
    By DigiBooks in forum General Questions
    Replies: 1
    Last Post: 6 May 2015, 02:03 AM
  2. Twitter sidebox
    By karenkte in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Apr 2015, 05:25 PM
  3. v151 Twitter - Tweets not showing
    By karenkte in forum General Questions
    Replies: 1
    Last Post: 8 Mar 2013, 11:49 AM
  4. Twitter
    By irishshopper in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 11 Jul 2010, 01:21 PM

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