I need related products to have a quantity input on the view page and for the add to cart button to carry this quantity to the cart with the product.
Can anyone advise, thanks.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityput below code in app/design/frontend/base/default/template/catalog/product/list/related.phtml
<?php if(!$_item->canConfigure() && $_item->isSaleable()): ?>
<form method="post" id="event_form" action="<?php echo $this->helper('checkout/cart')->getAddUrl($_item) ?>" >
<input id="qty" name="qty" type="text" value="1" >
<button type="submit"><span><?php echo $this->__('Add to Cart') ?></span></button>
</form>
<?php endif; ?>