Home › Forums › Basel support forum › Cart customization for mobile
Cart customization for mobile
- This topic has 14 replies, 2 voices, and was last updated 6 years, 8 months ago by
Elise Noromit.
-
AuthorPosts
-
November 12, 2018 at 11:49 am #88919
GiulioParticipantHi there,
I’d like to change something on the cart from mobile phones. Is it possibile to:
1. Change the background color? I’d like to switch to white.
2. Change the size of the product image? I’d like to show it a bit large.
Thanks a lot.Attachments:
You must be logged in to view attached files.November 12, 2018 at 1:56 pm #88988
Elise NoromitMemberHello,
Your current site is black and you show the grey background. Please provide the site admin access which you want to change.
Best Regards
November 12, 2018 at 1:58 pm #88989
GiulioParticipantYou saw the other web site. This is the correct one.
November 12, 2018 at 2:06 pm #88992
Elise NoromitMemberHello,
Add this code to the Theme Settigns > Custom CSS > Global
@media (max-width: 768px){ body .woocommerce table.shop_table_responsive tbody td { background-color: #ffffff; } body .cart-collaterals .cart_totals { background-color: #f8f8f8; background-image: none; } body .woocommerce table.shop_table_responsive .product-thumbnail img { max-width: 100%; min-width: 100%; } }
Best Regards
November 12, 2018 at 2:16 pm #88994
GiulioParticipantNow it works fine, thank you. Is there a way to replicate the same bars of desktop version on the responsive version? Or in alternative a border of 1 pixel on the row of the single product?
November 12, 2018 at 6:15 pm #89049
Elise NoromitMemberHello,
If you want to have this style for all the devices remove the media inquiry
body .woocommerce table.shop_table_responsive tbody td {
background-color: #ffffff;
}body .cart-collaterals .cart_totals { background-color: #f8f8f8; background-image: none; } body .woocommerce table.shop_table_responsive .product-thumbnail img { max-width: 100%; min-width: 100%; }
Best Regards
November 12, 2018 at 6:21 pm #89053
GiulioParticipantI deleted
@media (max-width: 768px){
But the product image disappeared. Now I have only this:
/* Sfondo prodotti carrello da mobile */ @media (max-width: 768px){ body .woocommerce table.shop_table_responsive tbody td { background-color: #ffffff; } body .cart-collaterals .cart_totals { background-color: #f8f8f8; background-image: none; } /* Dimensione prodotti carrello mobile */ body .woocommerce table.shop_table_responsive .product-thumbnail img { max-width: 50%; min-width: 50%; }
November 12, 2018 at 6:27 pm #89054
GiulioParticipantI deleted
body .cart-collaterals .cart_totals { background-color: #f8f8f8; background-image: none; }
because I do not need to color that field. Is it referred to the cart total table, right?
November 12, 2018 at 8:17 pm #89077
Elise NoromitMemberHello,
This CSS relates to the block you have shown on the screen. As soon as you decide what colors you want and were contact me.
Best Regards
November 13, 2018 at 10:57 am #89186
GiulioParticipantI’m a bit confused right now. Let’s try to take a step back. I reduced the size of the thumbnail on the cart with:
body .woocommerce table.shop_table_responsive .product-thumbnail img { max-width: 50%; min-width: 50%; }
And it is ok. I changed the background of the row that contains the product details on the cart with:
@media (max-width: 768px){ body .woocommerce table.shop_table_responsive tbody td { background-color: #ffffff; }
And it is fine. The first question now is: what this CSS does?
body .cart-collaterals .cart_totals { background-color: #f8f8f8; background-image: none; }
And the second question is: I would like to replicate the same effect of these lines that I see from desktop between products also on mobile version of the web site. How can I do it? How can I work on the border of the row?
Thanks a lot, Elise.
November 13, 2018 at 4:38 pm #89280
Elise NoromitMemberHello,
Here is the answer to the first question http://prntscr.com/lhwk7w
Add the code to the Theme Settings > Custom CSS > Global to get the result on mobile.
body .woocommerce table.shop_table_responsive tbody td { background-color: #ffffff; }
Best Regards
November 13, 2018 at 4:46 pm #89281
GiulioParticipantDear Elise, I did not ask to color the background of the row, but only the border. I just would like to color the superior and the lower border for 1px. Just like you can see here.
November 13, 2018 at 6:08 pm #89292
Elise NoromitMemberHello,
Add this code to the Theme Settings > Custom CSS > to all mobile devices:
.woocommerce-cart-form__cart-item { border-bottom:1px solid red!important; } .woocommerce-cart-form__cart-item:first-child{ border-top:1px solid red!important; }
Replace the “red” with your color.
Best Regards
November 14, 2018 at 11:34 am #89414
GiulioParticipantIt works perfectly. Thanks a lot Elise!
November 14, 2018 at 12:56 pm #89439
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘Cart customization for mobile’ is closed to new replies.
- You must be logged in to create new topics. Login / Register