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
This topic has 6 replies, 3 voices, and was last updated 3 weeks, 6 days ago ago by Luca Rossi
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
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
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?
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
Hi Luca,
Please see attached info:
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>';
//}
//}
Hope it helps!
You must be logged in to reply to this topic.Log in/Sign up