Home Forums Basel support forum Tweaking the cart widget width and more

Tweaking the cart widget width and more

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #134322

    3p1demicz
    Participant

    Hello,

    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 this

    cart-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.

    #134362

    Hello,

    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

    #134379

    3p1demicz
    Participant

    Hello,

    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 contain woodmart_cart_side_widget()

    Mayb i did post it to different forum?

    Kind regards,
    Kristof

    #134406

    Hello,

    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

    #134646

    3p1demicz
    Participant

    Hello,

    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.php

    That 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,
    Kristof

    #134671

    Artem Temos
    Keymaster

    Sorry, but this requires more customizations and we don’t have an instruction for this. It is out of the theme support scope.

Viewing 6 posts - 1 through 6 (of 6 total)