Questions tagged [woocommerce-rest-api]

WooCommerce REST API is fully integrated with the WordPress REST API since WC version 2.6+, allows WC data to be created, read, updated, and deleted using requests in JSON format and using **WordPress REST API** Authentication methods and standard HTTP verbs…

WooCommerce (WC) 2.6+ is fully integrated with the WordPress REST API. This allows WC data to be created, read, updated, and deleted using requests in JSON format and using WordPress REST API Authentication methods and standard HTTP verbs which are understood by most HTTP clients.

Requirements: It’s required turn on the WordPress permalinks on Settings > Permalinks.

WooCommerce REST API Documentation

WooCommerce REST API

Prior to 2.6, WooCommerce had it’s own REST API separate from WordPress which is now known as the legacy API. You can find the documentation for the legacy API separately.

The default response format is . Requests with a message-body use plain to set or update resource attributes. Successful requests will return a 200 OK HTTP status...

957 questions
0
votes
2 answers

problum to get woocommerce product by category in REST API

hello i am using REST API of woocommerce REST API , i want to get product by category . when i pass this url i got all product . …
0
votes
0 answers

Woocommerce REST API conditional JSON

I'm using Woocommerce REST API V3 and I want to get a custom JSON callback that is based on a specific element's meta_data (has badge / doesn't have). If the element has id:14425 - return 1 (it has a badge). If the element has id:Select badge -…
0
votes
2 answers

woocommerce api intergrate in wordpress

I have to implement in wordpress api in woocommerce. I refer this site setby setup bt i am not clear how to implement https://woothemes.github.io/woocommerce-rest-api-docs/v2.html#version My folder structure is…
0
votes
1 answer

WooCommerce Rest API - Product category filter not working

I have created an app which is displaying some products using the WooCommerce Rest API. I have applied a few filters and everything was looking good until I tried to apply a filter for the…
0
votes
1 answer

Create new product with woocommerce REST API with javascript (clientside)?

I try to create a new product in Woocommerce with its API in javascript…
Suisse
  • 3,467
  • 5
  • 36
  • 59
-1
votes
0 answers

WP REST API to register user and verify using email

Are there any plugins or GitHub repositories that provide a REST API for user registration with a 'customer' role, along with email verification functionality, where users receive a verification link via email for account activation?
-1
votes
1 answer

PUT Request in C# WebForms to update one parameter

I'm working on a web app that will manage WooCommerce orders, over WooCommerce REST API. I'm trying to update the order status after the user clicks a button. When I run the app, click the button, I get a 200 - OK status, but the order remains the…
epaezr
  • 454
  • 2
  • 6
  • 15
-1
votes
1 answer

Increase price of all products after every sale (WOOCOMMERCE)

I would like to increase the price by $20 of all products after every new sell in woocommerce Exemple: Starting prices $50 First order : all products prices become $70 Second order : all products prices become $90 Third : all products prices become…
-1
votes
1 answer

Flutter WooCommerce Customer registeration failed using Dio and jwt?

I am buidling flutter woocommerce store app for customers. I want to create/register a new customer using Dio() and I am using WordPress Plugin JWT Authentication for WP REST API for authentication. Here if i want to access URL for Customers Its…
-1
votes
1 answer

How to add bulk products by WP WooCommerce API

I tried to add multiple product at once using WooCommerce API but I can't. Can any one help me. I successfully added single product but I can't add multiple. (When we go with single product method for huge volume, it's take long time. that's why) I…
-1
votes
1 answer

Wordpress (WooCommerce) cross-origin issue for create customers

i am testing from frontend post data to backend wordpress (woocommerce) to create customers account. i tested with postman and it works awesome but if i post data from frontend to backend i have a cross-origin issue. i know cross-origin issue is 2…
user8566930
  • 103
  • 1
  • 16
-1
votes
1 answer

Woocommerce API endpoint for custom taxonomy

I created a custom taxonomy through the code below: add_action('init', 'vendor_taxonomy', 0); function vendor_taxonomy(){ $labels = array( 'name' => 'Vendors', 'singular_name' => 'Vendor', …
-1
votes
1 answer

Woocommerce REST API only user access their data

I need to make a mobile application for a Wordpress based e-commerce site. I'm researched the WordPress and Woocommerce REST api. What I want to do is briefly; To authenticate with username and password via REST API. if the verification is…
-1
votes
2 answers

WooCommerce 5.4.1 - Formatting price visually $product->get_price()

I need visually remove the decimal place (00) from the price and maintain only the comma or point after the first integer. E.g: $ 10, E.g: $ 7, This is the code: $retorno .= "
-1
votes
1 answer

How to Change text echoed in div of protected function woocommerce

i want to change or remove change all lines in blankstate message which is echoed in below code. Protected function render_blank_state() { echo '
'; echo '