Add to cart button layout not the same for Bundle and regular items

This topic has 6 replies, 3 voices, and was last updated 3 weeks, 6 days ago ago by Luca Rossi

  • Avatar: Peter
    Peter
    Participant
    March 18, 2025 at 12:00

    We have regular items and we have bundle items.

    We want the Add-to-cart layout of the regular items becomes the same with the Bundle items.
    How can we make it the same?

    Please see attached screenshots

    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 18, 2025 at 13:22

    Hello,

    Thank you for reaching out to us.

    We understand that you would like the Add-to-Cart layout of regular items to match that of the bundle items. Theme Options > Woocomerce > Shop > Products design > Add to cart with quantity > Off.

    Best regards,
    8Theme’s Team

    Avatar: Peter
    Peter
    Participant
    March 20, 2025 at 10:46

    Hi Rose,

    What we want is the opposite. We want the bundle items to have add-to-cart option/icon like the regular items.

    How can we do that?

    Avatar: Justin
    Luca Rossi
    Support staff
    March 20, 2025 at 12:15

    Dear Peter,

    We hope you are doing well.

    Could you kindly provide us with the WordPress admin account credentials? This will allow us to review the backend settings more thoroughly.

    Looking forward to your response.

    Best regards,
    8Theme Team

    Avatar: Peter
    Peter
    Participant
    March 20, 2025 at 12:38

    Hi Luca,

    Please see attached info:

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    March 21, 2025 at 06:30

    Hi @Peter,

    Please copy this file from the xstore parent theme to xstore child theme in the same directory:

    
    /wp-content/themes/xstore/woocommerce/content-product.php
    

    On the line 895, 899, 915, 916 – comment out the codes like this:

    
    						//if ( in_array('product_page_addtocart', $product_settings) && ! $just_catalog) {
    							if ( ! in_array( $view, array( 'mask', 'mask3', 'light', 'overlay' ) ) ) {
    								do_action( 'woocommerce_after_shop_loop_item' );
    							}
    							//if ( $with_quantity && ! ($product_type == 'variable' && etheme_get_option( 'swatch_layout_shop', 'default' ) == 'popup') ) {
                                    $q_args = array(
                                        'min_value'   => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ),
                                    );
    
                                    if (
                                        $product->managing_stock()
                                        // $product->get_stock_quantity()
                                    ) {
                                        $q_args['max_value'] = $product->get_stock_quantity();
                                    }
    
                                    echo '<div class="quantity-wrapper">';
                                    woocommerce_quantity_input( $q_args, $product, true );
                                    woocommerce_template_loop_add_to_cart();
                                    echo '</div>';
    							//}
    						//}
    

    https://prnt.sc/_cbYA2cgAYfw

    Hope it helps!

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.