Shopify Hydrogen Development - Getting Online Store's Country (Part 2)
Вставка
- Опубліковано 25 січ 2025
- Part 2 of Shopify Hydrogen Development video series! Today's video will be about learning how to get the country of your Shopify store using GraphQL and Remix.
Wanna learn more about Shopify Theme Development? Take a look at my course:
✅ Take my Shopify Theme Development Course (Shopify CLI):
weeklyhow.com/...
✅ Take my Shopify Theme Development Course (ThemeKit):
weeklyhow.com/...
✅ Get my Shopify App Development Course:
weeklyhow.com/...
Need a website? Get yours here!:
► weeklyhow.com/...
Try Shopify for 14-days!
► weeklyhow.com/...
#ShopifyHydrogen
#ShopifyDeveloper
#ShopifyThemeDevelopment
🔔 Subscribe now for more tech content:
► www.youtube.co...
Official Website:
► weeklyhow.com/
Support us on Patreon:
► / weeklyhow
Follow us on our Social Media:
Facebook ► / weeklyhow
Twitter ► / weeklyhow
Instagram ► / weeklyhow
Would love a part 3
hey man hearing you talk about school & how you landed an internship was super inspiring! i bought your shopify theme course on udemy & it's the last piece i needed to execute a project with a client. Thanks & keep up the good work!
Hi Adrian! Thanks for the time to watch my content and for taking my courses. I hope it will help you tremendously with your future projects. 😄
I like your video and bought few courses has well. Keep it up. Thanks. Would like to know more about hydrogen storefront development.
Hello! Thank you for taking my courses! There will be more videos for sure on this. 🙌
maybe I'm missing something but i'm not seeing the flag you said would be in the description :-/
Hey, is there a way to access the product metafield object inside javascript? When I try a simple click event to change some css, nothing happens when I use the metafield object in an "if" statement. When I try it without the metafield object, the javacript runs smoothly.
Am I messing up creating the variable using the object?
var productMetafield = {{ product.metafields.custom.title.value }};
var productName = {{ product.id }}
if (productMetafield == productName ) {
document.querySelectorAll('#randomImage).forEach( e => {
e.addEventListener('click', () => {
e.style.display = "none";
})
})
}
I've also tried these other two ways but still had an error. Thanks
var productMetafield = {{ product.metafields.custom.title.value | json }};
var productMetafield = {{ product.metafields.custom.title | json }};