Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default $display_special_price = zen_get_products_special_price($products_id, true)

    Can anyone help me with this script I've been working on? It's a script that uploads product details to Twitter automatically. I have it working about 99.9% but just one annoyance. When I upload the product, it's sending the special price to 4 decimal places £49.9900 instead of just £49.00

    Can anyone see what I need to add to this section of the script so that it outputs to 2 decimal places only?


    $display_special_price = zen_get_products_special_price($products_id, true)

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

    Default Re: $display_special_price = zen_get_products_special_price($products_id, true)

    OK, solved:

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

 

 

Similar Threads

  1. v151 set_session_login=true
    By rweeks in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 31 Jan 2013, 11:35 PM
  2. Is it true? No category search?
    By dmfelder in forum General Questions
    Replies: 15
    Last Post: 20 Aug 2009, 09:52 PM
  3. Replies: 2
    Last Post: 3 Jun 2009, 09:31 PM
  4. incrementing products_id
    By Kodam in forum General Questions
    Replies: 0
    Last Post: 14 Apr 2008, 02:53 PM

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