Originally Posted by
pexter
Yes! That's probably the right one, what's the correct syntax in the code? (I need to add it as html in the product description field)
Okay, so first, based on your description of what you wanted in the html code, I gave you the wrong function. The function I provided includes other html as an output.
The function that seems to fit your description is: zen_get_products_special_price($product_id, $specials_price_only=false)
Now, the thing is you are saying that you want to execute php code inside of your description... That requires a modification of code to use say swguy's boiler plate code to be able to execute the desired operation.
If you otherwise wanted to have that data say before or after the description then it could be added into the applicable tpl_PRODUCT_TYPE_info.php template file. To get what may be expected to be the "lowest" price, you would use:
Code:
<?php echo zen_get_products_special_price((int)$_GET['products_id'], false); ?>
Where you wanted that price to be shown. The function outputs the base price of the product if there is no special or sale, the specials price if there is no sale, or the sale price if there is a sale.
Bookmarks