Skip to content

ezhou413/shopify-cart-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

A script to automatically generate a checkout link from a csv of Shopify product IDs.

Usage

python gen.py <filename> to generate a Shopify cart link using the given file.

File Format

Line 1 contains the BASE url to the site, for example https://osume.com/.

The remaining lines are the variant IDs of the product and their corresponding quantities, with each line of the form <variant_id>,<quantity>. Defining quantities is optional, if no quantity is defined, it will default to 1.

Potential Improvements

  • implement better cli argument parser (using a library?)
  • enable pasting of entire product link instead of just the variant id
  • validate that the base url of all product links are the same (validation for above improvement)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages