Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Magento how to remove minimum quantity allowed for purchase validation error


Just comment the line below: (Lines from #499 to #505)
/public_html/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php

if ($this->getMinSaleQty() && ($qty) getMinSaleQty()) {
            $result->setHasError(true)
                ->setMessage(Mage::helper('cataloginventory')->__('The minimum quantity allowed for purchase is %s.', $this->getMinSaleQty() * 1))
                ->setQuoteMessage(Mage::helper('cataloginventory')->__('Some of the products cannot be ordered in requested quantity.'))
                ->setQuoteMessageIndex('qty');
            return $result;
        }

2 responses to “Magento how to remove minimum quantity allowed for purchase validation error

  1. tiscali.it 29/06/2013 at 11:23 PM

    Ahaa, its pleasant dialogue about this paragraph here
    at this webpage, I have read all that, so at this time me also commenting at this place.

  2. Lane 16/01/2014 at 12:41 PM

    Hey this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually
    code with HTML. I’m starting a blog soon but have no coding expertise so I wanted
    to get advice from someone with experience.
    Any help would be enormously appreciated!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: