Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

Get Product Data Using Woocommerce API Returns Duplicates - Node Js

I am trying to fetch product data from my website using woocommerce-api library in node js. I've tested that code is working as expected with other websites. However in my case I get a lot of product ...
newbie's user avatar
  • 43
0 votes
0 answers
48 views

What else do I need to do to have my custom WooCommerce Analytics filter applied to exports?

I'm working with WooCommerce Analytics, and have successfully added a dropdown to the orders and reports screens. The dropdown allows me to select whether or not to include subscription related orders ...
Brian Gottier's user avatar
0 votes
0 answers
65 views

Woocommerce REST API: enable basic auth through HTTP for local development

I'm running a Wordpress instance (Docker) in my local Dev machine and I would like to perform HTTP requests to the Woocommerce API like in the production server (that runs on HTTPS). If I just create ...
La Vora Dev's user avatar
1 vote
1 answer
80 views

How to send large amount of products via WooCommerce Rest API

I am developing a plugin for WordPress. I am receiving products from a third-party API, but when I send requests to the WooCommerce REST API, I get an internal server error or a WooCommerce HTTP ...
user26990105's user avatar
-1 votes
0 answers
18 views

Fetch Digital Products On WooCommerce Store Using Supplier API

I am beginner WordPress Developer. I need experts help. I am currently working on WooCommerce Store where my client wants to automate its store by fetching and showing digital products on their store ...
Haseeb Yaseen's user avatar
0 votes
0 answers
20 views

How to Retrieve Subscription Details for Orders Using WooCommerce PHP REST API?

I'm in the process of importing orders from a WooCommerce store that includes subscription products. I need assistance with retrieving subscription details for a the orders via the WooCommerce PHP ...
Jenz's user avatar
  • 1
0 votes
0 answers
18 views

Woocommerce GraphQL and Rest API with next js takes too long to Update

I am using woocommerce graph ql to query products on my Next JS frontend. The issue is that sometimes when I update a product on the wordpress dashboard, it takes time to update on the frontend (...
Simon Cyril's user avatar
0 votes
0 answers
41 views

Update product attributes via REST API woocommerce

I am trying to import product attributes that I have stored in an external database into woocommerce. I relate the product by sku and obtain the woocommerce product id. I try to first see if the ...
GIGAFIX  GO's user avatar
1 vote
0 answers
32 views

How to get order id from customer billing email with a Python script - WooCommerce API

I would like to create a Python script that returns the orders of a customer, knowing only his billing email. I tried doing this but returns all recent orders: from woocommerce import API wcapi = API(...
CuloAtomico's user avatar
0 votes
0 answers
28 views

getting empty list while trying to get reviews from woo rest Api

I am trying to use https://<url>/wp-json/wc/v3/products/reviews to get all reviews in Postman which must work fine based on the document but I get an empty list . I am using basic Auth and note ...
nima's user avatar
  • 3
0 votes
0 answers
23 views

can not use woocommerce rest api

I'm using a true consumer key and consumer secret but when I send a request, I face this error with 403 status code: You don't have permission to access this resource my python code is: consumer_key = ...
farshadarbab's user avatar
0 votes
0 answers
13 views

Can't get open data with Woocommerce REST API

Trying to fetch categories, products and even orders by customer role user for which i generated keys and gave read/write access. always get {"code":"woocommerce_rest_cannot_view",&...
art_hq's user avatar
  • 111
0 votes
0 answers
45 views

How to retrieve and empty customer cart in WooCommerce after payment?

hello I made a plugin which follows that scenario : 1-client send data to payment gateway 2- gateway responses with url 3- client get redirected to that url 4- after payment server sends req with ...
muhammed Amr's user avatar
0 votes
1 answer
29 views

What if user closes his browser before woocommerce_payment_complete action is performed?

I created an action that is performed after the user's payment is complete and it's working fine. But in a situation where my client exits his browser right after payment this action will not be ...
themilkyone's user avatar
0 votes
0 answers
29 views

WooCommerce Subscriptions REST API - update trial end date

I'm using woocommerce subscriptions in alignment to my ReactJS app to handle my subscriptions. I have a trial period for users, which is limited in functionalities. I would like users to be able to ...
Gijs van der Weijden's user avatar
0 votes
1 answer
104 views

PHP Fatal error: Uncaught Error: Class "WC_Legacy_API" not found

Wordpress error after upgrading woocommerce plugin version to 9.0.0, see error details below PHP Fatal error: Uncaught Error: Class "WC_Legacy_API" not found in /home/dettrart/public_html/...
Sodmond's user avatar
  • 261
0 votes
1 answer
65 views

Change Order Number when Imported via WooCommerce Rest API

I am currently importing orders from a marketplace to WooCommerce using the WooCommerce Rest API v3. The Marketplace Order ID is added in the Customer Note Field in the WooCommerce order upon import. ...
LuxmedIQ Deutschland's user avatar
0 votes
0 answers
34 views

Woocommerce Rest Api get product by barcode custom meta field

I am using woocommerce rest api to get all the product data by making a query by sku. I want to do the same with the user field '_barcode'. For a quick query, this works for me $data=['sku'=>$sku]; ...
Emil Petrow's user avatar
1 vote
0 answers
56 views

How to correctly include and use WooCommerce Block Store API Schemas to modify "All reviews" block rest api to filter by author

I'm developing a custom WooCommerce plugin that needs to extend the WooCommerce Store API. Specifically, I want to filter product reviews by the current author when viewing the author page. This is ...
DFakdkmnadDlakdkd's user avatar
0 votes
0 answers
38 views

How do I record a discount and a coupon for API orders on the WP Admin backend

So I realized that when using WooCommerce REST API to create orders, the discount_total parameter shows the discount amount (which is probably calculated by subtracting the line_items['total'] value ...
Anthony Sackey's user avatar
0 votes
0 answers
73 views

Woocommerce update via REST API issue

I use rest API to manage the store. It connects correctly, I can add new products. Unfortunately, there is a problem with product updates, such that other plugins do not see the changes. Only by ...
Chili Palmer's user avatar
0 votes
0 answers
71 views

How to cache an apiFetch method for a Gutenberg block?

I store WooCommerce product IDs in a custom block: <!-- wp:custom/block {"woo_products":[123,456]} /--> I need to call the /wc/v3/products endpoint to retrieve the data from this ...
Xaver's user avatar
  • 11.5k
0 votes
0 answers
27 views

Taxes are not being applied on line items when created from rest api

I am posting following data on rest api url "https://example.com/wp-json/wc/v3/orders" { "payment_method": "cod", "payment_method_title": "Cash on ...
Md Nazrul Islam's user avatar
1 vote
0 answers
32 views

How to connect woocommerce with React using Auth1.0?

I am trying to integrate my e-commerce platform into my React application. But I am not able to connect. I am always getting errors. This time CORS error is coming. I am not able to understand how to ...
Robin Singh's user avatar
  • 1,754
0 votes
1 answer
191 views

How to add a line item to an existing Woocommerce order via REST API?

I am looking to add a line item to an order. I am POSTing to this endpoint: /wp-json/wc/v3/orders/7691 with some pretty basic json: { "name": "Product Name", "...
Nick MacKay's user avatar
0 votes
1 answer
102 views

How to reload page after product removal from Cart - Woocommerce

I have this code snippet: add_action( 'template_redirect', 'empty_cart_redirection' ); function empty_cart_redirection(){ if(is_cart() && WC()->cart->get_cart_contents_count() == 0 ) ...
TI Moonwalk's user avatar
0 votes
0 answers
67 views

wp-json/wc/v3/products keeps returning invalid image id?

When i do a put request using the WP API to the following endpoint i get an error (but only sometimes) and i can't figure out what the issue is. Could it be a race-condition, caching issue (we're ...
Lukas Mittun Alexander Guldstv's user avatar
0 votes
0 answers
27 views

Issue with PUT method not finding the product to update

So I want to update products using REST API PUT method in my woocommerce and it doesn't work even if the keys are correct. That said, when I use the GET method(I used Postman to test), it can find the ...
Gabiru's user avatar
  • 21
0 votes
1 answer
35 views

API Data is being passed but not being rendered

I am using nextjs and woocommerce rest api to build a ecommerce site. But I have been facing issues with rendering products/data from woocommerce to nextjs frontend. I have setup the endpoint for ...
arimtiaz's user avatar
0 votes
0 answers
62 views

How to filter Product categories by ACF field via WooCommerce REST API

I use WordPress, with WooCommerce and ACF. For the category, I created a property show_on_main_page (type true/false). Now I want to get all categories that have show_on_main_page = true I think the ...
ffsdfdfadf's user avatar
0 votes
0 answers
60 views

WooCommerce REST API with Python to create product with variation issue

I used WooCommerce REST API documentation with python, to create product. I am facing 2 problems with the results, and I searched all stack overflow and stack exchange, but I am not yet able to solve ...
mahdi darvishiyan's user avatar
0 votes
0 answers
16 views

unable to populate custom attribute value in woo commerce product using v3 batch update api

https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products I am trying to use below JSON request to create the product in woo commerce the product is getting created successfully ...
Nikunj Jain's user avatar
0 votes
0 answers
39 views

WooCommerce Rest API. Add review without auth

I am trying to create a product review using woocommerce REST API /wp-json/wc/v3/products/reviews. Unfortunately only authorized user with higher role can leave review. Normally anyone can leave a ...
Daniel's user avatar
  • 139
1 vote
2 answers
53 views

Extend function execution on product update via a Cron Job or REST_API

Is it possible to execute this php function when product is updated via Cron Job or REST_API? Cron JOB is updating _stock2 meta field, and rest_api is updating basic stock quantity of woocommerce ...
Eryk Paśnik's user avatar
0 votes
0 answers
77 views

how to PUT in Postman to change Woocommerce REST API meta_data

I am trying to change a key-value pair in woocommerce using put in postman, but just cannot get ANY data to change. I know it works from our ERP system, where I just put the key and value and it does ...
TheRealPir's user avatar
-1 votes
1 answer
226 views

Import product categories parent / child relation in another way than ID in WooCommerce Rest API

I'm loading a quite extensive feed through the rest API. The importation runs well, but I only have one problem. The supplier defines the relation between parent and child by id provided in the feed. ...
Izzie's user avatar
  • 1
0 votes
0 answers
175 views

Woocommerce API v3 Images uploading issue

I am using WooCommerce API v3 to upload product with a list of images. Images are uploaded and attached to the product successfully, it is shown in media library but not in product gallery. Please ...
Don Dun's user avatar
0 votes
1 answer
137 views

Duplicate Orders Issue When Syncing WooCommerce Sites through REST API

I have been wrestling with a duplication problem with regard to syncing orders between a source and destination site via WooCommerce orders rest API endpoint: /wp-json/wc/v3/orders I have come up ...
Vanda Nojan - وندا نوژن's user avatar
0 votes
0 answers
46 views

500 Internal Server Error in WooCommerce gateway: Undefined variable: Transaction_ID

I got 500 Internal Server Error after payment is successful or failed. This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact ...
saied heisenberg's user avatar
0 votes
0 answers
33 views

wordpress woocommerce action hook working on woocommerce android app but action hook not working on woocommerce admin wp-admin login

I am currently working on a WordPress/WooCommerce project where I have implemented a custom function to be triggered when an order's status changes to "completed." The code is set up as ...
Christopher Seenath VENKAT SOL's user avatar
0 votes
0 answers
299 views

Woocommerce Orders API returning "woocommerce_rest_shop_order_exists"

I can't figure out how to get SITE B to accept the order from SITE A I essentially need SITE A to be a proxy of SITE B, sending all orders processed to site Bs orders API using my current code, I get ...
Lito Bezos's user avatar
0 votes
1 answer
149 views

Woocommerce products/batch update has no response []

I am missing something. For days I have been working on a python script to update products in woocommerce, but it fails to update and has no error or response. I have the REST API Log plugin to check ...
gygoole's user avatar
  • 21
1 vote
2 answers
110 views

How can I create woocommerce coupon with an expiration date using the rest api?

I'm trying to create a coupon via the woocommerce rest api: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-coupon I can create coupons fine, but it seems the expiration date is ...
sommmen's user avatar
  • 7,449
0 votes
0 answers
42 views

Add redirect link to Woocommerce deleted product by Python API

I use Python Woocommerce library for managing a testing Wordpress shop. After creating codes for adding new products with multithreading and storing ID, SKU, categories and attributes, Image ID and... ...
Qeyzho's user avatar
  • 104
0 votes
0 answers
88 views

Woocommerce Rest API data returns string format

I have an issue with the WooCommerce Rest API, just to clarify, I've worked with the API multiple times on many sites, but I've never encountered this "error". My issue is that the response ...
Patrixxk's user avatar
0 votes
0 answers
28 views

Why is Woocommerce restrict coupon by email_restrictions not working?

I have updated my current coupon to these values "amount": "12", "individual_use": true, "exclude_sale_items": false, "minimum_amount": "...
NivedCV's user avatar
  • 23
0 votes
0 answers
32 views

Understanding the logic behind WooCommerce templating system

I'm trying to dive a little deeper into wordpress and specifically into Woocommerce. At the moment my goal is to create custom filters for product archive. I managed to install via composer the ...
thanos-pakou's user avatar
0 votes
0 answers
24 views

I got "per_page is not of type integer" when I use the per_page parameter (to get product category list)

According to the official documentation : https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-product-categories I should use per_page parameter to change the number of product category ...
Jean François Manatane's user avatar
0 votes
0 answers
147 views

Get products that contain 2 specific tag terms via WooCommerce REST API

I am trying to find a way to use the WooCommerce REST API to get products that contain two tags, I am having no luck while googling. I hope that someone can provide me some insights. I have a query ...
TicToc10101's user avatar
0 votes
0 answers
78 views

WooCommerce API Challenges: ’empty_data’ Error IssuesinPython, Tested in Pure Python

Why does WooCommerce occasionally display the error {‘code’: ’empty_data’, ‘message’: ‘Not enough data to create this user.’, ‘data’: {‘status’: 400}} when posting customer details through Python to ...
Developer Jack's user avatar

1
2 3 4 5
20