Magento 1.3 PHP Developer's Guide by George Griffin

Magento 1.3 PHP Developer's Guide by George Griffin

Author:George Griffin [Griffin, George]
Language: eng
Format: azw3
Published: 2018-10-06T16:00:00+00:00

• A check to see if the item is out of stock or not before displaying the Add to Cart button, with a warning message if it is in fact out of stock

<?php

foreach($this->getFeaturedProducts() as $_product): ?>

<form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">

<a href="<?php echo $_product->getProductUrl() ?>">

<?php echo $this->htmlEscape($_product->getName()) ?></a> <img class="product-image" src="<?php echo

$this->helper('catalog/image')->init($_product, 'small_image')->resize(200, 200) ?>" alt="<?php echo $this ->htmlEscape($_product->getName()) ?>" />



Loading...
Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Web Analytics