WordPress Product Display for Prestashop
A WordPress plugin that allows you to easily display products from your Prestashop store on your WordPress blog.Donate: This is free software. Show your appreciation by supporting my efforts.
Relevance: Prestashop, with WordPress
Current Version: 1.0
Support Thread: Prestashop Product Display Support Thread
Cost: Free, but donation appreciated
Installation Difficulty: Easy
Installation Instructions: click here
Download: Product Display for Prestashop on WordPress Plugins Site
FAQ: click here
Overview:
If you want to try a show off products from your Prestashop store in your WordPress blog, this mod can help. It allows you to use a Shortcode like this:[ps_product_display id="some-product_id"]and have that appear as an image like the one at the top right of this page.
Installation Instructions:
Note: This is a two-part install; you have make configuration changes on your Prestashop admin, and install files on your WordPress site.Install the WordPress part of this mod as usual (using the Install button on the mod page on WordPress.org). The follow these steps:
- Back up everything! Try this in a test environment prior to installing it on a live shop.
-
In your Prestashop store, do the following:
- Get the API file as described in here. Put the file
PSWebServiceLibrary.php
at the root of your store. - In your Prestashop back office, enable the webservice and create an access key as described in the documentation. The key description should be "blog", and the permissions should permit View (GET) on resource products.
- Get the API file as described in here. Put the file
- In your WordPress admin, do the following:
- In Plugins > Installed Plugins, click the "Activate" link under Product Display for Prestashop.
- In Settings > Product Display for Prestashop, set your Prestashop URL, Private app API key and Private app Password.
- In Plugins > Installed Plugins, click the "Activate" link under Product Display for Prestashop.
[ps_product_display]
with parameter "id"
. So showing the product with id "24" would
be done as follows:
[ps_product_display id="24"](The tag is self-closing.)
The id is shown in the URL when you edit a product in your admin.
Just use this Shortcode when you create a new blog post. You can put it anywhere in your post where you want the image and information to appear. Then just press "Preview" (or "Publish") to see the Shortcode expand to the full block, as shown at the top right of this page.
To avoid excessive API queries, you should set your WordPress installation up to cache previously built pages. A number of WordPress caching solutions exist; searching for "cache" in the WordPress plugins directory will help you find the best solution for your needs.
Major Versions
- 1.0 08/01/2017 - First Release
FAQ
Q: I use a currency other than dollars - how do I change the price display?A: Modify
product_display_for_prestashop.php
and change the function ps_product_display_price.