alsguimaraes / woocommerce-checkout-integration-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:PHP 77.1%Language:JavaScript 17.2%Language:Shell 5.7%