Basket View Component
A prebuilt basket that uses an HTML table is included.
The table is unstyled and either requires styling within the partial cshtml file or using CSS.
The cshtml partial can be found at the following path:
Views -> Partials -> UmbCheckout -> _StripeBasket.cshtml
To be able to use the Basket View Component you will need to add the following to your _ViewImports.cshtml file
@addTagHelper *, UmbCheckout.StripeThis will allow you to use the following tag helper:
<vc:stripe-basket></vc:stripe-basket>Alternatively, you can load the View Component without using the tag helper:
@await Component.InvokeAsync(typeof(StripeBasketViewComponent))Notices are shown as <p class="umbcheckout-notice" role="status">.
Configurable Properties
You can set the following properties
tableCssClass
table-css-class
The CSS class to be added to the <table> tag
null
productNameColumnText
product-name-column-text
The text shown in the product name column header
Name
productPriceColumnText
product-price-column-text
The text shown in the product price column header
Price
quantityColumnText
quantity-column-text
The text shown in the product quantity column header
Quantity
reduceColumnText
reduce-column-text
The text shown in the product remove column header
Reduce
increaseColumnText
increase-column-text
The text shown in the product increase column header
Increase
removeColumnText
remove-column-text
The text shown in the product remove column header
Remove
reduceButtonCssClass
reduce-button-css-class
The CSS class to be added to the reduce button
null
reduceButtonText
reduce-button-text
The text shown on the reduce button
-
increaseButtonCssClass
increase-button-css-class
The CSS class to be added to the increase button
null
increaseButtonText
increase-button-text
The text shown on the increase button
+
removeButtonCssClass
remove-button-css-class
The CSS class to be added to the remove ase button
null
removeButtonText
remove-button-text
The text shown on the remove button
Remove
emptyBasketText
empty-basket-text
The text shown when the Basket is empty
Your basket is empty!
emptyBasketButtonText
empty-basket-button-text
The text shown on the button that empties the Basket
Empty basket
subTotalText
sub-total-text
The text shown before the SubTotal
Sub Total:
currencyNodeKey
currency-node-key
The key of the node whose umbCheckoutCurrencyCode sets the currency
null
subTotalInformationText
sub-total-information-text
The text shown below the SubTotal
Coupons, Shipping and Tax are calculated on the next checkout step
checkoutButtonCssClass
checkout-button-css-class
The CSS class to be added to the checkout button
null
checkoutButtonText
checkout-button-text
The text shown on the checkout button
Checkout
addToBasketFailedText
add-to-basket-failed-text
The notice shown when a product couldn't be added
That item could not be added to your basket.
pricesChangedText
prices-changed-text
The notice shown, before the changed products' names, when checkout found changed prices
Your basket was updated to current prices before checkout; please check it and continue:
productNameAlias
product-name-alias
The alias which should be used for the product name
null
productAnchorLinkCssClass
product-anchor-link-css-class
The CSS class to be added to the product name link
null
Last updated