Varien_Object is a class in Magento that serves as a base class for many Magento classes. The setQty method of a Varien_Object object allows for the setting of a quantity value. Here are some code examples:
Example 1: Setting quantity value of an object
$item = new Varien_Object();
$item->setQty(10);
Example 2: Updating quantity value of an existing object
$item->setData('qty', 5);
Example 3: Setting quantity value for a product in Magento
These examples are specific to Magento, so the package library would be Magento.
PHP Varien_Object::setQty - 30 examples found. These are the top rated real world PHP examples of Varien_Object::setQty extracted from open source projects. You can rate examples to help us improve the quality of examples.