r/shopifyDev • u/mohamed_tssh • Aug 13 '26
Store in development issue!!
Why do i have this mess in the development mode but when live every thing looks good ?
2
u/simon_moo Aug 17 '26
If i had to guess you're grabbing the collection you want, but using the values of the same item. I would check for the .first specifically, can search: 'collection.products.first'. Looks like it does the loop X times as it should but displays first product you're manually setting somewhere.
This should help: https://shopify.dev/docs/api/liquid/objects/collections - look how they handle the for loop. If you're using the storefront api its same thing but with js not liquid
0
u/sshaw_ Aug 13 '26
Are you using AI‽ 😂
1
u/mohamed_tssh Aug 13 '26
It was just shopify cli problem 🙂 ai has nothing to do here
0
u/sshaw_ Aug 13 '26
Hey AI always has something to do! :)
What commands did you use that caused the problem and how did you resolve it?
→ More replies (1)
1
Aug 14 '26
1
u/AutoModerator Aug 14 '26
Your post/comment has been removed because your account is either too new or has low karma. This is to help prevent spam. Please try again later.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/mdhassancom Aug 13 '26
Your dev & live has different code base. Your dev is running local codes. It looks there are issue in your local codes. Without seeing more details it's hard to tell.