Creating Magento order programmatically and charging saved credit card.

Creating order is the basic functionality of Magento but its the trickiest one at the same time for developers. Yes, its true because its not straight forward like instantiating model, assigning some values and saving it. Sometimes you may want to create auto orders using some cron script.

Read More

Magento 2.0 : Fatal error: Uncaught exception ‘Magento\Framework\Exception\LocalizedException’ with message ‘Can’t create directory

This error message is indicating that Magento is unable to create a directory. This could be due to a number of reasons, such as: Permission issues – Magento may not have the necessary permissions to create a directory in the specified location. Disk space – The server may be out of disk space, preventing Magento … Continue reading “Magento 2.0 : Fatal error: Uncaught exception ‘Magento\Framework\Exception\LocalizedException’ with message ‘Can’t create directory”

Read More

Magento: Render static block in a phtml file

Suppose you have created a static block from Magento administration panel (CMS -> Static Blocks) and you want to render its content in some phtml file.

Read More

Configure Authorize.net in Magento

Magento has various built-in payment methods, one of them is Authorize.net. To enable and configure Authorize.net as your payment processor, you should have API Login ID and Transaction Key. You can get these credentials from your Authorize.net account.

Read More

Get Magento Website meta data and configurations data

Following functions will help you to get Magento meta data like “Default Title”, “Default Description” To get Default Title: To get Default Description: To get a configuration value: To get a configuration group:

Read More