Test Setup
Description
Getting Started
- Clear the database
- Create a fresh product inventory using reaction-devtools
- Keep browser console open to monitor any client-side errors or warnings
- Keep terminal in view to monitor any server-side errors or warnings
Devtools
Reaction Devtools is a Reaction Commerce plugin that allows you to load a variety of data sets for testing directly from the admin dashboard.
Install
- Clone or download the reaction-devtools repository into the
/imports/plugins/custom/
directory of your Reaction Commerce project. - Run
meteor npm install jpeg-js
if you need to test with product images. - Run
reaction reset
before starting your Reaction Commerce project.
Loading Sample Data
Click the DevTools option in the admin menu to open the DevTools panel.
Click the "Reset Data" button to remove all Product, Tag and Order data.
Click the "Load Products and Tags" buttons to load basic shop data.
Click the "Load Orders" button to load unprocessed new orders.
Click the "Load Images" button to create product images for all products. Note: Loading product images can take a few minutes depending on the amount of products that have been created. Note: Loading the large dataset while running Reaction Commerce on your local development machine is discouraged.
Payment Provider
Example Provider
- Click the payment option in the admin menu to open the payment provider settings panel.
- Click the checkbox to right of the Example Provider label to open the settings.
- Enter an API Key.
- Clcik the "Authorize", "Capture" & "Refund" checkboxes for the supported methods.
- Click the "save changes" button.
Stripe
- Click the payment option in the admin menu to open the payment provider settings panel.
- Click the checkbox to right of the Stripe label to open the Stripe settings.
- Enter an API Secret Key.
- Clcik the "Authorize", "Capture" & "Refund" checkboxes for the supported methods.
- Click the "save changes" button.
Shipping
Flat Rate
- Click the shipping option in the admin menu to open the shipping settings panel.
- Click the checkbox to right of the Flat Rate label to open the Flat Rate settings.
- Select one of the shipping rate method rows from the table to open the method options.
- Click the "enabled" checkbox to enable the shipping method.
- Click the "save changes" button.
Shippo
- Click the shipping option in the admin menu to open the shipping settings panel.
- Click the checkbox to right of the Shippo label to open the Shippo settings.
- Click the "Edit API Key" link to open the Shippo settings.
- Enter an API Key and click the "save changes" button.
- Click the "Refresh methods" link to refresh the shipping options.
Taxation
Custom Rates
- Click the taxation option in the admin menu to open the taxation settings panel.
- Click the checkbox to right of the Custom Rates label to open the Custom Rates settings.
- Click the "+" button to add a new custom tax rate.
- Select a country and a state/province/region from their respective selectboxes.
- Enter a ZIP Code/Postal Code.
- Enter the tax rate percentage.
- Click the "save changes" button.