Prestashop and express checkout
January 30, 2010 – 6:58 pmIon_cannon released his express checkout for Prestashop a while ago, but I haven’t tried it yet. Now that Prestashop has moved up to 1.3 alpha, I guess version 1.2.5 must be pretty stable by now. So, I guess now is a good time to try the new module.
I haven’t used any modules other than the ones that come with the installation, so hopefully this will be a piece of cake to install and use. I’m running a pretty plain installation with just a few tweaks to the base theme, so I think that will help …
The first step was to move the module files into place. I think by default these (blockmyaccount, blockcart, and blockuserinfo), so I copied them into the modules folder.
The next step was to move the theme files. A lot more files being overwritten in this step …
Next, copy the ‘img/ionexpress’ folder into the ‘img’ folder. No overwriting here.
Next , ‘express-order.php’ and ‘express-cart.php’ are moved to the root directory where other php files are. No overwriting here.
Next, a SQL query was run, “ALTER TABLE ps_customer ADD guest int(1) NOT NULL DEFAULT 0;” This gave the output:
Query OK, 23 rows affected (0.09 sec)
Records: 23 Duplicates: 0 Warnings: 0
Next, a little terminal work to delete the Smarty cache files, “sudo rm /tools/smarty/compile/*.php” from root directory.
Next, some updating of the back office tools … edit “admin/tabs/AdminCustomers.php” … look near the top of the file for “public function __construct()” and add
‘guest’ => array(’title’ => $this->l(’Guest’), ‘align’ => ‘center’, ‘active’ => ‘guest’, ‘type’ => ‘bool’, ‘orderby’ => false),
before
‘active’ => array(’title’ => $this->l(’Enabled’), ‘width’ => 25, ‘align’ => ‘center’, ‘active’ => ’status’, ‘type’ => ‘bool’, ‘orderby’ => false),
Finally, I edited the “themes/express-order.tpl” file to make the “US” the default country. I changed the “ <select name=”id_country” id=”id_country”>
<option value=”">–</option>
to be
<select name=”id_country” id=”id_country”>
<option value=”21″>USA</option>
Yeah, those are the changes that I made. Now, to see how it looks …






