Pre-Requisites
- Postman
- Bolt Admin Access
- Bolt’s Twilio Account Access
How to Implement Order Tracking
1. Verify Order Details
- Log in to the Merchant’s BigCommerce Admin.
- Navigate to Shipments.
- Inspect shipment details to verify carrier and tracking information is provided.
2. Create Webhooks
Obtain Division Values
- Log in to Bolt Admin.
- Navigate to Merchant Lookup > [Merchant Account Name] > [Merchant Division Name]
- Obtain the following IDs from the division:
- Public Division ID: Found in Division Summary
- Store Hash ID: Found in the APIHook URL after /store/.
- Consumer Key: Found in relation to bigcommerce_oauth
- Token: Found in relation to bigcommerce_oauth
Submit Postman Test
- Log in to Postman.
- Create a POST request sent to the following URL:
- https://api.bigcommerce.com/stores/<store_hash>/v2/
- Navigate to Headers add the following:
- Accept: application/json
- Content-Type: application/json
- X-Auth-Client: <Consumer Key>
- X-Auth-Token: <Token>
- Navigate to Body and select raw.
- Update the Body with the following:
{ "scope": "store/shipment/*", "destination": "https://api.bolt.com/v1/webhooks/bigcommerce/", "is_active": true }
- Send the request.
- Monitor in DataDog across the next 2 days.
3. Set Up Merchant’s Phone Number
Register With Twilio
- Log in to Bolt’s Twilio account.
- Navigate to the Product sub-account.
- Buy a new phone number.
- Update the Friendly Name to the Merchant’s Division/Storename.
- Update the Incoming Message Webhook to the following:
https://api.bolt.com/v1/webhooks/twilio/sms_response - Copy the phone number and proceed to the next section.
Add Phone to Production Database
- Log in to Bolt’s production database.
- Add the phone number to the merchant_sms_numbers field. Remove any spaces.
- Update the merchant_sms_autoreply field with a custom response provided by the merchant (if applicable).
- In Bolt Admin, ensure the Merchant Division’s support email and Support Page URL are accurate.
4. Set up Tracking Page & Links
- Log in to Bolt’s production database.
- Navigate to the merchant’s merchant_settings table.
- Update the account_hostpage_url to point to a storefront url that has the Bolt account script embedded, such as the homepage.
- Log in to the merchant’s BigCommerce backend.
- Make a copy of the merchant’s current theme.
- Add the following script to their footer (typically found in templates/components/common.footer.html).
<!--Bolt Addition-->
<div>
<div class="bolt-account-login"></div>
<script
id="bolt-account"
type="text/javascript"
src="https://connect.bolt.com/account.js"
data-publishable-key={publishable_key}>
</script>
</div>
<!--End Bolt Addition--> - Refresh the page and preview the theme and inspect element to see that the div is in the right place and that the Bolt button is rendered (even if it’s invisible).
- Publish the theme.
- Navigate to the account_hostpage_url.
- Append ?transactionReference=123&trackingNumber=123&carrier=abc.
- Verify that the signing modal appears.
- Navigate to Storefront > Email Templates in the Merchant’s BigCommerce backend.
- Edit Invoice.html.
- Add the following tracking link beneath %%GLOBAL_PendingPaymentDetails%%:
%%GLOBAL_PendingPaymentDetails%% %%GLOBAL_OrderCommentBlock%% Order Tracking Link %%GLOBAL_ShopPathSSL%%?orderNumber=%%GLOBAL_OrderNumber%%
- Save.
5. Enable Division Feature
- Log in to Datadog and review logs to ensure the following:
- There are no errors
- That shipped orders have tracking numbers
- That Tracking numbers are working properly with tracking vendors.
- Navigate to the Bolt Admin Dashboard and enable the following division features:
- “Send links in to the shopper dashboard when a customer opts in to order notifications”
- “Enable a checkbox for customers to opt in to text based shipping notifications”
- “Send tracking links in order confirmation email and SMS”
- “Forward customer SMSs as support tickets to merchant support email address”
6. Test
- Navigate to the merchant’s storefront.
- Add an item to your cart.
- Open checkout. On the page with delivery options, you should see a checkbox that prompts you to sign up for order updates via text.
- Let the merchant know the feature is on. Example:
- “We’ve turned on this feature for your site, enabling your shoppers to opt into SMS updates and use a branded tracking page! We’ll be monitoring your orders and shipments over the next few days to ensure everything is moving smoothly. If you have any questions, please feel free to email me.”