Home Forums WoodMart support forum Is there any way to add extra HTML block to Cart side bar?

Is there any way to add extra HTML block to Cart side bar?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #386336

    b3lm0nt
    Participant

    Hi! I’m wondering if there’s any chance to add an HTML block with products that might interest to customer to cart side bar?
    Like in the example I’m sharing.

    Attachments:
    You must be logged in to view attached files.
    #386395

    Hello,

    Unfortunately, it is not possible by default.

    Create an HTML block with the Product Grid and show the product by a category or tag in the Dashboard > HTML blocks.

    Please add this code to the functions.php of the child theme:

    add_action( 'woocommerce_widget_shopping_cart_total', function(){
       echo do_shortcode( '[html_block id="3008"]' );
    }, 5 );

    [html_block id="3008"] insert your HTML block ID in this place.

    Best Regards

    #389733

    b3lm0nt
    Participant

    Thanks! It worked!

    #389743

    You are welcome! We are here to help.

    Wish you a wonderful day!

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