Home › Forums › Basel support forum › Tweaking the cart widget width and more
Tweaking the cart widget width and more
- This topic has 5 replies, 3 voices, and was last updated 5 years, 4 months ago by Artem Temos.
-
AuthorPosts
-
July 24, 2019 at 9:23 pm #134322
3p1demiczParticipantHello,
First of all, I have to say that I really love this template. It is swift and much fun to work with.
I have a few questions regarding the cart widget side
1)
I would like to make the cart widget when appears to be 50% of width on desktop.
I tried thiscart-widget-side width:50%
But it appears all the time opened little but when adding a product it activates and when closing it does not slide back completely but it seems only the 340px it had the width before. How should I change the size for the slide in the cart widget?
When I update the width for the phone to 100% it works just fine also slides in all the way.
2) Where are located the PHP files for the cart widget side, please? I want to add a custom PHP After the product in the cart loop. Thank you!
3) Is it possible to add in the cart next to the product quantity selector like is on the cart page? So customers can easily add more of the same product?
Thank you very much.
July 25, 2019 at 8:32 am #134362
Elise NoromitMemberHello,
1. Please add this code to the Theme Settings > Custom CSS > Desktop:
body .cart-widget-side { width: 50%; transform: translate3d(100%,0,0); -webkit-transform: translate3d(100%,0,0); -ms-transform: translate3d(100%,0,0); -sand-transform: translate3d(100%,0,0); }
2. PHP files for the cart widget side are located in
woodmart_cart_side_widget()
woodmart\inc\integrations\woocommerce\template-tags.php
3. Such modification would require complicated customization, which is not covered by our support
Best Regards
July 25, 2019 at 9:58 am #134379
3p1demiczParticipantHello,
Thanks for the reply.
Regarding
2. There is no such folder as woodmart in Basel theme.
there is
basel/inc/template-tags.php
but it does not containwoodmart_cart_side_widget()
Mayb i did post it to different forum?
Kind regards,
KristofJuly 25, 2019 at 12:14 pm #134406
Elise NoromitMemberHello,
Sorry for the mistake. PHP files for the cart widget side are located in basel\header.php http://prntscr.com/ojv4ze
The code on the screen shows the shopping cart in the slider.
Best Regards
July 26, 2019 at 8:30 pm #134646
3p1demiczParticipantHello,
Actually not what I was looking for, but I used
“woocommerce_widget_shopping_cart_before_buttons” from
/wp-content/themes/basel/woocommerce/cart/mini-cart.phpThat worked nicely for me.
I am trying to put cross-sell into the mini-cart using
“woocommerce_cross_sell_display();”It loads inside fine, but the thing is that the fragments do not get refreshed right after the product being added to cart.
So this leads to showing only
“You may also like..” and then nothing. And after refreshing the page or going to a different page and then opening the cart the cross-sell gets loaded.Is there a possibility to have the cart updated immediately when the products are added?
Kind regards,
KristofJuly 27, 2019 at 10:17 am #134671
Artem TemosKeymasterSorry, but this requires more customizations and we don’t have an instruction for this. It is out of the theme support scope.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register