Forums / General Questions / The function zen_get_products_display_price

The function zen_get_products_display_price

Locked

Started by g_nencini on 20 May 2009, 9:07 AM · Views: 3,255

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 May 2009, 9:07 AM
#1
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

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

20 May 2009, 10:16 AM
#2
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

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

21 May 2009, 4:33 AM
#3
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

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.

23 May 2009, 8:22 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!