Home Forums WoodMart support forum Woocommerce ‘Product Bundles’ Plugin and Woodmart

Woocommerce ‘Product Bundles’ Plugin and Woodmart

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #437726

    Little Panda
    Participant

    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

    #438159

    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

    #438491

    Little Panda
    Participant

    Okay thank you.

    #438790

    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

    #439116

    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

    #439187

    Little Panda
    Participant

    Thank you. That worked great.

    As usual….well worth every penny paid to you guys.

    THE BEST!

    #439397

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Woocommerce ‘Product Bundles’ Plugin and Woodmart’ is closed to new replies.