Mini-cart Cross-sale add Add-to-cart button

This topic has 4 replies, 2 voices, and was last updated 1 months, 1 weeks ago ago by Jack Richardson

  • Avatar: Lisa
    Lisa
    Participant
    March 5, 2025 at 11:38

    How can I add add-to-cart button for cross-sell products in mini-cart?

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 5, 2025 at 17:05

    Dear @Lisa,

    Thank you for reaching out to us.

    Please note that the requested functionality is not predefined in our theme by default. However, you can achieve this by copying the following file:

    xstore/woocommerce/content-widget-product-slider.php

    to your child theme at:

    child-theme/woocommerce/content-widget-product-slider.php

    Once copied, you can make any modifications you require, including adding “Add to Cart” buttons to products or customizing the content as needed.

    Should you have any further questions or require assistance, please feel free to contact us.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Lisa
    Lisa
    Participant
    March 6, 2025 at 09:06

    Thank you!

    What code should be added to this file to add an ‘Add to Cart’ button?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 6, 2025 at 15:39

    Dear @Lisa,

    You may try adding the following code snippet to the xstore-child/woocommerce/content-widget-product-slider.php file:

    <?php woocommerce_template_loop_add_to_cart(); ?>

    Screenshot reference: https://prnt.sc/VdsibPpSXiwP

    Please note that, in accordance with Envato’s support policy, we do not provide additional customization services through our support forum. However, if you require further customization, you are welcome to submit your request here: https://prnt.sc/5F78EhmmB7vw.

    Should you have any other questions, feel free to reach out.

    Best regards,
    Jack Richardson
    8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.