Support » Plugin: PrestaShop Integration » Error message on shortcode

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author aytechnet

    (@aytechnet)

    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.

    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

    (@aytechnet)

    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.

    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/

    The footer and sidebar are working excellently, I just cnnot get the shortcode to function properly.

    Thanks again

    Bob

    Hi I’ve managed to resolve this now, thank you.

    Plugin Author aytechnet

    (@aytechnet)

    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

    (@aytechnet)

    Ok, what was the resolution so ?

    I had to adjust my CSS to allow it to fit and have simply entered the shortcode as id_product=xxxx

    Also it only picks up products from the category and not any products in sub-categories within the category.

    Plugin Author aytechnet

    (@aytechnet)

    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 ?

    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.