WordPress.org

Ready to get started?Download WordPress

Forums

PrestaShop Integration
[resolved] Error message on shortcode (12 posts)

  1. Bob Wagstaff
    Member
    Posted 1 year ago #

    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/

    I am operating on Prestashop 1.5.3.1

    http://wordpress.org/extend/plugins/prestashop-integration/

  2. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Bob Wagstaff
    Member
    Posted 1 year ago #

    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

  4. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Bob Wagstaff
    Member
    Posted 1 year ago #

    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

  6. Bob Wagstaff
    Member
    Posted 1 year ago #

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

  7. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, what was the resolution so ?

  9. Bob Wagstaff
    Member
    Posted 1 year ago #

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

  10. Bob Wagstaff
    Member
    Posted 1 year ago #

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

  11. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    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 ?

  12. Bob Wagstaff
    Member
    Posted 1 year ago #

    I think it might be normal behaviour within Prestashop

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic