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 25, 2010 10:03
I’ve decided to remove the visitors counter in this website. The counter is not accurate (last number is 61982) because it includes all the search bots. The number is meaningless. So I switch to use Google Analytics and hope it will give me the real report, although I understand the number should be within 2 [...]
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 [...]
October 20, 2010 16:47
I have the old website which placed in sub-domain. Because this blog is launched, so all the links point to old website should be re-direct to the new website. However, the links are different with WordPress, so I would re-direct all links to new website’s homepage. Simply, job is done by adding one line in [...]
October 20, 2010 11:40
After two … ar … four years and more slient, I recently decided to back to blog life. One motivation is because my old web hosting will be closed, so I have to move my blog to other web hosting company. Because the old blog system is written on 2003, and I don’t have time [...]