jeudi 18 février 2016

Magento - Add attribute if the product qty is zero

I want to insert this into the product page above the add to cart button but only if the qty is ZERO.

<p><font color="red">AVAILABLE FROM: <?php echo $_product->getResource()->getAttribute('due_date')->getFrontend()->getValue($_product); ?></font></p>

Can someone let me know what I need to add please.

Most appreciated

Anthony

Aucun commentaire:

Enregistrer un commentaire