Can a script tag file add items to the Shopify cart?

sofia123
Tourist
5 0 0

Hi everyone,

I am making a custom app that adds a script tag to my front store.

I want to add item to cart &  update cart by using a script tag file, my customer will trigger this event by clicking a button.

However, I cannot see any document to workaround.

I am not sure if I have missed something. It is very nice of you to help me.

Replies 3 (3)

guy_swipify
Tourist
11 0 0

Hi,

 

Any luck with this? (same situation for me)

 

Founder at Swipify https://apps.shopify.com/swipify-4

jam_chan
Shopify Partner
891 23 171

You'll use cart ajax to add item to cart. Script tag just lets you add a js to a store. 

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview

rushikesh93
Excursionist
78 1 6

I'm developing an app using PHP, Shopify App Template - PHP,

I want to add a custom button using the Script tag on the Cart page, how can I do that?

because I have checked in the App structure, and there is no cart page available, that render to the fronted cart page. i have add one script tag, that shows the alert message on frontend,

 

now pls help me with this, how can I add a custom button using script tag?

 

Shopify Beginner.