Edit in GitHubLog an issue

PriceAdjustments

Functions

PriceAdjustments(props)React.Element

PriceAdjustments is a child component of the CartPage component. It renders the price adjustments forms for applying gift cards, coupons, and the shipping method. All of which can adjust the cart total.

CouponCode(props)React.Element

A child component of the PriceAdjustments component. This component renders a form for addingg a coupon code to the cart.

GiftOptions(props)React.Element

A child component of the PriceAdjustments component. This component displays the form for adding gift options.

ShippingMethods(props)React.Element

A child component of the PriceAdjustments component. This component renders the form for adding the shipping method for the cart.

PriceAdjustments is a child component of the CartPage component. It renders the price adjustments forms for applying gift cards, coupons, and the shipping method. All of which can adjust the cart total.

Returns: Parameters

NameTypeDescription
propsObject
props.setIsCartUpdatingfunctionA callback function for setting the updating state of the cart.
props.classesObjectCSS className overrides. See priceAdjustments.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import PriceAdjustments from '@magento/venia-ui/lib/components/CartPage/PriceAdjustments'

A child component of the PriceAdjustments component. This component renders a form for addingg a coupon code to the cart.

Returns: Parameters

NameTypeDescription
propsObject
props.setIsCartUpdatingfunctionFunction for setting the updating state for the cart.
props.classesObjectCSS className overrides. See couponCode.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import CouponCode from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode";

A child component of the PriceAdjustments component. This component displays the form for adding gift options.

Returns: Parameters

NameTypeDescription
propsObject
[props.classes]ObjectCSS className overrides.
[props.giftOptionsConfigData]Objectstore config data. See giftOptions.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import GiftOptions from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions";

A child component of the PriceAdjustments component. This component renders the form for adding the shipping method for the cart.

Returns: Parameters

NameTypeDescription
propsObject
props.setIsCartUpdatingfunctionFunction for setting the updating state of the cart.
props.classesObjectCSS className overrides. See shippingMethods.module.css for a list of classes you can override.

Example (Importing into your project)

Copied to your clipboard
import ShippingMethods from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods";

Source Code: pwa-studio/packages/venia-ui/lib/components/CartPage/PriceAdjustments/priceAdjustments.js

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.