Home Forums WoodMart support forum Assistance with Adding Content to Sidebar Cart

Assistance with Adding Content to Sidebar Cart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #622995

    Amit
    Participant

    Hello support,

    I am looking for guidance on adding content to the sidebar cart. Could you please let me know if there is an option or method available to achieve this?

    Image attached for your reference.

    Your assistance would be greatly appreciated.

    Thank you in advance for your support!

    Best regards,
    Amit

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

    Hung Pham
    Keymaster

    Hi Amit,

    Thanks for reaching to us.

    Unfortunately, complicated customization is out of our basic support.

    Thanks for understanding our limitations. Let me know if you have any questions.

    Kind Regards,

    #623248

    Amit
    Participant

    Hello,

    This is a simple task. We need to create an HTML block and use the shortcode [html_block id="23329"] to add that section to the cart sidebar. The key requirement is to specify the position for insertion, such as below the product list in the side cart or above the subtotal price or below the subtotal price. Please include an option in the settings to allow positioning of the HTML block in the cart sidebar.

    Thanks

    • This reply was modified 1 day, 3 hours ago by Amit.
    #623424

    Hung Pham
    Keymaster

    Hi Amit,

    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

    #623548

    Amit
    Participant

    Hello, Please take a look at attached image.

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

Tagged: 

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