Skip to content
Malouf Developer Docs

Order Tracking

For users who don’t want to create an account, we have set up an order tracking page on each BC site and created a corresponding API that uses the BigCommerce system.

Order Tracking API

The order tracking api is deployed as a worker on cloudflare. The app was built with Hono. Information on how to set up the repo locally and deploy can be found in the team Box account.

I recommend Postman to test locally. You can make changes to the Postman collection included in the BigCommerce Order Tracking API Box folder.

As noted in Box, you will need the ENV variables to match those set up in the Cloudflare worker. You can find the most current settings using this path: Cloudflare Dashboard > Workers > bc-order-tracking > Settings > Variables. The variables should be put in the Wrangler.toml file at the root of your local project. You can find an example of the toml file in Box.

What about the dev.vars file? Well, that simply can be used to point your local project to use the production environment. This also needs to be added to the root of your project with the following value:

ENVIRONMENT=development

Follow the README in the project for run and deploy commands.

app.use('/*', cors({ origin: ['http://localhost:3000', 'https://lucidmattress.com', 'https://linenspa.com', 'https://www.maloufhome.com', 'https://maloufvip.com'] }))

Order Tracking Page

The order tracking page is a custom page called order-tracking.html in each BC store repo. They are all very similar with minor styling and text adjustments. On submit, the form sends a post request to the Cloudflare worker. As mentioned, when testing changes on your machine please change the fetch request to match the API project’s URL when running locally.

Please note that the software engineering department only updates HQ with a final “Shipped” status, so that is the last status the customer will see.