Price Adjustments components

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(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.

Kind: global function

Param Type Description
props Object  
props.setIsCartUpdating function A callback function for setting the updating state of the cart.
props.classes Object CSS className overrides. See priceAdjustments.css for a list of classes you can override.

Example (Importing into your project)

import PriceAdjustments from '@magento/venia-ui/lib/components/CartPage/PriceAdjustments'

CouponCode(props) ⇒ React.Element

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

Kind: global function

Param Type Description
props Object  
props.setIsCartUpdating function Function for setting the updating state for the cart.
props.classes Object CSS className overrides. See couponCode.css for a list of classes you can override.

Example (Importing into your project)

import CouponCode from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/CouponCode";

GiftOptions(props) ⇒ React.Element

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

Kind: global function

Param Type Description
props Object  
props.classes Object CSS className overrides. See giftOptions.css for a list of classes you can override.

Example (Importing into your project)

import GiftOptions from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/GiftOptions";

ShippingMethods(props) ⇒ React.Element

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

Kind: global function

Param Type Description
props Object  
props.setIsCartUpdating function Function for setting the updating state of the cart.
props.classes Object CSS className overrides. See shippingMethods.css for a list of classes you can override.

Example (Importing into your project)

import ShippingMethods from "@magento/venia-ui/lib/components/CartPage/PriceAdjustments/ShippingMethods";

For implementation details View Source.

Talons

The Price Adjustments components use the Price Adjustments Talons to perform side effects and calculate the values for rendering the JSX content.