Posts

Showing posts from June, 2014

Woocommerce + WPML: Product 404 Not found when switch language?

Image
If you are using WPML  + Woocommerce and found that, usually when you trashed and recreate a product, you may find that when you switch language from one to another, the other language will show "404 Not found". This problem exists because your slug (Red underline: the last part of your URL if you are using permalink) is not the same across all products. My URL for all 3 languages are: English:    Traditional Chinese: Simplified Chinese: This is how I construct my URL in different language.  Notice the last part of the URL (the product name) is the same in all 3 languages.  You just need to make sure that you have different URL (identified by language name). This would solve your product 404 not found problem. Hope it helps someone.

[Solved] Magento: Login Redirect to Home Page, even if remove var/cache

Update: This paeg also solved my problem: http://www.aschroder.com/2009/05/fixing-magento-login-problem-after-a-fresh-installation/ Situation:  I download a copy of magento from production server to local machine (Win 7 + XAMPP 1.8.2) and try to set it up. After setting it up and load the home page (index.php), it redirected me to the old, production URL. This is the first problem, and you can follow this and this to solve it. Problem: However, there are times when it still did not work (still redirect to index.php when go to admin/), even you have already remove/delete the var/ folder, which contains cache/ and sessions/. So how to solve this problem? Solution: URL redirection is not only controlled by setting in DB, but also it is controlled by mod_rewrite/.htaccess. This is my .htaccess: <IfModule mod_rewrite.c> ############################################ ## enable rewrites     Options +FollowSymLinks     RewriteEngine on

Swift in WWDC 2014

I just wrote a new post about what Swift in WWDC 2014 means to programmers and project manager: Blog:  What Apple “Swift” means to Programmer and Project Manager? Enjoy!