Author is Aleš Sýkora
Updated: 9. 2. 2022, Added: 12. 1. 2022
Oxygen two columns WooCommerce Cart
If you want better user experience with your WooCommerce store, you may need Two columns WooCommerce checkout. But maybe, you would like to offer this experience also in the Cart. If you want two columns WooCommerce cart, use the CSS code below in your Custom CSS Stylesheet inside Oxygen Builder.
What do you think? Is it better for UX? Let me know in the comments below.
Normal Cart:
Two Columns Cart:
The CSS Code for WooCommerce two columns Cart:
/*WooCommerce Two Columns Checkout by Great-tit.com*/
.oxy-woo-cart.oxy-woo-element .woocommerce {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 16px;
}
.oxy-woo-cart.oxy-woo-element .woocommerce .woocommerce-notices-wrapper {
grid-column: span 3;
}
.oxy-woo-cart.oxy-woo-element .woocommerce .woocommerce-cart-form {
grid-column: span 2;
}
/*Edit the max-width to make it responsive as you need*/
@media screen and (max-width: 991px) {
.oxy-woo-cart.oxy-woo-element .woocommerce {
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-gap: 16px;
}
.oxy-woo-cart.oxy-woo-element .woocommerce .woocommerce-notices-wrapper {
grid-column: span 1;
}
.oxy-woo-cart.oxy-woo-element .woocommerce .woocommerce-cart-form {
grid-column: span 1;
}
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
width: 100%
}
/*End of Two Columns Checkout*/
Worked great, thx!