magento1
How to create invoice when order created programmatically in magento1
You can create an invoice programmatically for an order by using the below code
Magento1 how to change magento order status programatically?
Some time we need to change the Order status programmatically , the below code will allow us to do this
Magento add Recaptcha to any form you want
Hi, This extension will allow you to ad google reCaptcha to any form you want by add one line , only one line will activate the reCaptcha
First step is to set the configuration from
System -> Configuration
Go to the ZEO Extension section then click on reCaptcha
Then add the configuration
Refresh Magento1 Cache from Command Line
change your directory to Magento root then execute this command
php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();'
Magento1 indexes
First of all you need to change the directory to shell folder under magento root
{Magento root}/shell
Checking for the status of all indexes
php indexer.php --status
Re-indexing a single index
Each index has its own index key that you can use to reference it when asking Magento to re-index. To get these keys, you can use the following command:
php indexer.php --info
Send rest password link email to customer programmatically in magento
How to Send rest password link email to customer programmatically in magento?
Usually you need to load the customer first, then call the function on customer logic like this
Add Product to Cart if it is Not Exist magento1
if you want to add product to cart programmatically only if the product is not exist you have to use this code,
in this code you will check if the product is not exist in the Cart Quote, then if it is not exist you will add it