Skip to main content

Cart Lines
API

The APIs for interacting with the cart lines.

The API object provided to this and other customer-account.order-status extension targets.

<[]>
required

A list of lines containing information about the items the customer intends to purchase.

Was this section helpful?

Preact

import '@shopify/ui-extensions/preact';
import {render} from 'preact';

export default async () => {
render(<Extension />, document.body);
};

function Extension() {
const title =
shopify.target.value.merchandise?.title;

return (
<s-text>Line item title: {title}</s-text>
);
}