How can I verify if a certain product say $order->products[$i] is on special or on regular price in php?
D
How can I verify if a certain product say $order->products[$i] is on special or on regular price in php?
D
Where are you when you want to check if a Product is on special?
You can get the special price with:
zen_get_products_special_price($product_id, $specials_price_only=false) {
from the functions_prices function file to see if there is a special price ...
For example, to get the 3 prices for Price, Special and Sale you can use:
Code:$display_normal_price = zen_get_products_base_price($products_id); $display_special_price = zen_get_products_special_price($products_id, true); $display_sale_price = zen_get_products_special_price($products_id, false);
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.5]
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!
Bookmarks