Use Ecommerce in the Flow
Â
Â
You can check this "Ecommerce Template" for inspiration after you setup your ecommerce system.
Â
Show Products
Â
In a Send Message step, find "Ecommerce"(1), "Product"(2) and then click "Edit"(3). Buttons added at area 4 will show under each product. And don't forget to put prompt at area 5 in case no product matched.
Â
WARNING - Due to the fact that Facebook allows only 10 cards displayed at one time, you might need to apply a filter to narrow down the products.
Â
choose how many products to show from 1 to 10
select a sorting condition according to the user's choice
set a filter with as many conditions as needed.
Â
Add to Cart
Â
Select "Add to cart" when the button is pressed. It is good to prompt what was added as well. Get information of the added product from the "SHOP" JSON variable.
Â
Show Cart
Â
Find "Shopping Cart" under "Ecommerce", click "Edit". Again, any button put at area 4 will display with every product.
Â
The edit page of "showing cart" is similar to the "showing product"'s. But it's a bit trickier. Because a cart has to show every product for reviewing before checkout.
Â
TIP - if a customer picks more than 10 products but below 20, try using "Newest" to show the first 10 and "Oldest" to show the rest. It's rare but what if it's more than 20? Maybe try listing products by price range or first letter. Alternatively, you can also customize some Send Message steps to show the cart rather than using the "showing cart" function. Access cart information in "SHOP" JSON variable and "$.cart.num" of "SHOP" for items number in the cart.
Â
Remove from cart
Select "Remove from cart" when the button is pressed. You might want to use a Goto step to go to the cart again to refresh, since there are quantities shown with products that differ from showing a static menu.
Â
Empty Cart
Â
Select "Empty Cart" when the quick reply is pressed. Why not button? Because it can be redundant to have more than one empty cart following all products. Besides, "Empty Cart" is in the Action step, not a button action. So you will need to select an Action step as the next step to the quick reply.
Â
Checkout
Â
TIP - to simulate the checkout process, you will have to setup your Stripe Integration as well. Check how to setup Stripe.
Â
We've just talked about it's redundant to have an "Empty Cart" button with every product but why put multiple "Checkout"? This is because, actions in the Action step is processed at the backend while "Checkout" requires the frontend to open a website, the checkout page. So you can only call "Checkout" at a button.
If you don't want to put "Checkout" under each product, try adding one more text-type information after showing the cart:
Â
When users checkout, a list of products will show with quantity and price first, following by an area to leave users' contact details:
Â
Keep scrolling down you will see delivery options, coupon code and a summary of the order.
Â
Finally, by selecting a payment option and clicking "Pay $xx.xx", the page will be directed to Stripe.com. If you are under a text mode, you will see this:
Â
Click "AUTHORIZE TEST PAYMENT" or "FAIL TEST PAYMENT" to test what will it look like when the payment succeeds or fails.
Â
An order confirmation will be sent when payment succeed. Click on the confirmation to view the order detail.
Â
"Buy" Only One Product
Â
"Buy" is actually a feature having nothing to do with the built-in ecommerce system. After setting up your Stripe Integration, users can purchase one product (can be from your Stripe account) with one click on the "Buy" button with no ecommerce system setting at all.
The feature is suitable for ticket product without options or paying subscription fees, etc.
Â
How to use System JSON Variable
There are several system field storing information about the ecommerce system. Usually, the system will tell you where to find according to data like this:
Â
You can access them wherever you see "</>":
Â
System JSON - "SHOP"
"SHOP" stores all information about your ecommerce settings.
Â
System JSON - "ORDER"
"ORDER" stores the user's last order. You only get an order after checkout.
Â
System JSON - "CART"
"CART" stores the user's shopping cart.
Â
System JSON - "SELECT"
When you choose "Select" when a button pressed, the selected item is stored in "SELECT".
SELECT.product:
Â
SELECT.sku:
Â