How can I add add-to-cart button for cross-sell products in mini-cart?
This topic has 4 replies, 2 voices, and was last updated 1 months, 1 weeks ago ago by Jack Richardson
How can I add add-to-cart button for cross-sell products in mini-cart?
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
Thank you!
What code should be added to this file to add an ‘Add to Cart’ button?
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
You must be logged in to reply to this topic.Log in/Sign up