Thread: Twitter Tweets

Results 1 to 10 of 60

Hybrid View

  1. #1
    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']]

  2. #2
    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.

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

    Default Re: Twitter Tweets

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

  4. #4
    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?

  5. #5
    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

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

    Default Re: Twitter Tweets

    OK, solved:

    round(zen_get_products_special_price($products_id, false), 2)

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

    Default Re: Twitter Tweets

    Quote Originally Posted by limelites View Post
    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
    How did you get this to work? What code did you use, and what file does it go in. I have everything else working like I want it. Thanks
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  8. #8
    Join Date
    Jun 2007
    Location
    Posadas, Misiones, Argentina
    Posts
    220
    Plugin Contributions
    0

    Default Re: Twitter Tweets

    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:

    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;
    without success...
    URL: http://www.littledreamswarehouse.com/shop
    Zen Version: 1.3.89h
    Zen Template: orange modified

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

    Default Re: Twitter Tweets

    Quote Originally Posted by countrycharm View Post
    How did you get this to work? What code did you use, and what file does it go in. I have everything else working like I want it. Thanks

    /includes/modules/update_product.php

    round(zen_get_products_special_price($products_id, false), 2)

 

 

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