Title: Error message on shortcode
Last modified: August 20, 2016

---

# Error message on shortcode

 *  Resolved [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/)
 * I have a prestashop and would like to incorporate a wordpress blog.
 * I do not know how to write wordpress or prestashop theme code, so I am just using
   a plain wp theme. But when I try to use the shortcode [ps_product_list id_category
   =X n=C p=P tpl=TPL]I get errors if I change either the values for C or P. If 
   I do no change the values I get no response at all.
 * The error can be seen here
 * [http://www.framptoncards.com/shop/blog/uncategorized/hello-world/](http://www.framptoncards.com/shop/blog/uncategorized/hello-world/)
 * I am operating on Prestashop 1.5.3.1
 * [http://wordpress.org/extend/plugins/prestashop-integration/](http://wordpress.org/extend/plugins/prestashop-integration/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509820)
 * Hi,
 * Uppercase variable should be given a value in fact : try with [ps_product_list
   id_category=2] to see what happens, the value n, p and tpl allows you to use 
   a different values instead of the (good) default one. It seems you made a copy
   of all the possible parameters :
    Fatal error: Uncaught exception ‘SmartyException’
   with message ‘Unable to load template file ‘/…/themes/theme481/TPL”
 * François.
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509830)
 * The link which I gave above has the following post entry
 * > Welcome to WordPress. This is your first post. Edit or delete it, then start
   > blogging!
   > [ps_product_list id_category=4]
   > [ps_product_list id_category=11 n=2 p=P tpl=TPL]
   > test end
 * nb: 4 and 11 are valid numbers for my prestashop categories
 * Thanks
    Bob
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509924)
 * to be more precise : tpl=TPL is invalid unless you create a “TPL” file in your
   PrestaShop theme or remove tpl=TPL ! The same apply with p=P, please remove it
   if you wish it to work.
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509929)
 * Thanks again Francois, but when I post the following
 * **Welcome to WordPress. This is your first post. Edit or delete it, then start
   blogging!**
 * [ps_product_list id_category=4 n=2 p=1]
 * test end
 * This is what I get (no products)
 * [http://www.framptoncards.com/shop/blog/](http://www.framptoncards.com/shop/blog/)
 * The footer and sidebar are working excellently, I just cnnot get the shortcode
   to function properly.
 * Thanks again
 * Bob
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509946)
 * Hi I’ve managed to resolve this now, thank you.
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509947)
 * Have you put products in category 4 ?
    Have you played with customers groups ?
   Can you test with id_category=24 and checks if it working (a sub-category) ?
 * I assume as you expect output that each product in sub-categories of id_category
   =4 are present in id_category=4 too ? (I wonder if you have a module/patch/theme
   that fetch automatically products from sub-categories ?)
 * François.
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509948)
 * Ok, what was the resolution so ?
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509951)
 * I had to adjust my CSS to allow it to fit and have simply entered the shortcode
   as id_product=xxxx
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509952)
 * Also it only picks up products from the category and not any products in sub-
   categories within the category.
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509953)
 * Yes, it picks up only products from the category and not the subcategories… Is
   it a normal behaviour of PrestaShop now or do you have a patch/module/theme for
   that ?
 *  Thread Starter [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * (@bob-wagstaff)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509954)
 * I think it might be normal behaviour within Prestashop

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error message on shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/prestashop-integration.svg)
 * [PrestaShop Integration](https://wordpress.org/plugins/prestashop-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prestashop-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prestashop-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/prestashop-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prestashop-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prestashop-integration/reviews/)

## Tags

 * [prestashop](https://wordpress.org/support/topic-tag/prestashop/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 11 replies
 * 2 participants
 * Last reply from: [Bob Wagstaff](https://wordpress.org/support/users/bob-wagstaff/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-on-shortcode/#post-3509954)
 * Status: resolved