Product_Addons implements Registerable, Standard_Service

Handles integration with WooCommerce Product Add-ons

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
recalculate_addons()  : mixed
Recalculate the product add-ons.
register()  : mixed
{@inheritdoc}
update_product_price()  : mixed
This function is replicated from class-wc-product-addons-cart.php

Methods

force_mini_cart_calculation()

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

public force_mini_cart_calculation() : mixed
Tags
Return values
mixed

recalculate_addons()

Recalculate the product add-ons.

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

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

update_product_price()

This function is replicated from class-wc-product-addons-cart.php

public update_product_price(mixed $cart_item_data, mixed $quantity, mixed $prices) : mixed
Parameters
$cart_item_data : mixed
$quantity : mixed
$prices : mixed
Tags
Return values
mixed

Search results