Skip to content

An example to help you integrate an existing legacy WooCommerce plugin with the new, block-based checkout.

Notifications You must be signed in to change notification settings

alsguimaraes/woocommerce-checkout-integration-example

 
 

Repository files navigation

WooCommerce Checkout Integration Example 1

An example that shows you how to conditionally hide shipping and payment options in the Cart and Checkout blocks.

The new Cart and Checkout blocks are part of the WooCommerce Blocks plugin, and were built from the ground up to deliver a conversion-optimized checkout experience that is fully customizable in the WordPress Block Editor.

The code in this repository is explained in this guide. Studying this example will help you get a better understanding of how to:

  • Expose custom data in the responses of existing Store API routes.
  • Prepare your plugin to build modern JavaScript (ES6/React) code.
  • Register and enqueue your front-end script, and make options and settings available to it. And finally:
  • Hide shipping and payment options in the Checkout block.

Need help? Our engineers are available for technical guidance in the WooCommerce Blocks repository! Feel free to open an issue there to ask for assistance, or share your findings and feedback.

About

An example to help you integrate an existing legacy WooCommerce plugin with the new, block-based checkout.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 77.1%
  • JavaScript 17.2%
  • Shell 5.7%