Free Android CakePHP GMaps Articles by Bali Web Design

May 31, 2012

Remember me with manual Login are not work cakephp 2

Filed under: cakephp — admin @ 9:15 pm

I have been code a day to fix problem on manual login cakephp 2. I try to redesign my cms using the latest cakephp 2 version, which in my opinion are great improve especially for the performance of framework. However there are many thing are make me confusing and a bit frustating.

I have use the magic of login Auth function, which is fast to build a login form. However on certain condition we still need manual login using user parameter on the function. For example when coding for auto login using remember me function. The user data are save on cookie when remember me selected.

This function are nice when we want the user to have option to save their login data for certain period. In this scenario, as long the cookie data available on their browser cache, they will automatically login when opening the site. It is convenient for user because they don’t need to login everytime they open the site.

(more…)

May 21, 2012

Prestashop – How to remove shop name from meta title

Filed under: prestashop — admin @ 9:22 pm

Default setting for meta title on prestashop are display at the end. Even if you set meta title on each CMS page or categories product page using SEO options, the shop name still display at the end of meta title. This make the title are too long and not sufficient for SEO.

To remove shop name from meta title is by editing file classes/Tools.php. And then search to function getMetaTags and getHomeMetaTags.If you want to change only homepage, then change only getHomeMetaTags function. But if you want to change other pages also, please change on getMetaTags.

You will need to remove all the dashes and PS_SHOP_NAME parts of the functions of classes/Tools.php. Save the file and upload to ftp server. Now you have a good meta title for your prestashop website.

How to change order id running number on prestashop

Filed under: prestashop — admin @ 8:41 pm

Sometime we need to change the order id running number for new installed prestashop. The reason probably to make transaction on our website shop is more trusted for new customer. For new online shop, it is hard to get trust at the beginning except we do branding a lot at launch. There is probably another reason to change order id running number, one that come to my mind is hiding our statistic data from competitor.

In my opinion we need to change order id running number and customer id running number. This way the customer are trust us as a popular web shop. So how do i change running number for order id on prestashop?

It is easy, but you need to have access to database, specifically phpmyadmin interface. And then run this query on prestashop database

ALTER TABLE  `ps_orders` AUTO_INCREMENT =255344;

255344 is the next order id.

And then for customer running number also same. Change through phpmyadmin by running this query

ALTER TABLE  `ps_customer` AUTO_INCREMENT =104;

104 is the next customer id

Please make sure to backup database first before running query and after query run please test once again the website order flow.

I recommend to use new logical running number, nowdays people are able to check if your website new or not.