Woocommerce ‘Product Bundles’ Plugin and Woodmart
-
Hi,
We are using the Woocommerce Product Bundles Plugin with woodmart and find this styling issue with the Buy Now button. See here of how it looks https://ibb.co/2h0SBZx
The plugin developer woocommerce say that the Buy Now button is outside the <div> that includes all the other elements (bundle_wrap). https://d.pr/i/LlW00M
All they could suggest was to conditional remove or add the Buy button using the template responsible for that div with the class name “bundle_wrap” in the Bundled Products’ template folder named “bundled-add-to-cart-wrap.php”.
Can you guys help with the styling? All we need is for our product bundles page buttons to look like this https://ibb.co/NCdn1qz
Thank you in advance for your attention
Hello,
Sorry for the delay.
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
Hello,
Thank you for the provided information. I have submitted the case to our developers and we will get back to you soon.
Best Regards
Hello,
Please add this code to the functions.php of the child theme:
use XTS\Modules\Quick_Buy\Main as Quick_Buy;
add_action( 'woocommerce_before_add_to_cart_button', function () {
global $product;
if ( is_a( $product, 'WC_Product_Bundle' ) ) {
$bundled_items = $product->get_bundled_items();
if ( ! empty( $bundled_items ) ) {
remove_action( 'woocommerce_after_add_to_cart_button', array( Quick_Buy::get_instance(), 'output_quick_buy_button' ), 1 );
add_action( 'woocommerce_bundles_add_to_cart_button', array( Quick_Buy::get_instance(), 'output_quick_buy_button' ) );
}
}
});
If you have any questions please feel free to contact us.
Best Regards
Thank you. That worked great.
As usual….well worth every penny paid to you guys.
THE BEST!
You are welcome! We are here to help.
Wish you a wonderful day!
The topic ‘Woocommerce ‘Product Bundles’ Plugin and Woodmart’ is closed to new replies.