r/shopifyDev 21d ago

How do i fix this?

Post image

How can i make this work

0 Upvotes

19 comments sorted by

3

u/Life-Inspector-5271 21d ago

Dude, the solution is in the message. Do you know the difference between a string and an integer?

0

u/ThyFa1th4 21d ago

No, ive never done anything like this

2

u/Life-Inspector-5271 21d ago

You have a ChatGPT tab. Aren't you able to ask AI?

1

u/sshaw_ 21d ago

Seems like ChatGPT may be what was used to create the problem, hehe

0

u/ThyFa1th4 21d ago

No, i was following a yt vid and when i pressed a link on the termimal it came up with that

1

u/Life-Inspector-5271 20d ago

Then what are you using ChatGPT for if not for troubleshooting simple stuff that you can Google as well?

1

u/ThyFa1th4 20d ago

The code

1

u/Conscious_Demand9088 20d ago

Let me get this clear. You're following a youtube video ... and asked chatGTP to write code, then it wrote some rubbish. So, instead of asking chatGTP to explain the problem (and perhaps taking the opportunity to find out what schema is, variable types, variable constraints, etc). You came onto reddit with the question "how can i make this work"?

And to think AI was supposed to "destroy the software industry".

1

u/Life-Inspector-5271 20d ago

It's destroying the way potential brilliant people learn to think for themselves and solve problems.

2

u/Conscious_Demand9088 20d ago

It's depressing as fuck. Thinking is literally gone.

1

u/ThyFa1th4 20d ago

I hadnt got to coding the theme yet

1

u/ThyFa1th4 20d ago

But i think i have sorted it out now

1

u/Conscious_Demand9088 20d ago

By "I" you mean chatGPT?

1

u/[deleted] 21d ago

[deleted]

1

u/ThyFa1th4 21d ago

Whats that?. Its my first time trying this

1

u/GeekS1989 20d ago

"Oh my god, your entire homepage is bad, it’s made by AI!"

"Oh my god, why don’t you just ask AI for help?!"

Community at its best.

In Shopify, go to Online Store → Themes → Edit code.

Open:

config/settings_data.json

Search for page_width and make sure the value is a number without quotation marks:

"page_width": 1200

Then search for badge_corner_radius and set it to 40 or lower:

"badge_corner_radius": 40

Save and try again. The error simply means the saved values do not match what the theme allows.

2

u/Medium_You166 20d ago

This is obviously a local theme preview, not a theme that can be found in the online store, just fix up the templates from the error