Skip to main content

Posts

Shopify- How to show related products using meta fields without app

   Shopify- How to show related products using meta fields without app   to show related products or custom product list within single product page, copy the below code and paste it in your blade template or custom liquid file and replace "related_products" with your custom meta field key.   <div class="related-products"> {% assign related_products = product.metafields.custom.related_products.value %} <div class="related-products">   <h3>Related Products</h3>   <div class="related-products-list"> {% for recommended in related_products %} <div class="related-product">           <a href="{{ recommended.url }}" class="related-product-link">             <div class="related-product-image">               {% if recommended.featured_image %}   ...

Shopify: Add Collection Tabs section

COMPLETETLY FREE CODE TO ADD A COLLECTION TABS WITH PRODUCT SLIDER SECTION IN SHOPIFY To add a new section , Go to Themes then select three dots that highlighted in below screensot and then select Edit Code Now click on Add a new section and type a name for new section. For example: tabs-collection.liquid Now open this newly created file and paste below code and save it {% if section.blocks.size > 0 %} <div class="tabs-section page-width"> <link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"> <script src="//code.jquery.com/jquery-3.6.0.js"></script> <script src="//code.jquery.com/ui/1.13.2/jquery-ui.js"></script> {% if section.settings.useslider %} <script src="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script> <link rel="stylesheet" type="text/css" href="...