December 30, 2010 16:31
Sometimes it doesn’t work when using the following codes to show the successful / error message: Doesn’t matter, you can use the below codes to show the successful / error message: That’s easy, right? Happy Magento’ing ~
November 12, 2010 14:31
Disable Magento module? Easy, in admin panel, click the menu “System” -> “Configuration” -> “Advanced” in “Advanced” Section, select “disable” for the module you would like to disable, and it’s finish, right? Sorry but … NO! If you disable the module in admin panel, it will only disable the module output, not the module functionalities. [...]
November 11, 2010 15:55
In your selling period, sometimes you would like to make offer for promotion or festival. Here I will show you how to create a coupon code between a specific period for all products and customers with unlimited usage. In admin panel, click the menu “Promotions” -> “Shopping Cart Price Rules”, then the list for all [...]
November 8, 2010 11:52
By default, Magento use 8 digits for Orders, Invoices, Creditmemo and Shipments’ increment ID. However, sometime you would like to change the length to meet 3rd party’s system requirement. This can be easily accomplished by: modify the field “increment_pad_length” in the “eav_entity_type” table for whatever entity you’re wanting to modify. modify the field “increment_last_id” in [...]
October 29, 2010 11:37
In Magento customization, sometimes you may want to get the value of attribute’s option. In below example I will show you how to do it. Assuming that there is an attribute named “dropdown_field” and contains 4 options label: “Option 1″, “Option 2″, “Option 3″, “Option 4″. The codes below get the option label which is [...]
October 28, 2010 09:48
In your Magento development period, you may create many order to test the checkout process. Before the website launch, you should find that there is no “delete” action for orders. What? Is it crazy? Unfortunately, it’s really crazy (maybe) that you cannot delete order in Magento by default. Like me, there are over hundred orders [...]
October 25, 2010 15:55
You may design some nice templates and layouts for your Magento shopping cart, but you cannot choose these layouts in CMS. You can add the following XML codes in “global” section in either one of config.xml in any module, but I suggest you to create a new custom module to change it. For example, if [...]
October 25, 2010 10:03
When you’re implementing custom module, normally you will have to re-run setup routines. Some people will create newer version of the setup file, but it will make you confuse after 100 modification. To do it, simply remove references to your modules in “core_resource” table and then, in backend, go to ‘System’ -> ‘Configuration’ -> ‘Advanced’ [...]
October 22, 2010 10:06
After Magento is installed, you may have the error “Could not determine temp directory, please specify a cache_dir manually” when clicking on some pages in both backend and frontend. Usually it will be happened in shared web hosting, but also in individual server if the permission of tmp folder set wrong. Many bloggers suggested to [...]
October 21, 2010 09:38
Recently one of my company websites decided to use JoomSEF for SEO (Joomla 1.5.20 and JoomSEF 3.7.4). Because some custom components are developed in this website, so some extension of JoomSEF for these custom components are needed. Everything goes smooth … except the ajax page … The following codes are placed in view.html.php Because the [...]