27. Sell in your Facebook and Instagram shop: the checkout link

Your Meta shop shows your products. When a shopper taps Buy, Meta sends them to your own shop to pay. GetDropFlow 0.4.1 has the address that receives them: it puts the chosen products in the shopper's cart and opens your normal checkout. Payment, tax and orders all stay in your Magento shop.

Status (0.4.1): the link was tried on a real shop with a real Meta account (preview and the developer's own shop). Meta's check of the link reads it correctly. Meta decides by itself when the shop and the Instagram shop tab are shown: that takes from some minutes to several days. Screenshots: marked [screenshot] below, they are added by the screenshot list of the release.

Before you start

  1. Tutorial 24 is done: the Meta product file is on and your catalog in Commerce Manager reads it.
  2. Your shop opens with https://. A Facebook Page, and an Instagram professional (business or creator) account linked to that Page.
  3. In GetDropFlow Settings, the Facebook and Instagram file switch is on. The checkout address uses the same switch: when it is off, the address shows your shop's "page not found".

Step 1: The checkout address

It is your shop address plus /dropshipkit/checkout. In Meta's form, type it exactly like the sample Meta shows, with the sample values:

your-store-domain/dropshipkit/checkout?products=ABCD&coupon=EFG

Meta's form puts https:// in front by itself, so do not type it twice. ABCD and EFG are only samples: at checkout Meta replaces them with the real product numbers (the same numbers as in your Meta product file) and the coupon the shopper typed.

Step 2: Give the address to Meta

In Commerce Manager, in the Add checkout URL step of the shop set-up (later: Settings → General → Checkout → Edit), enter the address and save. [screenshot]

Meta then tests the address. In the one test we have seen in a real store's server log, Meta sent two real products from your product file and a made-up coupon code (the sample EFG), to see that your checkout page still opens. GetDropFlow answers that test with the checkout page (a wrong coupon is simply not applied: the shopper pays the normal price and is never stopped).

Step 3: Delivery and free shipping in Meta

In Commerce Manager set the shipping profile (countries, cost, free-shipping amount). The amount you type in Meta is only what Meta shows; your shop's own shipping rules are used at checkout. Keep the two the same. In the free shipping amount field of Meta type the number with cents, for example 39.00. [screenshot]

Step 4: Link Instagram

In Commerce Manager → Settings → General → Sales channels → Link, tick your Instagram account and press Link. Without this step the shop shows on Facebook only. [screenshot] The Instagram tab "Shop" and product tags in posts appear when Meta has approved the shop for Instagram; this can take days.

What happens when a shopper taps Buy

  1. Meta opens …/dropshipkit/checkout?products=SKU:quantity,….
  2. GetDropFlow empties the shopper's old cart (unless Meta says not to), puts the products in with their size and colour, tries the coupon, and opens your checkout page. If any product could not be added (even if the others were), the shopper lands in the cart with a message in plain words, so they can see what is missing; the products that could be added are already in the cart.
  3. Products you added yourself and products imported by GetDropFlow can be in the same cart and are paid together.

Rules

  • One cart, one payment: your own products and imported products always check out together. A cart is never refused with "order separately".
  • Your own products without a shipping charge add 0 to the shipping (no amount is invented). Set the charge on the product, or a default in the delivery settings, if you want one. See tutorial 06.
  • Free shipping: if the cart reaches your free-shipping amount (Magento's own "Free Shipping" method, or the GetDropFlow threshold), shipping is free for the whole cart.
  • A wrong coupon never blocks the checkout: it is not applied and the shopper pays the normal price. (Only when something else goes wrong and the shopper lands in the cart, the cart page also says "The coupon code is not valid.")
  • A product that is out of stock or switched off is left out of the cart and the shopper is told.

If something goes wrong

What you seeWhyWhat to do
Meta says the checkout page cannot loadOld: a wrong coupon sent shoppers to the cart. Fixed in 0.4.1Update to 0.4.1, then press Preview URL in Commerce Manager again; Meta re-checks by itself from time to time
The address shows "page not found"The Meta switch is offTurn Facebook and Instagram file on in Settings
The cart is empty after tapping BuyThe product number in Meta is not in your shop (the product was removed, or the feed is old)Wait for Meta to read the feed again (tutorial 24)
Meta's checkout test says "incorrect product name"The variant title in the file is "Product name - colour / size", but the cart shows only the product nameIn Settings → Product files set "Titles in the Facebook and Instagram file" to "Product name only (the name the cart shows)", save, wait until Meta reads the file again, then test again. Colour and size are still sent in their own fields
No "Shop" tab on InstagramInstagram is not linked as a sales channel, or Meta has not approved it yetStep 4; then wait
The shopper sees "not available" for one itemThat size or colour is out of stockNothing to do

A wrong coupon or a product that is not available is not an error and is not written to the log. Only an unexpected error (the cart could not be prepared at all) is written to GetDropFlow → Logs as "A Facebook / Instagram checkout link could not prepare the cart".