Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    help question The function zen_get_products_display_price

    I'm studying the function zen_get_products_display_price($products_id)
    that is called by the script
    includes\templates\my_template\templates\tpl_product_info_display.php. and other.

    I've seen that in admin I can choose to show a price with taxes included or not, by setting

    DISPLAY_PRICE_WITH_TAX = 'true' or
    DISPLAY_PRICE_WITH_TAX = 'false'

    but I'm not able to understand how the function
    zen_get_products_display_price
    detect the above setting and how for this works.

    Is there some guru that is able to explain me that?
    Thanks - Giovanni

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: The function zen_get_products_display_price

    DISPLAY_PRICE_WITH_TAX is a configuration flag, set by using the admin panel... and stored in the database.

    admin - configuration - my store - Display Prices with Tax
    ~Steve~

  3. #3
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default Re: The function zen_get_products_display_price

    I know this.
    My question is related to the function: I don't understand how the function choose to show the price with taxes or not.
    the DISPLAY_PRICE_WITH_TAX is not present in the function.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,715
    Plugin Contributions
    6

    Default Re: The function zen_get_products_display_price

    The tax functions are actually using it that are called by the function zen_get_products_display_price ...

    A search on:
    DISPLAY_PRICE_WITH_TAX

    in the Developers Tool Kit will show you all of the files that are using this setting ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Replies: 3
    Last Post: 11 Jan 2011, 02:53 AM
  2. [Not a Bug] Bug in zen_truncate_paragraph function
    By SilverZulu in forum Bug Reports
    Replies: 3
    Last Post: 21 Dec 2007, 01:11 AM
  3. Search function
    By aquaessential in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2007, 04:59 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
  •