Support » Plugin: imacPrestashop » Not showing products

  • Resolved FadingMusic

    (@fadingmusic)


    Hello,

    I have followed the instructions exactly, but it does not show our Prestashop products.
    We use WordPress 5.2.2 and Prestashop 1.6.1.24.

    Would you please help us find a solution? Thanks in advance!

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

    (@imacreste)

    Hello,

    The truth that I would need to have more information to help you.

    If you want you can write to my email:
    imacreste@gmail.com

    You must indicate the URL of the Prestashop online store and a WordPress blog post where the shortcode and its parameters are inserted.

    regards

    Hi,

    I got the same here.
    The category shortcode works very well but nothing appears with the product shortcode.
    I can’t share urls because they are local but:

    The shortcode inserted on the WP page is:
    [imacprestashop_productos_ws productos=’46’]

    The Prestshop product page is: https://local.dev/shop/zines/46-zine-n-150.html

    Of course, the setting for “URLs de producto:” is: “category/name_product-ID.html” to match the Prestashop conf.

    Help appreciated!

    Regards

    Plugin Author imacreste

    (@imacreste)

    Hi.

    You can attach a photo of the screen of that product where the url can be seen … and another one of the page where you have put the shortcode?

    You can also read more about the plugin in:
    https://imacreste.com/modulo-wordpress-prestashop-gratis/

    Thanks for your quick reply.
    It is really strange that’s nothing showing up with the product shortcode while that of the category works very well!
    I suspect a problem with the category name in the url of the product: category/name_product-ID.html

    Can I put some debug switch somewhere to see what happens?

    Plugin Author imacreste

    (@imacreste)

    In fact, the url of the product does not affect whether the product is shown or not.

    If you want to prove that the webservice shows product information.
    shopurl.com/api/products/46

    will ask you for the webservice key.

    I tried your url and got this error:

    <prestashop><errors><error><code>3</code><message>[PHP Warning #2] count(): Parameter must be an array or an object that implements Countable (/home/local.dev/shop/classes/webservice/WebserviceRequest.php, line 794)</message></error></errors></prestashop>

    Plugin Author imacreste

    (@imacreste)

    you can try yourweb.com/api/products/?display=full

    I got exactly the same error message with: /api/products/?display=full

    Version:
    – Prestashop: 1.6.1.24
    – WP: 5.2.2

    Plugin Author imacreste

    (@imacreste)

    Hi.

    If you think.

    When you have everything mounted on a final server.

    Contact me at imacreste@gmail.com, give me access and do some testing.

    OK?

    Hi,

    Finally, I found the problem.
    It’s linked with the version of PHP (7.2) used, see here:
    https://www.prestashop.com/forums/topic/912956-webservice-count-parameter-must-be-an-array-or-an-object-that-implements-countable/

    So, after modified the Prestashop file, it works!
    – classes/webservice/WebserviceRequest.php – ~line 794

    And good news, nothing wrong with your plugin
    By the way, big thank for your work, it is really helpful 😉

    Regards

    Plugin Author imacreste

    (@imacreste)

    I will follow this matter just in case.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not showing products’ is closed to new replies.