/ INSTALL

Install the Flowprint plugin.

Two installable plugins — one for Shopify, one for WooCommerce. Both call our/v1/checkout/incentivesendpoint and render three carbon-smart options inline at checkout.

Shopify Checkout UI Extension

React-based extension running natively inside Shopify Checkout.

v1.0 · Plus & non-Plus
  1. Clone the plugins/shopify folder from this repo.
  2. Run shopify app dev in your dev store.
  3. Push your Flowprint key: shopify app env push FLOWPRINT_API_KEY=fpk_...
  4. Deploy with shopify app deploy — extension activates at checkout immediately.
# plugins/shopify/extensions/flowprint-incentives/src/Checkout.jsx
reactExtension(
  "purchase.checkout.shipping-option-list.render-after",
  () => <FlowprintIncentives />
);

WooCommerce Plugin

Single-file PHP plugin. Hooks into woocommerce_package_rates.

v1.0 · WP 6+ / WC 7+
  1. Zip the plugins/woocommerce/flowprint folder.
  2. WP Admin → Plugins → Add New → Upload Plugin → activate.
  3. Open Settings → Flowprint and paste your API key.
  4. Done — incentives appear as shipping rates on the next checkout.
// plugins/woocommerce/flowprint/flowprint.php
add_filter('woocommerce_package_rates', function ($rates, $package) {
    $options = flowprint_fetch_incentives($package);
    foreach ($options as $opt) { /* register WC_Shipping_Rate */ }
    return $rates;
}, 10, 2);

Don't have an API key yet?

Generate one in seconds — free during integration.