So I am trying to create a function that states that if the product is new in stock then display price, or if the product is not new but reconditioned then I want it to display the reconditioned price, and lastly if there is none of the product in stock to display a "call for pricing" message. I am looking to do this in the price.phtml file and would like to know how to do this, I have an idea of what I want to do but I'm not entirely sure how to execute this code, please help! The image added is essentially what I would like to be done with code.
Instead of rewriting the
price.phtml I would use the
catalog_product_get_final_price event that is triggered from
In your observeryou can set the final_price data of a product
$observer->getProduct()->setData('final_price', $ yourCustomPrice);
This will overwrite other previously set prices