Shopify B2B
The Quantaprice app for Shopify is in preparation and not yet published in the Shopify App Store. This page describes how it works. Contact us if you are interested.
The app takes the prices of a Shopify Plus store from your Quantaprice tenant. The storefront shows Quantaprice prices, each B2B company sees its own prices, and checkout charges the price shown. Your other channels take their prices from the same tenant, so a company pays the same price in every channel.
Who it is for
The app is for Shopify Plus stores that sell to companies through Shopify B2B and need more than Shopify's price lists offer: negotiated prices for each company, segment discounts through a pricelist hierarchy, quantity breaks, scheduled changes, or one set of prices shared with an ERP system, EDI or another storefront. For what you can evaluate before the app is published, see B2B pricing on Shopify Plus.
Charging the Quantaprice price at checkout requires Shopify Plus or a development store. The storefront shows Quantaprice prices only while checkout pricing is turned on.
Connecting
In the app, choose Connect and sign in to your Quantaprice tenant as an owner or admin. The app receives its own API key for the tenant, with the permissions price:read, price:write, article:write and pricelist:write. When you disconnect, the app stops using the key, but the key is revoked only when you connect again. If you do not reconnect, revoke the key under Settings → API Keys.
Products and prices
- Sync catalog creates an article in Quantaprice for each product variant, using its SKU. Variants without a SKU are skipped.
- Sync prices also creates a pricelist named
SHOPIFYfrom your current Shopify prices, in your shop's currency, with prices including VAT when your shop's prices include tax. It is a starting point until your ERP system or another system writes the prices.
Both run in the background.
Which price a buyer sees
The app prices each buyer with a price query across two kinds of pricelist:
- Storefront pricelists: the pricelists that every buyer is priced on, for example
SHOPIFY. You set them in the app, and a price sync setsSHOPIFY. Without storefront pricelists, only buyers from a company with its own pricelists get a Quantaprice price. - Company pricelists: tag a pricelist with a Shopify company's numeric ID under the metadata key
shopify_company_id, or another key that you choose in the app. A buyer signed in for that company is priced on both the storefront pricelists and the company's pricelists. A customer who belongs to several companies is priced as a buyer for their first company.
{
"code": "company-powderbound",
"currency_code": "SEK",
"vat_mode": "NET",
"parent_code": "wholesale-sek",
"metadata": { "shopify_company_id": ["456"] }
}
When several pricelists have a price for a product, the buyer gets the lowest one (best-price selection). A company pricelist can inherit from a segment pricelist and hold only the company's negotiated prices; see Inheritance.
Showing the prices
Turn on the Quantaprice pricing app embed once, in the theme editor under App embeds. The embed replaces the prices on every page of the store. In the app, set Theme price CSS selector to the element in which your theme shows prices (in the Dawn theme, .price-item--regular). If the selector is wrong, prices stay hidden.
The embed shows Quantaprice prices only while checkout pricing is turned on, so a shopper never sees a price that checkout would not charge. Until then, the store shows Shopify's prices.
If the app page says the store has not approved the app's permissions, choose Review permissions, approve them in Shopify and return to the app. Until then, the app cannot confirm what checkout charges, so the store shows Shopify's prices.
At checkout
When Checkout pricing is turned on in the app, checkout charges the Quantaprice price for every line:
- If a line's price was changed in the cart, or a line has no Quantaprice price, checkout stops with a message asking the buyer to return to the cart, where the price is fetched again.
- Today's price is fetched when the buyer goes to checkout, from the cart page, the cart drawer or Buy it now.
- A price is valid for 15 minutes after it is fetched. A buyer who reaches checkout with an older price (for example through an express checkout button) is sent back to the cart, where the price is fetched again.
- If Quantaprice cannot be reached, the buyer stays in the cart with a message to try again. Checkout never opens on an old price.
- If the app's own part of checkout fails, checkout stops the purchase, so it never charges Shopify's price. Until the fault is fixed, buyers also cannot add products to the cart or change it. Under If a Quantaprice checkout function fails you can choose Charge Shopify's price instead: purchases then go through at Shopify's price until the fault is fixed. If the app page says checkout does not yet follow your choice, the app applies it within 15 minutes, or at once when you save the choice again.
- Checkout pricing works for carts of up to about 140 lines. Shopify limits how many price changes the app can make in one cart. A larger cart counts as a failure of the app's part of checkout, so it is handled as described above.
- Shopify's discount codes and automatic discounts apply on top of the Quantaprice price, as they do to any Shopify price. Quantaprice does not run cart promotions.
Orders with a wrong price
Orders that do not pass checkout, such as draft orders and orders created by other apps or through the API, are checked when they are created. If a line has a Quantaprice price that does not verify, the order gets the tag qp-price-mismatch and a line in the order note for each such line, usually within a minute. Under When an order has a price that does not verify you can choose Tag, note and hold fulfillment: the order then cannot be fulfilled until you release it in Shopify. The buyer is not charged differently and the order is not cancelled. Fulfillment handled by a third-party service is not held.
The check needs permission to read and mark orders. If the app page says Orders are not checked yet, choose Review permissions and approve them in Shopify. The app reads only the order's lines and prices, never the buyer's name or address, and stores nothing from the order.
The same prices everywhere
The app does not change your prices: it queries Quantaprice like any other system. To see the price a buyer gets, or to price the same company in another channel, send the same price query with the company's pricelists. You can look up a checkout price again later with as_of; see Historical pricing.