# custom code

Subject: Line - Level Order Cancellation

Hi Team,

We want to implement a functionality on our Shopify store which would allow customers to 'Cancel' a particular line-item from a placed order. 'Cancel' button is visible to the customer on the frontend until the order gets fulfilled.

Right now, Shopify does not have a native functionality for line-item level order cancellation.

So, if a customer wants to cancel a specific product from an order which contains other sets, the entire order gets cancelled. We don't want that to happen.

We found your app on Shopify Appstore and we think that the functionality that you offer may help us add this 'Line-item level cancellation' feature on our store.

Let us know if you have any custom template available, or can you get this done for us? Also let us know if you offer any local support for clients in ████.

Our Shopify store URL: https\://████.myshopify.com/

Thanks and Regards, ████

***

Hi ████! :) Thanks for getting in touch about this.

> Let us know if you have any custom template available, or can you get this done for us?

Sounds like a job for custom Mechanic code! :) We've got documentation about this process here:

<https://learn.mechanic.dev/custom>

For background: I can help with platform issues and account questions, but we've found that adding custom code services to that list isn't sustainable for us. Instead, we've prepared a list of Mechanic implementers, all ready to work with you:

<https://partners.mechanic.dev/>

Have a look, and let me know if you've got questions about the process!

> Also let us know if you offer any local support for clients in ████.

We only offer email support; we don't offer local support anywhere. I do absolutely suggest joining our community Slack workspace, where you can compare notes in realtime with other Mechanic users! We-the-staff hang out there too. :)

<https://slack.mechanic.dev/>

Hope to see you there! :)

Cheers,

\=Isaac


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.lightward.guide/support/samples/custom-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
