Skip to content

Show imported or manual orders in My Account

Applies toShopify

Steps for

My Account only shows orders placed through the SparkLayer checkout. An order created another way, such as a draft order you made in the Shopify admin or a historic order you imported, needs 2 things before it shows: the b2b order tag, and the B2B - Order Import order metafield set to true.

Before you start

  • SparkLayer installed on your store. Set orders up after installing, so they sync.
  • Each order belongs to the B2B customer who should see it.
  • A list of the orders to show, with their Shopify order numbers.

Show the orders

Add the order import metafield

The order metafield sparklayer.order_import must exist before you can fill it in. In Shopify, go to Settings,Custom data (opens in your Shopify admin in a new tab), click Orders and check for B2B - Order Import. If it isn't there, click Add definition and enter:

FieldValue
Namespace and keysparklayer.order_import
TypeTrue or false (boolean)

See Import order history into SparkLayer.

Set the metafield to true

For one order, open it in Shopify and, in its Metafields card, set B2B - Order Import to true. Click Show all if you can't see it. Save the order.

For many orders, use Matrixify

An import app such as Matrixify (opens in a new tab) sets the metafield on many orders at once. Start from our sample CSV template (opens in a new tab), or put each Shopify order ID in the ID column:

IDMetafield: sparklayer.order_import [boolean]Command
[order-id-here]TRUEUPDATE

Check it worked

  • In SparkLayer, the orders show at SparkLayer Wholesale,Orders (in your Shopify admin).
  • In My Account, signed in as the customer, the orders show in Recent Activity.
  • In Shopify, each order has the b2b tag and B2B - Order Import is true.

If something's not right

  • The order doesn't show. Check it has both the b2b tag and the metafield set to true. One without the other isn't enough.
  • You can't find B2B - Order Import on the order. The metafield definition doesn't exist yet. Add it as in step 1, then set the value.
  • A draft order you created still doesn't show. Draft orders aren't listed in My Account until they're completed. Complete it in Shopify first. See Complete a draft order by hand.

Next steps

Was this page helpful?

Last updated