How can I enable product swiping on the product page?

How can I enable product swiping on the product page?

shanabenittah
New Member
17 0 0

Hi, 

I would like to be able to swipe between products within the product page, which mean the customer could swipe from one product page to an other and won't have to scroll down on the collection page. I am using prestige theme

thank you in advance for any help!

Replies 3 (3)

NomtechSolution
Astronaut
1245 113 153

Yes you can do it by adding code in theme

<div class="swiper-container">
  <div class="swiper-wrapper">
    {% for product in collection.products %}
      <div class="swiper-slide">
        <!-- Display product details here -->
        <h2>{{ product.title }}</h2>
        <p>{{ product.description }}</p>
        <!-- Add any other product information you want to display -->
      </div>
    {% endfor %}
  </div>
</div>

<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script>
  var swiper = new Swiper('.swiper-container', {
    slidesPerView: 'auto',
    spaceBetween: 10,
    // Add any other Swiper options you want to configure
  });
</script>

files in product.liquid

Zqdo
Shopify Partner
803 32 63

This will involve a bit of coding in the code editor. Do you have any experience coding in Shopify?

banned

BSS-Commerce
Shopify Partner
3477 463 535

Hi @shanabenittah 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency