WPSlash

Add WooCommerce Product Bundles Compatibility to WooFood

Tuesday October 6, 2020

If you want to make compatible WooCommerce Product Bundles with WooFood, you will have to use the following code snippet

You can copy it inside your functions.php on your child theme and you will enqueue the required javascript and stylesheet from Products bundles to the footer page

function wpslash_woofood_qv_pb_compatibility()
{
	WC_PB()->display->frontend_scripts();

			wp_enqueue_script( 'wc-add-to-cart-bundle' );
			wp_enqueue_style( 'wc-bundle-css' );
}
add_action("wp_footer",  "wpslash_woofood_qv_pb_compatibility");

Leave a Comment

Your email address will not be published. Required fields are marked *

×

🔥 ONE DAY ONLY OFFER 🔥

Upgrade FoodMaster Today

Normally your license is limited to 1 Website.

Today only, get a LIFETIME Unlimited Websites License for just:
$499

✔ Unlimited Client Websites
✔ Unlimited Personal Projects
✔ Future Updates Included
✔ Save Hundreds on Additional Licenses

Offer Ends In: