Error message - HELP

Solved
jessp2734
Excursionist
21 2 3

Hi All,

I have the below code on one of my product pages - does anyone have any ideas why this is showing up and how to fix it?

Liquid error (sections/product-featured-image-slider.liquid line 14): comparison of String with 24 failed

Thanks in advance 

Jess

0 Likes
PlankCreative
Explorer
38 9 15

Gday Jess,

To fix that issue you need to go to the edit the Liquid file product-featured-image-slider.liquid. You will have to go Online Store > Themes > Actions > Edit code. Then navigate to Sections > product-featured-image-slider.liquid

From the error, the code has an error because there is a comparison of two different types on line 14. There would be something like

if(string == int){
    ...
}

If you copy the line 14 in as a reply I can take a look and see if I can help

 

Willy

If comment was helpful, hit Like!
Solved your issue? Set Accept as Solution!
Need a quote? Contact glenn@plankcreative.com.au to get in touch!
0 Likes
jessp2734
Excursionist
21 2 3

Hi Willy 

Thanks so much for your help, I really appreciate it.

 

On line 14 - here is the code:

{% if collection.all_products_count > paginate_by %}

 

I also have the same error (below) on one of my product pages, which is 

Liquid error (sections/product-featured-image-slider.liquid line 14): comparison of String with 24 failed

 

0 Likes
jessp2734
Excursionist
21 2 3

This is an accepted solution.

I've managed to get this all fixed now, thank you for your help