> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/upgrade-the-cartridge.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Upgrade the cartridge

Replace the Purple Dot cartridge on an SFCC site with a later version, including the 2024-08-29 release.

For the 2024-08-29 release, which adds SLAS credentials and changes order attributes, also follow [Upgrade to the 2024-08-29 release](#upgrade-to-the-2024-08-29-release).

## Before you start

* You have the cartridge version Purple Dot asked you to install.
* You can upload code and run the catalog and shipping jobs on a sandbox before production.

## Steps

1. Import the new cartridges over the existing Purple Dot cartridges. Keep the same cartridge path from [Install the cartridge](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/install-the-cartridge.md).
2. If you changed cartridge templates or controllers, reapply those changes onto the new version. Purple Dot can provide a diff between versions.
3. Import metadata from the new cartridge if the release includes metadata changes.
4. Run `PurpleDotCatalogExport` and `PurpleDotShippingMethodsExport`. See [Import catalog and shipping rates](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/import-catalog-and-shipping-rates.md).
5. Place a test pre-order on a sandbox and export it.

## Verify

The storefront still shows the pre-order button, and a test export creates an SFCC order.

## Upgrade to the 2024-08-29 release

This cartridge version exports orders with a private SLAS client instead of an SFCC basket. Express checkout becomes the default. See [The cartridge](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/how-purple-dot-works-with-sfcc.md#the-cartridge).

### Before you start the 2024-08-29 upgrade

* You can create a private SLAS client on the SFCC instance.
* You can edit system object attributes in Business Manager.

### Steps for 2024-08-29

1. Create a private SLAS client with scopes `sfcc.ts_ext_on_behalf_of` and `sfcc.orders.rw`. Salesforce documents this in the [SLAS guide](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html). The client must be allowed to call [createOrders](https://developer.salesforce.com/docs/commerce/commerce-api/references/orders?meta=createOrders).
2. Save the client id and secret under **Settings** > **Integrations** for the SFCC store.
3. Upgrade the cartridge by following [Steps](#steps). If you edited the cartridge, apply the diff Purple Dot provides.
4. Under system object attributes, open Product Line Items and remove `purpleDot_shipDates`. Open Orders and remove `purpleDot_isRefunded`. Neither attribute was set.

After the upgrade, exported orders are confirmed and their export status is ready to export. `purpleDot_isPreOrdered` is true. Each pre-order line has `purpleDot_waitlistId` and `purpleDot_lineItemId`. `purpleDot_shipDates` is no longer sent.

### Check the 2024-08-29 upgrade

Export a pre-order whose waitlist is closed. The SFCC order is still created, and the line items include `purpleDot_waitlistId`.

## Troubleshooting

* [The pre-order button is not showing](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/pre-order-button-is-not-showing.md)
* [My exports are failing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/exports-are-failing.md)

## Related

* **Concept:** [How Purple Dot works with SFCC](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/how-purple-dot-works-with-sfcc.md)
* **Do this:** [Install the cartridge](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/install-the-cartridge.md), [Export a pre-order to SFCC](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/export-a-pre-order-to-sfcc.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/upgrade-the-cartridge.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
