1

I am trying to change the 'Minimum order quantity' on the front end because it currently displays '0'.

Minimum Order Quantity - Example

All simple and configurable products currently display 0. I have gone into the attributes of each product in the admin dashboard and tried changing it that way. What i changed was:

Catalogue -> Manage Products -> (Product 1 - Edit Attribute) -> Inventory > Changing 'Minimum Qty Allowed in Shopping Basket' to 1.

However this does not solve the problem and update the minimum order quantity on the front end.

How can i fix this so it displays '1' on the front end.

1 Answer 1

3

As your question mention you want to show minimum order quantity.

Goto app\design\frontend\<Your Theme>\default\template\catalog\product\view.phtml

before quantity section add this code

<?php $productQuantity = Mage::getModel("cataloginventory/stock_item")->loadByProduct($_product->getId()); $min_no_order = $productQuantity->getMinSaleQty(); echo $min_no_order; ?> 

I hope this will help you...!

2
  • Thank you very much. Solved my problem. I realised it was BSS that was overriding the original setting but your code fixes this. Thanks. Commented Oct 19, 2017 at 12:52
  • @PeterSmith: welcome :) Commented Oct 19, 2017 at 12:54

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.