Personalized checkout and custom promotions with Shopify Scripts
hello,
I have created an app using Shopify App Template - PHP,
Shopify php+reactjs app, but now I'm confused to create a script tag,
I don't understand how to create a script tag using Shopify App Template - PHP Structure,
exactly I don't understand which file I need to create that effect on the cart page.
I have read the script tag documentation, but don't get an exact idea about it,
I don't understand how to create a script tag, using Routes, Controller, and Component,
that the structure of this php App.
curl -d '{"script_tag":{"event":"onload","src":"https://example.com/my_script.js"}}' \
-X POST "https://your-development-store.myshopify.com/admin/api/2023-04/script_tags.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Content-Type: application/json"
I used this code and run into the Postman, it's run but, but now where does the output display in the front end?
in "src":"https://example.com/my_script.js", in src, which exact url i need to add?
because I'm developing this app in my local host.
please help me on this to create script tag.
Thanks.
@OneCommerce @PageFly-Victor @GemPages @flareAI @Alok_Kasgar
Please help me with this, give me some explanation on this.
Thank You.
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024