Skip to content

Boilerplate for writing plugins on top of the Composite Products JS API.

Notifications You must be signed in to change notification settings

somewherewarm/woocommerce-composite-products-js-api-boilerplate

Repository files navigation

=== WooCommerce Composite Products - JS API Boilerplate ===

Contributors: franticpsyx, SomewhereWarm
Tags: woocommerce, composite, products, conditional, components, scenario, action, custom
Requires at least: 3.8
Tested up to: 4.4
Stable tag: 1.0.0
WC requires at least: 2.3
WC tested up to: 2.5
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

WooCommerce Composite Products JS API boilerplate.

== Description ==

To bootstrap a custom script in order to use the Composite Products API, it is recommended to use the 'wc-composite-initializing' jQuery event, which passes a reference to the WC_CP_Composite object instance associated with the displayed Composite product. Once you have obtained a reference to the WC_CP_Composite object instance, you can start interacting with the app. This plugin is a working example that you can use as a boilerplate for writing plugins on top of the Composite Products JS API.

Requires Composite Products v3.6+.

== Installation ==

1. Install the latest versions of WooCommerce and WooCommerce Composite Products.
2. Upload the plugin to the **/wp-content/plugins/** directory.
3. Activate the plugin through the **Plugins** menu in WordPress.

About

Boilerplate for writing plugins on top of the Composite Products JS API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published