Home Forums WoodMart support forum JSon error

JSon error

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #301107

    Enrichetto
    Participant

    My content is Private 🙂

    Attachments:
    You must be logged in to view attached files.
    #301129

    Artem Temos
    Keymaster

    Hello,

    Could you please specify which WoodMart version do you have? We recommend you update the theme to the latest version 6.1.

    Kind Regards

    #301169

    Enrichetto
    Participant

    Hello,
    i have WoodMart 6.0, but I haven’t received the 6.1 update notification.

    #301257

    Artem Temos
    Keymaster

    Hi,

    Try to go to Dashboard -> Updates and click on “Check again” button. Then you should be able to update the theme if you have activated it with the purchase code.

    Kind Regards

    #302125

    Enrichetto
    Participant

    Hello!
    I was able to update the theme to version 6.1.0.
    But the problem is not solved.
    I clarify that the site has the mother theme installed but it works with the child theme as “Current theme”.
    Do you think you know where the problem may be coming from?

    #302129

    Artem Temos
    Keymaster

    Hi,

    We have tried to visit the API URL you provided but got the following message https://gyazo.com/104896bc8d7079b30dfd85127817e651
    Could you please clarify how exactly we can reproduce the problem?

    Kind Regards

    #302138

    Enrichetto
    Participant

    OK well.

    I’ll explain everything to you in the best possible way.
    The site where I installed the Theme is an e-commerce that manages products with WooCommerce.
    Theme + WooCommerce + WordPress are all updated to the latest version.
    WooCommerce function synchronized with management software which is linked to the WooCommerce API and has always been fine.
    The owner of the management system contacted me to signal to me the REST / API error that I wrote to you at the beginning of the ticket.
    Me too, if I connect to the REST / API URL I see the same error as you.
    Now I am writing you his precise message:


    This is the rest / api call to have the list of all products (divided by page and number of products per page) which is recalled recursively to check all the products on the site with the management software settings: https://zingaroweb.com/wp-json/wc/v3/products?consumer_key=ck_d40482e81ddfe8c8f7bf9a3a76aac11027105762&consumer_secret=cs_791c41add3f8f2eb2bf72231b0cea6efd6fe2d74&per_page=20&page=1

    it seems to me that I issue a json with all the products (as if it was not taking the two filters that I marked you in bold).”

    I thought I could solve the problem by setting pagination in the product list (because before there was infinite scroll) but we have not solved it.

    #302143

    Artem Temos
    Keymaster

    Hi,

    The request you sent doesn’t have any filters and we don’t see any problems with that. Have you tested how it works with the default WordPress theme? Could you please specify exactly what is different in this response between WoodMart and the default WordPress theme?

    Kind Regards

    #302144

    Enrichetto
    Participant

    The filter of the request is: “per_page=20&page=1”

    https://zingaroweb.com/wp-json/wc/v3/products?consumer_key=ck_d40482e81ddfe8c8f7bf9a3a76aac11027105762&consumer_secret=cs_791c41add3f8f2eb2bf72231b0cea6efd6fe2d74&per_page=20&page=1

    maybe earlier when I “copy-paste” the URL I had lost a piece.

    #302165

    Artem Temos
    Keymaster

    This request returns a valid JSON response https://gyazo.com/b3bb9620020ee1c6fe8312a9a478527b

    What exactly is wrong there?

    #302449

    Enrichetto
    Participant

    The owner of the management software connected to the WooCommerce API says that when it launches the REST / API call the specific product filter does not work. I am attaching the photo of the part of the filter that does not work. It does not work because it returns all products and not the specific selection indicated in the filter “per_page = 20 & page = 1”

    Attachments:
    You must be logged in to view attached files.
    #302454

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Regards

    #302463

    Enrichetto
    Participant

    I can not at the moment. Have you ever had a similar problem that could unintentionally arise from the theme?

    #302464

    Artem Temos
    Keymaster

    We haven’t got any similar reports yet. Our theme shouldn’t affect the API part at all.

    #302466

    Enrichetto
    Participant

    Ok perfect.
    Thanks

    #302490

    Artem Temos
    Keymaster

    You are welcome!

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘JSon error’ is closed to new replies.