i followed this blog to display the BUY NOW BUTTON


i displayed as like in the below link : i want to hide the buy now button if quantity is "out - of -stock"

please help me to find solution

1 Answer 1

if ($_product->isAvailable()) {
    <button type=”button” title=”Buy Now” class=”button btn-cart” onclick=”setcheckoutLocation(‘<?php echo $this->getAddToCartUrl($_product) ?>’)”><span><span>Buy Now</span></span></button>

will probably do it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.