You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Let me know if you've done WooCommerce template files before, or if you'd like some leading on how to do them. If this will take > 2 hours, I'm not sure it's worth adding since the plugin works great without it.
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 likewoocommerce-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.
The text was updated successfully, but these errors were encountered: