Re: Can I add an Add to Cart button to the You may also like section?

Hello,

Can I add an Add to Cart button to the You may also like section?

Also, I’ve been struggling with showing more than 4 related products with a slider like this one: Preview Allure Theme - Prestige Ecommerce Website Template (shopify.com)

You’ll have to scroll down to the bottom of the page to see the You may also like slider section. I assume it’s done with JavaScript? Funny enough, it also has an add to cart button.

Photo Example:

Any help is greatly appreciated!

Please share your store URL and password.So that I will check and let you know the exact solution here.

Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Hey @mOONbOOTS
In the product-recommendations.liquid or related-products.liquid add an “Add to Cart” button.


For the slider you can use Slick Slider or Swiper.js.


  {% for product in recommendations %}
    

      
      
    

  {% endfor %}

I’ve used Slick slider here there is a JS

$(document).ready(function(){
  $('.related-products-slider').slick({
    slidesToShow: 4,
    slidesToScroll: 1,
    infinite: true,
    autoplay: true,
    autoplaySpeed: 3000,
    dots: true,
    arrows: true
  });
});

Hello @mOONbOOTS feel free to share your store URL link so I and/or others can give it a check and give you the must appropriate solution. Thanks in advance!