If product $0 instead of showing price show 'Contact Us For Price'.
Not sure but it might be due to ===. In this case == should be more than enough.
Instead of comparing a string try and use the finalPrice value which is numeric. It would also prevent any issues if the format of your price HTML ever changes.
if ($_product->getFinalPrice() == 0) { echo 'Contact Us For Price
'; }else{ echo $this->getPriceHtml($_product); }
No comments:
Post a Comment