The order of collection went wrong after logging in

Highlighted
New Member
3 0 0

Hello! 

I have encountered a problem that before I login to the site, the collection listing worked perfectly fine like this.

Screenshot 2020-11-15 at 1.24.21 AM.png

 

But after I have logged in, the listing went wrong.... It turned to one product per row.

Screenshot 2020-11-15 at 1.24.09 AM.png

Does anyone know what's happening? Please note that I have changed some codes, for example, I have set the wholesale price can only be seen after log in. 

Some of the codes that I have changed in the product-grid-item.liquid page is like the following. Would that affect the collection listing?

{% if on_sale %}

<span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
<span>Retail Price:</span>
<s class="grid-link__sale_price">{{ featured.compare_at_price | money }}</s>
{% endif %}
{% if featured.price_varies %}
{{ 'products.general.from_html' | t: price: price }}
{% else %}
<br />

{% if customer %}
{% if on_sale %}
<font color="#990000">
<span>Wholesale Price:</span>
<span class="visually-hidden">{{ 'products.product.sale_price' | t }}</span>
{% else %}

<span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
</font>

{% endif %}
{{ price }}

Hope someone can answer me. Thank you so much!!

0 Likes
Highlighted
New Member
3 0 0

https://flashsale.poprank.ai/

this is my site. 

Please have a look if it helps, thanks!!!!!

0 Likes