Articles in the Magento Category
Guest Post, Magento »
E-commerce has been developing rapidly since its emergence, especially in recent years. One of the important contributors to the development of e-commerce is Magento. According to the recent research conducted by Tom Robbert Shaw, over a quarter of online businesses selected Magento as the platform for their websites (including a number of famous companies such as Nike and Olympus), and annual transaction in these sites is more than 25 billion US dollars. The question is: why these companies have been choosing Magento as an e-commerce platform for their websites?
I placed an order in Magento using Paypal payment method. Everything went fine. I was able to pay through Paypal. However, when I login to the shop as a customer, I see that ‘My Orders‘ section is empty. I could not find information of the order I recently placed.
Event-Observer methodology is a very helpful way for customizing Magento. It’s an alternative to overriding Magento core classes/methods.
Magento has raised event at many useful places. However, there can be a situation where there is no event present in any particular method/function and we want an event to be raised there.
Here is a quick and complete code to load parent category from current category page and to get sub categories of parent category along with their product count.
Here is a code snippet to get sales quote and order data in both admin and frontend in Magento.
Get Sales Quote in Frontend
You can add tabs in a CMS page in Magento. I have used jQueryUI tabs for this purpose. You can view the examples and source code of the tabs feature here: http://jqueryui.com/tabs/
Here is the step-by-step guide to create tabs on Magento CMS page:-
Here is a quick code to get / load product by its SKU in Magento.
Generally we load product by its ID. Assuming product id to be ’166′.
Here is a quick code to get add to cart url of any product.
Suppose that we are fetching add to cart url of a product with id ’166′.
You might come up with a situation when two of your custom Magento modules are rewriting the same core class.
Suppose, you have the following two custom module classes:
Function addExpressionAttributeToSelect as defined in Mage_Eav_Model_Entity_Collection_Abstract (/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php) allows us to use MySQL functions in Magento collection.
Here is an example of using MySQL function CONCAT in Magento customer collection to concat customer’s firstname and lastname:
You have a Magento website with Base URL = http://example.com/
Not working: http://www.example.com/category-one.html (redirecting to homepage)
I just upgraded a Magento shop and I had problem on ‘Shipping Methods‘ sections of onepage checkout. No shipping methods were displayed and I was getting the following message over there:
Sorry, no quotes are available for this order at this time magento
Here are solution to some errors that I faced while upgrade Magento.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in downloader/pearlib/php/System.php on line 400
Suppose, you have ID of some products and you want to load them at once in Magento, then here is a solution:-
Suppose, you have 5 products ID: 5, 22, 45, 75, 88
Here is a step-by-step guide on moving Magento site from one server to another. This can be from localhost to server or from server to localhost or from one server to another.
Step 1: Enable maintenance mode