Coder Social home page Coder Social logo

woocommerce-legacy-rest-api's Introduction

WooCommerce Legacy REST API

The Legacy REST API is no longer part of WooCommerce as of version 9.0. This plugin restores the full functionality of the removed Legacy REST API code in WooCommerce 9.0 and later versions.

For all intents and purposes, having this plugin installed and active in WooCommerce 9.0 and newer versions is equivalent to enabling the Legacy REST API in WooCommerce 8.9 and older versions (via WooCommerce - Settings - Advanced - Legacy API). All the endpoints work the same way, and existing user keys also continue working.

On the other hand, installing this plugin together with WooCommerce 8.9 or an older version is safe: the plugin detects that the Legacy REST API is still part of WooCommerce and doesn't initialize itself as to not interfere with the built-in code.

Please note that the Legacy REST API is not compatible with High-Performance Order Storage: this will cause a "WooCommerce has detected that some of your active plugins are incompatible with currently enabled WooCommerce features" notice in the top of your WordPress admin area once the plugin is activated. Upgrading the code that relies on the Legacy REST API to use the current WooCommerce REST API instead is highly recommended.

woocommerce-legacy-rest-api's People

Contributors

konamiman avatar barryhughes avatar vedanshujain avatar naman03malhotra avatar

Stargazers

NVD avatar  avatar souvik dutta avatar Wesley Rosa avatar MAD CITY MULTIMEDIA avatar Rudi de Groot avatar Alex Cavender avatar Luke Cavanagh avatar

Watchers

Tomek Wytrębowicz avatar Neil Roberts avatar Damián Suárez avatar Veselin Nikolov avatar Andrew dela Serna avatar Peter Kiss avatar Lionel avatar Hafiz Rahman avatar Dave Lockie avatar Dmitry Merkushin avatar Tautvidas Sipavičius avatar Valery Sukhomlinov avatar James Rodger avatar Niall Madhoo avatar Sam Najian avatar Griffith Chen avatar James Cloos avatar Matty Cohen avatar Stuart Duff avatar Fernando Marichal avatar Anirudh Bhat avatar Michael avatar Del Putnam avatar Thilina Pituwala avatar Miroslav Mitev avatar Raluca Stan avatar Prahesa Kusuma Setia avatar Alefe Souza avatar James Kemp avatar César Vargas Casaseca avatar Peter Fabian avatar Derrick Koo avatar Chrissie Pollock avatar Aurelien Leftick avatar Cesar Tardaguila avatar Denis Dvali avatar Vasily Belolapotkov avatar Pedro Pinto avatar Ilyas Foo avatar Jacklyn Biggin avatar Chi-Hsuan Huang avatar rodelgc avatar Samuel Urbanowicz avatar Moon avatar David Galbraith avatar Elizabeth Pizzuti avatar Tsetan Dolkar avatar Jeff Sandquist avatar Gareth avatar  avatar leonardo lopes de albuquerque avatar Adrian avatar Menaka S. avatar William Staley avatar Imran Hossain avatar Geektzu avatar Vlad Olaru avatar Nathan Bloomfield avatar Zach Wiesman avatar abwaita avatar Kingsley Unuigbe avatar Kel avatar Maikel Perez avatar Ann avatar Yaku avatar Zvonimir Maglica avatar Eduardo Umpierre avatar Eddie Carrasco avatar Paulo Arromba avatar Bartosz Budzanowski avatar Alejandro Torres Veiga avatar Scotty Simpson avatar  avatar Hsing-yu Flowers avatar MAD CITY MULTIMEDIA avatar  avatar ExamRoutes avatar

woocommerce-legacy-rest-api's Issues

impossible to make a password product

sorry for my english
i had install WooCommerce Legacy REST API yesteday, woo commerce pass in 8.6
since this time, impossible for somes products to be taken, the selling button doesn't appear and password case too
My clients can not buy my products

Am I alone or the problem is already knowing .

Thank you and sorry again for my bad english

problem activation ?

while activating the legacy API plugin, it seems to try to activate old deleted plugins ???

image image

legacy_rest_api_usages log not recording entries

When using WooCommerce 8.8.3 with the Legacy REST API plugin v1.0.4 activated and the legacy REST API feature enabled, the WooCommerce legacy_rest_api_usages log does not record entries. This is happening even though the legacy REST API is receiving requests and functioning correctly.

If I disable the legacy REST API plugin and keep the legacy REST API feature enabled, the legacy_rest_api_usages log records entries as expected.

It seems that the legacy REST API plugin breaks the logging of legacy_rest_api_usages.

1.0.2 version cause problems: hpos_is_enabled cannot be called statically

I have latest Woocommerce (8.9.0) and Legacy Rest API (1.0.2). Php version is 8.2.

I got this problem

[15-May-2024 08:50:19 UTC] PHP Fatal error:  Uncaught Error: Non-static method WC_Legacy_REST_API_Plugin::hpos_is_enabled() cannot be called statically in /var/www/web/app/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php:77
Stack trace:
#0 /var/www/web/app/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php(28): WC_Legacy_REST_API_Plugin::maybe_add_hpos_incompatibility_admin_notice()
#1 /var/www/html/wp/wp-includes/class-wp-hook.php(324): WC_Legacy_REST_API_Plugin::on_woocommerce_init()
#2 /var/www/html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /var/www/html/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /var/www/web/app/plugins/woocommerce/includes/class-woocommerce.php(781): do_action()
#5 /var/www/html/wp/wp-includes/class-wp-hook.php(324): WooCommerce->init()
#6 /var/www/html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /var/www/html/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /var/www/html/wp/wp-settings.php(695): do_action()
#9 /var/www/html/wp-config.php(9): require_once('...')
#10 /var/www/html/wp/wp-load.php(55): require_once('...')
#11 /var/www/html/wp/wp-admin/admin.php(34): require_once('...')
#12 /var/www/html/wp/wp-admin/plugins.php(10): require_once('...')
#13 {main}
  thrown in /var/www/web/app/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php on line 77

I downgrade plugin and everything work properly

Security issues detected on my sites

Hi,
I received an email today with the content: "Security issues detected on your site. We found outdated and/or compromised components in the following websites. Plugin: WooCommerce Legacy REST API." Please help me, what should I do?

Screenshot 2024-03-21 182006

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.