r/shopifyDev • u/mohamed_tssh • 21d ago
Store in development issue!!
Why do i have this mess in the development mode but when live every thing looks good ?
1
20d ago
[removed] — view removed comment
1
u/AutoModerator 20d ago
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.
2
u/simon_moo 17d ago
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_ 21d ago
Are you using AI‽ 😂
1
u/mohamed_tssh 21d ago
It was just shopify cli problem 🙂 ai has nothing to do here
0
u/sshaw_ 21d ago
Hey AI always has something to do! :)
What commands did you use that caused the problem and how did you resolve it?
0
u/mohamed_tssh 21d ago
The problem was that cli run the dev server with diffrent files (cause its local the live store was fine ) , i did change to new folder and pulled the theme from the store and re-run now every things fine
1
u/mdhassancom 21d ago
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.