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

3 replies2 participantsUpdated by Jack Richardson

  • Avatar: Lisa
    Lisa
    Participant

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

    3 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    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

    Thank you!

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

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    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

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register