GithubHelp home page GithubHelp logo

conormondo / shopify-to-amplifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

A Simple script to take Shopify order exports and creates a file that is easily imported into my.amplifier.com.

Python 100.00%

shopify-to-amplifier's Introduction

Shopify to Amplifier CSV

This is a dumb script to quickly take shopify order exports and reformat them to automatically be imported into my.amplifier.com

Installation:

The following dependencies are required:

Or use the requirements.txt file

pip install -r requirements.txt

Usage:

Currently the script looks for the default Shopify export format orders_export.csv. Soon this will likely be any file with "orders" or "export" or "shopify" in the name with some sort of hierarchy, but not sure where it will land. If you're reading this, then that means it's still on the original file lookup.

Steps:

  1. Clone or download script.
  2. Make an output directory.
  3. Put exported shopify file in project root directory.
  4. Run Script.
  5. Take upload file that was created and import.

Running the script:

point terminal into this directly and run the following command:

python main.py

Updating Amplifier / Shopify Template

If for whatever reason you need to update the template for the Amplifier to Shopify column mappings, just throw the new template file in this directory and run the update:

python update_template.py

NOTE: that this will create a new mapping in the settings file. Any new columns that are added will be mapped to a null in the columns.json file and will need their Shopfiy counterpart manually added instead of the null. Any existing columns on update will keep their shopify mappings, but if a new template no longer has a column in it, that mapping will be lost.

TODO:

  • Logging / overal script communication (number of orders, errors, etc...)
  • Do something with orders that cannot be piped into amplifier template for whatever reason?
  • Better CLI args for more dynamic file input. Maybe include .bat or .sh to DIY packaging.

Current Mappings as of 4/20/22 in columns.json

shopify-to-amplifier's People

Contributors

conormondo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.