Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Query the Price for a Product

How to Query the Price for a Product

Locked

Views: 1,043

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Jul 2006, 2:43 PM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

How to Query the Price for a Product

I have a custom page on which I would like to display the prices for several products. Instead of just hardcoding the prices for these products, I would prefer to extract their prices from the SQL. Is there a simple or fairly simple way of doing this? Any help would be great!
Thanks

8 Jul 2006, 3:26 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to Query the Price for a Product

There are a lot of functions in the /includes/functions/functions_prices.php

Peek at some of the other pages such as the listings, product _info and sideboxes to see how the prices are actually pulled ...

This should give you quite a variaty of how these functions are used in the various areas so you can determin a Product Price ...

8 Jul 2006, 3:28 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: How to Query the Price for a Product

Example, peek in the /includes/modules/sideboxes/featured.php

Notice how the Product Price is grabbed with the function:

$featured_box_price = zen_get_products_display_price($random_featured_product->fields['products_id']);