Shopify / Shopify/buy-button-js

Manually call the checkout-event?

Open
#696 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.