Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.2 KB

README.md

File metadata and controls

31 lines (16 loc) · 1.2 KB

WooCommerce Availability Chart

Description

This plugin will provide an "Availability Chart" on the product page. The chart will be a graphic representation of how many items are left in stock for the variation.

Admin changes

On the Edit Product page when the product type is set to Variable add an option on the General tab for "Availability Chart"

Location of option: option

When the option is enabled the availability chart will be displayed on the product page.

Frontend changes

On the product page, the availability chart will show below the main content. You can use the action do_action( 'woocommerce_after_main_content' ) to add the template.

Please put the HTML for the availability chart into its own template inside of this plugin. You can use something like this (http://www.maxdesign.com.au/articles/percentage/) to style the bars, or use any other technique you want.

Example of availability chart availability chart