How to create coupon code for fixed amount discount

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 [...]

Comments Off

Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments

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 [...]

How to get attribute option label in Magento with different store view

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 [...]

Comments Off

Delete all orders, reset bestseller and most viewed products in Magento

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 [...]

Comments Off

Add custom layout in CMS page

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 [...]

Comments Off

Re-run module’s setup routines in Magento

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’ [...]

Comments Off

“Could not determine temp directory, please specify a cache_dir manually” after Magento is installed

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 [...]

Comments Off