Shopify / Shopify/buy-button-js
Manually call the checkout-event?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 260
- Forks
- 122
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 2
Description
I am using Buy-Button-JS to add e-commerce functionality to a site. Everything works as expected.
However, I would like to call the checkout (the same function that is called when the »Checkout« button in the cart is clicked) manually, i.e. call it with another button, somewhere else on the page. Is it possible to trigger the checkout manually like that?
Thanks for any help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by tracing the checkout button behavior in Buy-Button-JS and determine whether a public manual trigger exists. Done when the supported approach, or the limitation preventing it, is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100