Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to change ADD TO CART 0 to ADD TO CART 1
 
Juno612
Member
 
Total Posts:  54
Joined:  2009-02-07
City of Industry
 

Searched everywhere still unable to find the solution.

When I add product through cpanel, the ADD TO CART default value is “1” which is fine. But when I use dataflow, ADD TO CART default value is “0”, any idea how to fix it?

Thanks ^_^

 
Magento Community Magento Community
Magento Community
Magento Community
 
Juno612
Member
 
Total Posts:  54
Joined:  2009-02-07
City of Industry
 

Never mind, got it fixed. That’s what I did.

My version: Magento 1.7 CE

Go to:
app/design/frontend/default/thehighliving/template/catalog/product/view/addtocart.phtml

Replace:
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>” title="<?php echo $this->__('Qty') ?>” class="input-text qty” />

With: 
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product)== null?1:$this->getMinimalQty($_product) ?> “ title="<?php echo $this->__('Qty') ?>” class="input-text qty” />

Now my ADD TO CART default value is “1” when I import all my simple products through Dataflow, haven’t try configurable/grouped product yet. But it should be ok.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ksteele36
Jr. Member
 
Total Posts:  26
Joined:  2009-03-05
 

This is now within the “System” “Config” “Inventory” section under: “Minimum Qty Allowed in Shopping Cart”

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top