collection products not showing

collection products not showing

Nabeelshakil
Shopify Partner
36 0 7

Hi there

 I have created a custom liquid section in which i want to show collection banner on left and collection on right i have created that section but the issue is it shows no products in this collection sharing url https://sundip1.myshopify.com/ can anyone help me out

Replies 18 (18)

DaisyVo
Shopify Partner
4460 499 596

Hi @Nabeelshakil 

 

image (22).png

It seems this block has been customized from your end, it isn't the theme setting. Could you please share with me the screenshot where you generated it? 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7

sorry i didnt get you what exactly i have to provide you in screenshot

 

DaisyVo
Shopify Partner
4460 499 596

I mean that could you please share with me the screenshot where you created the section you mentioned above? 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7

Capture.PNGis this the thin you need???

DaisyVo
Shopify Partner
4460 499 596

@Nabeelshakil 

 

Yes, it's correct. Thank you so much. Let me check it quickly with our technical team here.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
DaisyVo
Shopify Partner
4460 499 596

@Nabeelshakil 

 

Would you mind copying all the code there and share with us in the file? 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7

sharing you the code

DaisyVo
Shopify Partner
4460 499 596

@Nabeelshakil 

 

Yes, please share it here 😊

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7
<div class="custom-slider-container">
    <!-- Static Image on the left -->
    <div class="static-image">
        <img src="https://cdn.shopify.com/s/files/1/0909/7229/1354/files/Untitled-Photoroom_4.png?v=1733803343" alt="Static Image">
    </div>

    <!-- Product Collection Slider on the right -->
    <div class="product-slider">
        {% assign collection = collections['ketchup-and-sauces'] %} <!-- Use the collection handle -->
        {% if collection.products.size > 0 %}
            {% for product in collection.products %}
                <div class="product-slide">
                    <a href="{{ product.url }}">
                        <img src="{{ product.featured_image | img_url: 'medium' }}" alt="{{ product.title }}">
                        <p>{{ product.title }}</p>
                        <p>{{ product.price | money }}</p>
                    </a>
                </div>
            {% endfor %}
        {% else %}
            <p>No products found in this collection.</p>
        {% endif %}
    </div>
</div>
DaisyVo
Shopify Partner
4460 499 596

@Nabeelshakil 

 

You should re-check this line from your code:

image (30).png

It can't work in the custom liquid block because the value can't be taken. 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7

then how can we resolve this???

 

DaisyVo
Shopify Partner
4460 499 596

Hi @Nabeelshakil 

 

You might need to contact the theme provider for further information on this problem. Since we are not allowed to access your theme to check it further. 

 

Hope you can kindly understand. Thank you! 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Nabeelshakil
Shopify Partner
36 0 7

thanks for you help dear by the way m using dawn theme if you can help

TheUntechnickle
Shopify Partner
539 65 158

Hey @Nabeelshakil,

The code you've pasted here is correct, however, on checking your collection "Ketchup and Sauces", we found that your collection handle is coming out to be [https-admin-shopify-com-store-sundip1-collections-ketchup-and-sauces]

Either you can modify the collection handle by 

To find your correct collection handle:

  1. Go to your Shopify admin
  2. Navigate to Products > Collections
  3. Click on your Ketchup and Sauces collection
  4. Look at the URL - the last part after 'collections/' is your handle
    • Or check the 'Website URL' field in your collection's SEO section

 

Or if you don't want to change this collection handle, you can modify the above code to be:

 

<div class="custom-slider-container">
    <!-- Static Image on the left -->
    <div class="static-image">
        <img src="https://cdn.shopify.com/s/files/1/0909/7229/1354/files/Untitled-Photoroom_4.png?v=1733803343" alt="Static Image">
    </div>
    <!-- Product Collection Slider on the right -->
    <div class="product-slider">
        {% assign collection = collections['https-admin-shopify-com-store-sundip1-collections-ketchup-and-sauces'] %} <!-- Using full URL handle -->
        {% if collection.products.size > 0 %}
            {% for product in collection.products %}
                <div class="product-slide">
                    <a href="{{ product.url }}">
                        <img src="{{ product.featured_image | img_url: 'medium' }}" alt="{{ product.title }}">
                        <p>{{ product.title }}</p>
                        <p>{{ product.price | money }}</p>
                    </a>
                </div>
            {% endfor %}
        {% else %}
            <p>No products found in this collection.</p>
        {% endif %}
    </div>
</div>

 

 

Hope this helps. If yes, do accept this as a solution.

Cheers!
Shubham | Untechnickle




Helping for free: hello@untechnickle.com


Don't forget to say thanks, it'll make my day - just send me an email! 


Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App

Nabeelshakil
Shopify Partner
36 0 7

it also didnt worked

 

Nabeelshakil
Shopify Partner
36 0 7

please guide me how to share collabrator code

 

TheUntechnickle
Shopify Partner
539 65 158

There you go -->

 

TheUntechnickle_0-1736146584949.png

 

Helping for free: hello@untechnickle.com


Don't forget to say thanks, it'll make my day - just send me an email! 


Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App

Nabeelshakil
Shopify Partner
36 0 7

4052