Home › Forums › WoodMart support forum › JSon error
JSon error
- This topic has 15 replies, 2 voices, and was last updated 3 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
June 21, 2021 at 1:05 pm #301107
EnrichettoParticipantMy content is Private 🙂
Attachments:
You must be logged in to view attached files.June 21, 2021 at 2:20 pm #301129
Artem TemosKeymasterHello,
Could you please specify which WoodMart version do you have? We recommend you update the theme to the latest version 6.1.
Kind Regards
June 21, 2021 at 5:22 pm #301169
EnrichettoParticipantHello,
i have WoodMart 6.0, but I haven’t received the 6.1 update notification.June 22, 2021 at 6:16 am #301257
Artem TemosKeymasterHi,
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
June 24, 2021 at 9:24 am #302125
EnrichettoParticipantHello!
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?June 24, 2021 at 9:29 am #302129
Artem TemosKeymasterHi,
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
June 24, 2021 at 9:47 am #302138
EnrichettoParticipantOK 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=1it 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.
June 24, 2021 at 9:55 am #302143
Artem TemosKeymasterHi,
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
June 24, 2021 at 9:58 am #302144
EnrichettoParticipantThe filter of the request is: “per_page=20&page=1”
maybe earlier when I “copy-paste” the URL I had lost a piece.
June 24, 2021 at 11:02 am #302165
Artem TemosKeymasterThis request returns a valid JSON response https://gyazo.com/b3bb9620020ee1c6fe8312a9a478527b
What exactly is wrong there?
June 25, 2021 at 11:10 am #302449
EnrichettoParticipantThe 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.June 25, 2021 at 11:12 am #302454
Artem TemosKeymasterHello,
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
June 25, 2021 at 11:19 am #302463
EnrichettoParticipantI can not at the moment. Have you ever had a similar problem that could unintentionally arise from the theme?
June 25, 2021 at 11:20 am #302464
Artem TemosKeymasterWe haven’t got any similar reports yet. Our theme shouldn’t affect the API part at all.
June 25, 2021 at 11:21 am #302466
EnrichettoParticipantOk perfect.
ThanksJune 25, 2021 at 12:11 pm #302490
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
The topic ‘JSon error’ is closed to new replies.
- You must be logged in to create new topics. Login / Register