Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / which function or class return the final price of a product?

which function or class return the final price of a product?

Views: 1,176

Results 1 to 3 of 3
16 Mar 2011, 5:17 PM
#1
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

which function or class return the final price of a product?

for some reasons i need to get the final value of a product on product_info_display page.

i know that zen_get_products_display_price will display all the price, but i just want the final value. not those saving....blah,,,

if possible, the attribute price can be checked. however, without attribute price will be OK for me anyway.

24 Mar 2011, 9:36 PM
#2
petlife avatar

petlife

New Zenner

Join Date:
Jun 2010
Location:
Denmark
Posts:
62
Plugin Contributions:
0

Re: which function or class return the final price of a product?

A link to your site ??

24 Mar 2011, 10:58 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: which function or class return the final price of a product?

If you look in the file:
/includes/modules/pages/product_info/main_template_vars.php

and do a search on:
price

you will see several ways to reference the price can be used for various needs ...

I am not sure what specifically you are trying to do, but while you will see the:
$currencies->display_price()

around many functions, without the:
$currencies->display_price()

you should have the value rather than the text ...