Display price is just that, a display ... this is not a numeric value ...
Something like this can help but be aware when attributes are involved then the products_id must include the attributes to show the price or it will not validate. This takes some of your code but adds additional code to the look up:
PHP Code:
<?php
$main_price = zen_get_products_display_price((int)$_GET['products_id']);
echo 'I see price in alpha form: ' . $main_price . ($main_price > 0 ? ' YES' : ' NO') . '<br>';
$products_lookup = $_SESSION['cart']->get_products();
$not_in_cart = true;
for ($i=0, $n=sizeof($products_lookup); $i<$n; $i++) {
if ($products_lookup[$i]['id'] == $_GET['products_id']) {
$not_in_cart = false;
echo 'products_lookup price only if in cart: ' . $products_lookup[$i]['final_price'];
}
}
if ($not_in_cart == true) {
echo 'products_lookup price NOT in cart ';
}
If ($main_price >= 10.00) {
echo TEXT_CERT_AUTHENTICITY ;
}
?>
To see prices that are in the cart that do not show, go to the shopping cart and click the link back to the product ... more than likely this is a product with attributes and now the products_id has the attributes added to get the full price ...
There are other methods but this might give you an idea of where to start ...
Bookmarks