Git Product home page Git Product logo

shopifyorderstatus's Introduction

A shopify custom private app to allow shopify shop customers to check on the order status using just the phone number used to place the order without having the login to the shopify site.

As a level of authentication this app uses nexmo 2fa api for verifying if the user submitting the status check request owns the phone. This means that an authcode will be sent to SMS if the phone is the mobile phone otherwise nexmo will make a voice phone call to read out the authcode.

After the 2 factor authentication is done the app will show the status of the order.

Currently it shows the Order id, Fulfillment status and payment status of the order matching the phone number.

The steps to activate this app are

  1. Create a private app in shopify admin of the store that needs the Anonymous Order Status check feature https://github.com/pvela/shopifyorderstatus/blob/master/docs/private_app.png

  2. Create a new page under Online Store menu. Paste the code from order_status_page.html in this new page using the shopify admin page. https://github.com/pvela/shopifyorderstatus/blob/master/docs/custom_page.png

  3. Signup for nexmo account at http://www.nexmo.com/

  4. clone this project and run it in a server.

  5. Copy config_sample.json to config.json and enter values for the following properties "ShopifyApiKey":"", // API key from the private app registration page "ShopifyApiPassword":"", // API password from the private app registration page "NexmoApiKey":"", // Nexmo API after registration at nexmo.com "NexmoApiPassword":"", // Nexmo password "ShopifySiteName":"" // The complete url of the site for ex : http://myshop.shopify.com

  6. Change the server url in the html page for the following 2 javascript varibles

var checkPhoneUrl = "http://localhost:9000/checkstatus?orderPhoneNumber=";

var checkOrderUrl = "http://localhost:9000/checkcode?requestId=";

Voila you are done.

Once this is done you have a order status check page using 2fa (powered by nexmo).

shopifyorderstatus's People

Contributors

pvela avatar tjlytle avatar

Watchers

 avatar  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.