docs: update intro of custom item price (#11358)

* docs: update intro of custom item price guide

* small change
This commit is contained in:
Shahed Nasser
2025-02-07 12:41:19 +02:00
committed by GitHub
parent 3a6818e3c4
commit acc1e8e262
2 changed files with 6 additions and 2 deletions

View File

@@ -45,13 +45,17 @@ By default, you can add product variants to the cart, where the price of its ass
To showcase how to add line items with custom prices to the cart, this guide uses [GoldAPI.io](https://www.goldapi.io) as an example of a third-party system that you can integrate for real-time prices. You can follow the same approach for other third-party integrations that provide custom pricing.
You can follow this guide whether you're new to Medusa or an advanced Medusa developer.
### Summary
This guide will teach you how to:
- Install and set up Medusa.
- Integrate the third-party service [GoldAPI.io](https://www.goldapi.io) that retrieves real-time prices for metals like Gold and Silver.
- Add an API route to add a product variant that has metals, such as a gold ring, to the cart with the real-time price retrieved from the third-party service.
You can follow this guide whether you're new to Medusa or an advanced Medusa developer.
![Diagram showcasing overview of implementation for adding an item to cart from storefront.](https://res.cloudinary.com/dza7lstvk/image/upload/v1738920014/Medusa%20Resources/custom-line-item-3_zu3qh2.jpg)
<CardList items={[
{

View File

@@ -5904,5 +5904,5 @@ export const generatedEditDates = {
"references/core_flows/Order/Steps_Order/variables/core_flows.Order.Steps_Order.updateOrderChangesStepId/page.mdx": "2025-01-27T11:43:49.278Z",
"app/troubleshooting/test-errors/page.mdx": "2025-01-31T13:08:42.639Z",
"app/commerce-modules/product/variant-inventory/page.mdx": "2025-02-03T12:19:45.706Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-02-06T10:37:57.282Z"
"app/examples/guides/custom-item-price/page.mdx": "2025-02-07T09:21:11.170Z"
}