/ 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.
- Clone the
plugins/shopifyfolder from this repo. - Run
shopify app devin your dev store. - Push your Flowprint key:
shopify app env push FLOWPRINT_API_KEY=fpk_... - 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.
- Zip the
plugins/woocommerce/flowprintfolder. - WP Admin → Plugins → Add New → Upload Plugin → activate.
- Open Settings → Flowprint and paste your API key.
- 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.