Skip to content

ITJ-RSA/codeswholesale-woocommerce

Repository files navigation

codeswholesale-woocommerce

CodesWholesale integration plugin for WooCommerce

What it does

  • Adds a field to product in order to match with CodesWholesale's product in "General tab"
  • Buys and sends keys (text and images) when order is marked as complete
  • Disable with plugin activation, WooCommerce's email notification about completed order
  • Cron job to update stock information
  • Cron job to check that all completed orders are full filled with keys
  • Error reprting to admin's email
  • CodesWholesale's low balance notification
  • Automatically complete order when payment is received

How to use

  1. Download zip file from here, install it into your WordPress and activate plugin.
  • WooCommerce plugin is required.
  1. CodesWholesale tab will apear in admin menu. Under this tab you can configure few things:
  • Environment: sandbox or live, for tests is recommended to use sandbox but if you want to go live choose "live" and put your API credentials.
  • If you'd like to automatically send keys after payment is received e.g. from PayPal mark checkbox with "Automatically complete order when payment is received"
  • Balance value: While purchasing keys from CodesWholesale.com, script will check if your current balance is less than value from that field - if yes, it will send a notification email to shop's administrator.
  1. Go to "Add product", put your details and in the "General tab" select CodesWholesale's product to match. This will tell the script what product is buying your customer.
  • At first step choose "Test with text codes only"
  1. Create and order at your front page:
  • Add previously added product to cart.
  • Go through checkout process and put your real email (here you will need PayPal configured to sandbox if you don't want to do that choose bank transfer)
  • When your checkout is finished and if you've marked "Automatically complete order when payment is received" in plugin's configuration you should recive an email with keys, otherwise go to admin panel and mark order as "complete" (you will need to do that with bank transfer too)
  1. Repeat 3rd and 4th step for all products in Sandbox.
  • Match with "Test with image codes only"
    • In email with keys you should get images in attachment
  • Match with "Test product with high price"
    • You should receive email that something was wrong during script execution
  • Match with "Test pre order product"
    • You should receive an email about pre ordered codes in CW
  1. When all features are well known for you and you agree with them switch environment to "Live" and start selling.

  2. Write any feedback to devteam@codeswholesale.com

Nice to have

  • Post back query from CodesWholesale to shop about stock instead cron (benefit: more accurate stock details)
  • Post back query from CodesWholesale to shop to let know that preorder is ready to download

About

CodesWholesale integration plugin for WooCommerce

Resources

License

Stars

Watchers

Forks

Packages

No packages published