Fix multiple typos in medusa docs (#5854)

This commit is contained in:
Sajarin M
2023-12-13 16:21:48 +05:30
committed by GitHub
parent 07107f3565
commit 4710c8ba7e
22 changed files with 42 additions and 42 deletions

View File

@@ -94,7 +94,7 @@ You can create a cart with the following code snippet:
<TabItem value="fetch" label="Fetch API">
```ts
fetch(`<BACKEND_URLL>/store/carts`, {
fetch(`<BACKEND_URL>/store/carts`, {
method: "POST",
credentials: "include",
})
@@ -161,7 +161,7 @@ Otherwise, you can assign it a specific region during creation:
<TabItem value="fetch" label="Fetch API">
```jsx
fetch(`<BACKEND_URLL>/store/carts`, {
fetch(`<BACKEND_URL>/store/carts`, {
method: "POST",
credentials: "include",
headers: {
@@ -236,7 +236,7 @@ You can retrieve the cart at any given point using its ID with the following cod
const id = localStorage.getItem("cart_id")
if (id) {
fetch(`<BACKEND_URLL>/store/carts/${id}`, {
fetch(`<BACKEND_URL>/store/carts/${id}`, {
credentials: "include",
})
.then((response) => response.json())
@@ -302,7 +302,7 @@ You can use the following snippet to update any of the carts data:
<TabItem value="fetch" label="Fetch API">
```ts
fetch(`<BACKEND_URLL>/store/carts/${cartId}`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}`, {
method: "POST",
credentials: "include",
headers: {
@@ -368,7 +368,7 @@ You can do that using the same update operation:
<TabItem value="fetch" label="Fetch API">
```ts
fetch(`<BACKEND_URLL>/store/carts/${cartId}`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}`, {
method: "POST",
credentials: "include",
headers: {
@@ -430,7 +430,7 @@ You can do that using the same update operation:
<TabItem value="fetch" label="Fetch API">
```ts
fetch(`<BACKEND_URLL>/store/carts/${cartId}`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}`, {
method: "POST",
credentials: "include",
headers: {
@@ -492,7 +492,7 @@ To create a line item of a product and add it to a cart, you can use the followi
<TabItem value="fetch" label="Fetch API">
```jsx
fetch(`<BACKEND_URLL>/store/carts/${cartId}/line-items`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}/line-items`, {
method: "POST",
credentials: "include",
headers: {
@@ -568,7 +568,7 @@ To update a line item's quantity in the cart, you can use the following code sni
<!-- eslint-disable max-len -->
```ts
fetch(`<BACKEND_URLL>/store/carts/${cartId}/line-items/${lineItemId}`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}/line-items/${lineItemId}`, {
method: "POST",
credentials: "include",
headers: {
@@ -632,7 +632,7 @@ To delete a line item from the cart, you can use the following code snippet:
<!-- eslint-disable max-len -->
```ts
fetch(`<BACKEND_URLL>/store/carts/${cartId}/line-items/${lineItemId}`, {
fetch(`<BACKEND_URL>/store/carts/${cartId}/line-items/${lineItemId}`, {
method: "DELETE",
credentials: "include",
})

View File

@@ -35,7 +35,7 @@ To send an email or another type of notification method, you must have a notific
---
## Methed 1: Using a Subscriber
## Method 1: Using a Subscriber
To subscribe to and handle an event, you must create a [subscriber](../../../development/events/subscribers.mdx).

View File

@@ -732,7 +732,7 @@ You can create a fulfillment by sending a request to the [Create a Fulfillment A
```tsx
import { useAdminCreateFulfillment } from "medusa-react"
const CreateFuilfillment = () => {
const CreateFullfillment = () => {
const createFulfillment = useAdminCreateFulfillment(
orderId
)
@@ -752,7 +752,7 @@ You can create a fulfillment by sending a request to the [Create a Fulfillment A
// ...
}
export default CreateFuilfillment
export default CreateFullfillment
```
</TabItem>

View File

@@ -156,7 +156,7 @@ Each line item returned in any of the carts requests has total fields related
- `tax_total`: The total tax amount applied on the original price taking into account any applied discounts as well.
- `original_tax_total`: The total tax amount applied on the original price without taking into account any applied discounts.
- `subtotal`: The total of the line items price subtracting the amount in `original_tax_total`.
- `origial_total`: The `subtotal` including the `original_tax_total` amount.
- `original_total`: The `subtotal` including the `original_tax_total` amount.
If tax inclusivity is enabled for the line item, `unit_price` will include the tax amount. The tax amount, which will also be the value of `tax_total`, is calculated using [Medusas formula for tax inclusive pricing](#tax-amount-calculation-formula) based on the line items tax rates. The calculation takes into account any discounts applied on the item, which means the discount amount is deducted from the original price.