WordPress.org

Ready to get started?Download WordPress

Plugin Directory

PrestaShop Integration

Add integration using shortcodes and plugins from a PrestaShop e-commerce to your blog

Does the plugin work with PrestaShop 1.0, 1.1, 1.2 or 1.3 ?

No, the plugin will not work with any PrestaShop older than 1.4 because the internal structure of PrestaShop has been improved since 1.4 by using a FrontController class. This plugin add support by adding a specific controller for integration with WordPress. It could be possible to add support for PrestaShop 1.3 or older, but it need to be coded. So to get support for PrestaShop Integration, the better is that you upgrade your PrestaShop to at least 1.4 series. You will get furthermore newer functionnalities and bug fixes.

Does the plugin work with PrestaShop 1.4 ?

Yes, it should. But If It doesn't work, you may need to update PrestaShop autoload behaviour as indicated below.

Does the plugin work with PrestaShop 1.5 ?

Yes, only since version 0.8 which is still compatible with PrestaShop 1.4.

I can't access my WordPress frontpage due to a redirection to the PrestaShop frontpage

If you are using PrestaShop 1.5 and you installed WordPress in root of your hosting and PrestaShop in a subdirectory, you will get this error. You need to patch PrestaShop file classes/shop/Shop.php as follows :

--- classes/shop/Shop.php.orig        2013-01-07 09:18:32.000000000 +0100
+++ classes/shop/Shop.php       2013-01-07 09:25:26.000000000 +0100
@@ -368,6 +368,9 @@
                        if (!Validate::isLoadedObject($default_shop))
                                throw new PrestaShopException('Shop not found');

+                       if (defined('PRESTASHOP_INTEGRATION_VERSION')) {
+                               $shop = $default_shop;
+                       } else {
                        $params = $_GET;
                        unset($params['id_shop']);
                        if (!Configuration::get('PS_REWRITING_SETTINGS'))
@@ -388,6 +391,7 @@
                        }
                        header('location: '.$url);
                        exit;
+                       }
                }
        }

But you may notice other redirection which should be deactivated also, according to your PrestaShop version.

This bug is caused by PrestaShop trying to figure out which shop is used as it support now the multishop feature. The way it is done is causing the bug, the patch above is mandatory to avoid a redirection being made to the default shop.

I get an error message about autoloader

You may be using a WordPress plugin that use PHP autoloader, but PrestaShop assume it is the only one using PHP autoloader : you need to modify the config/autoload.php file by changing the name of the function (for example : __autoload_prestashop) and to add at the end of the file the following line :

spl_autoload_register('__autoload_prestashop');

If a customer logon in PrestaShop, informations about the user/cart is lost in WordPress

You need to patch PrestaShop cookie management because this problems occurs where PrestaShop is installed in a child directory of WordPress. Please replace the $this->_path in setcookie invocation by simply '/'. This will make the cookie available to WordPress. you may use override functionnality in PrestaShop to simplify PrestaShop update in the future.

If you try to use two distinct domains for the blog and the shop, it will not work and it is not fixable. At least you need to use two subdomains of the same domain for the blog and the shop, and apply the cookie management to the common domain.

This patch is not necessary when WordPress is installed in a child directory of PrestaShop installation, typically named blog.

Requires: 3.3.0 or higher
Compatible up to: 3.6.0
Last Updated: 2013-8-8
Downloads: 11,676

Ratings

4 stars
4.6 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 67,3,2 100,1,1 100,2,2
33,3,1
100,1,1