All things Shopify and commerce
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
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?
sorry i didnt get you what exactly i have to provide you in screenshot
I mean that could you please share with me the screenshot where you created the section you mentioned above?
is this the thin you need???
Yes, it's correct. Thank you so much. Let me check it quickly with our technical team here.
Would you mind copying all the code there and share with us in the file?
sharing you the code
Yes, please share it here 😊
<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>
You should re-check this line from your code:
It can't work in the custom liquid block because the value can't be taken.
then how can we resolve this???
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!
thanks for you help dear by the way m using dawn theme if you can help
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:
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
it also didnt worked
please guide me how to share collabrator code
There you go -->
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
4052
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025