Skip to content

Template file for the Availability Chart #4

@growdev

Description

@growdev

In the Project Description:Frontend Changes I mentioned:

Please put the HTML for the availability chart into its own template inside of this plugin.

The Woocommerce_Availability_Chart::wac_availability_chart() method could be changed to pull in a file like woocommerce-availability-chart/templates/single-product/availability-chart.php.

Then you can call Woocommerce_Availabilty_Chart::wac_get_availability_bar() from the template file if it were a static function, or just move the entire function loop to the template file.

Having this inside of a template will give users the ability to override the template in their themes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions