Created
August 29, 2014 19:42
-
-
Save rickbenetti/04dfd6ec7589a36b2767 to your computer and use it in GitHub Desktop.
From http://inchoo.net/ecommerce/magento/user-friendly-product-availability-message-in-magento/ Como exibir a mensagem de produto fora de estoque.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Check to see if the item is in stock | |
if($_product->stock_item->is_in_stock == 1): | |
echo $this->__('Availability') ?>: <strong><?php echo $this->__('In stock') ?></strong> ?> | |
<?php else: ?> | |
<strong><a href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) ?>contacts/" title="<?php echo $this->__('Email') ?>"><?php echo $this->__('Email') ?></a></strong> <?php echo $this->__('or Call for Availability') ?> 1-222-333-444 | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment