Hi Guys,
How to put cart summary in two columns and mulit rows to look more professional.
Thank you
Hi Guys,
How to put cart summary in two columns and mulit rows to look more professional.
Thank you
Hi @Alliance ,
Please explain more about the cart summary, if possible, please send me a screenshot with the detailed description, and I will help you to check it
Hi,
I need to put the cart summary in a table, for example in the first colum, first row “Regular Price Title” then in the Second Column firs row t the “Regular Price Value”, and so on for the rest of the cart summary
Hi @Alliance ,
Go to Assets > theme.scss.liquid and paste this at the bottom of the file:
.cart__footer .cart-subtotal h2 {
display: inline-block !important;
}
.cart__footer .cart-subtotal__price {
padding-left: 15px !important;
min-width: auto !important;
}
It will show like this:
Hope it helps!
Yeeees! can you align text to the left and put the grid on? Thank you
Hi @Alliance ,
Please add code:
.cart__footer .cart-subtotal {
width: 235px;
margin-left: auto;
text-align: left;
padding: 0 15px;
border: 1px solid #7b6e6e;
border-top: 0;
max-width: 100%;
}
.cart__footer .cart-subtotal:first-child {
border-top: 1px solid #7b6e6e !important;
}
.cart__shipping {
width: 235px;
margin-left: auto;
text-align: left;
padding: 15px;
}
Hope it helps!
Hi @Alliance ,
You have add ‘;’ after 250px ?
Hi @Alliance ,
It’s not like that, you just need to change this:
Refer code:
.cart__footer .cart-subtotal {
width: 250px;
margin-left: auto;
text-align: left;
padding: 0 15px;
border: 1px solid #7b6e6e;
border-top: 0;
max-width: 100%;
}
.cart__footer .cart-subtotal:first-child {
border-top: 1px solid #7b6e6e !important;
}
.cart__shipping {
width: 250px;
margin-left: auto;
text-align: left;
padding: 15px;
}
| Regular Price | 22222 |
|---|---|
| Your Savings | 33333 |
| Subtotal | 5555555 |
Hi @Alliance ,
Please change all code:
.cart__footer .cart-subtotal {
width: 290px;
margin-left: auto;
text-align: left;
padding: 0 15px;
border: 1px solid #7b6e6e;
border-top: 0;
max-width: 100%;
display: flex;
}
.cart__footer .cart-subtotal:first-child {
border-top: 1px solid #7b6e6e !important;
}
.cart__shipping {
width: 290px;
margin-left: auto;
text-align: left;
padding: 15px;
}
.cart__footer .cart-subtotal h2 {
width: 55%;
margin: 0 !important;
padding: 12px 0 !important;
height: 100%;
text-align: right;
}
.cart__footer .cart-subtotal h2:first-child {
border-right: 1px solid #7b6e6e;
width: 45% !important;
text-align: left !important;
}
it will show like this
Yeees! Great job.
Hi @Alliance ,
There was confusion here, CSS code will never affect Translation code, you can ask any other expert.
I checked and it looks like you still haven’t entered the full language at, refer:
Hope it is clear to you.
or better expand summary text cells " Regular price" etc…