Cart implements Registerable, Standard_Service

Cart Handler

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

force_mini_cart_calculation()  : mixed
Workaround - https://github.com/woocommerce/woocommerce/issues/26422
option_price_calculation()  : mixed
Calculates the product addon pricing in the cart.
register()  : mixed
{@inheritdoc}
calculate_options_price()  : float
Calculates the price of the product options.

Methods

force_mini_cart_calculation()

Workaround - https://github.com/woocommerce/woocommerce/issues/26422

public force_mini_cart_calculation() : mixed
Tags
Return values
mixed

option_price_calculation()

Calculates the product addon pricing in the cart.

public option_price_calculation(WC_Cart $cart) : mixed
Parameters
$cart : WC_Cart
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

calculate_options_price()

Calculates the price of the product options.

private calculate_options_price(WC_Product $product, array<string|int, mixed> &$options_data, int $quantity, float $product_price) : float
Parameters
$product : WC_Product
$options_data : array<string|int, mixed>
$quantity : int
$product_price : float
Tags
Return values
float

Search results