Back to Phoca Cart project (class list)

Class PhocacartCartCalculation - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/cart/calculation.php
Project: Phoca Cart

Method Summary

public
()

Show source code of this method: __construct Source Code

public
(mixed $type = array(0, 1))

Show source code of this method: setType Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total, mixed &$stock, mixed &$minqty, mixed &$minmultipleqty, mixed $items)

Show source code of this method: calculateBasicProducts Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total, mixed $rewardCart)

Show source code of this method: calculateRewardDiscounts Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total)

Show source code of this method: calculateProductDiscounts Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total, mixed &$cartDiscount)

Show source code of this method: calculateCartDiscounts Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total)

Show source code of this method: recalculateCartDiscounts Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total, mixed &$coupon)

Show source code of this method: calculateCartCoupons Source Code

public
(mixed &$fullItems, mixed &$fullItemsGroup, mixed &$total)

Show source code of this method: recalculateCartCoupons Source Code

public
(mixed &$item, mixed &$total)

Show source code of this method: correctSubTotal Source Code

public
(mixed &$total)

Show source code of this method: roundFixedAmountDiscount Source Code

public
(mixed &$total)

Show source code of this method: roundFixedAmountCoupon Source Code

public bool
(mixed &$total, mixed &$shippingCosts, mixed &$paymentCosts, mixed $options = array())

Parameters
  • \unknown $total
  • \unknown $shippingCosts
  • \unknown $paymentCosts
  • array $options - set specific options - this function is called twice so in second loop just set specific option (e.g. to not create brutto currency again)
Returns
  • bool
Show source code of this method: correctTotalItems Source Code

public
(mixed &$total)

Show source code of this method: roundTotalAmount Source Code

public static
(mixed &$total, mixed $shippingCosts, mixed $paymentCosts)

Show source code of this method: taxRecapitulation Source Code

public
(mixed $priceI, mixed &$total)

Show source code of this method: calculateShipping Source Code

public
(mixed $priceI, mixed &$total)

Show source code of this method: calculatePayment Source Code