Site logo file
API
Search
Phoca.cz Main Site
Phoca Cart
Phoca Cart Demo
Search
Search
Advanced Search
Projects
Joomla
Phoca Cart
Phoca Gallery
Phoca Download
Classes
PhocacartAccess
PhocacartAccessRights
PhocacartAttribute
PhocacartCalculation
PhocacartCaptcha
PhocacartCaptchaRecaptcha
PhocacartCart
PhocacartCartCalculation
PhocacartCartDb
PhocacartCartRendercart
PhocacartCartRendercheckout
PhocacartCategory
PhocacartCategoryMultiple
PhocacartCompare
PhocacartCount
PhocacartCountry
PhocacartCoupon
PhocacartCurrency
PhocacartDate
PhocacartDiscountCart
PhocacartDiscountProduct
PhocacartDownload
PhocacartEdit
PhocacartEmail
PhocacartEmailFactory
PhocacartEmailMail
PhocacartFeed
PhocacartFile
PhocacartFileAdditional
PhocacartFileThumbnail
PhocacartFileUpload
PhocacartFileUploadmultiple
PhocacartFileUploadsingle
PhocacartFilter
PhocacartFormItems
PhocacartFormUser
PhocacartGroup
PhocacartHtmlBatch
PhocacartHtmlFeatured
PhocacartHtmlGrid
PhocacartHtmlJgrid
PhocacartId
PhocacartImage
PhocacartImageAdditional
PhocacartImageMagic
PhocacartLanguage
PhocacartLog
PhocacartManufacturer
PhocacartNewsletter
PhocacartOrder
PhocacartOrderCalculation
PhocacartOrdering
PhocacartOrderRender
PhocacartOrderStatus
PhocacartOrderView
PhocacartPagination
PhocacartParameter
PhocacartPath
PhocacartPayment
PhocacartPdf
PhocacartPlugin
PhocacartPos
PhocacartPosPrint
PhocacartPrice
PhocacartPriceBulkprice
PhocacartPriceHistory
PhocacartProduct
PhocacartRegion
PhocacartRelated
PhocacartRenderAdmin
PhocacartRenderAdmincolumns
PhocacartRenderAdminjs
PhocacartRenderAdminmedia
PhocacartRenderAdminview
PhocacartRenderAdminviews
PhocacartRenderFront
PhocacartRenderIcon
PhocacartRenderJs
PhocacartRenderMedia
PhocacartRenderStyle
PhocacartReview
PhocacartReward
PhocacartRoute
PhocaCartRouterrules
PhocacartSearch
PhocacartSection
PhocacartSecurity
PhocacartShipping
PhocacartSize
PhocacartSpecification
PhocacartStatistics
PhocacartStatisticsHits
PhocacartStock
PhocacartSubmit
PhocacartTag
PhocacartTax
PhocacartText
PhocacartTicket
PhocacartTime
PhocacartType
PhocacartUnit
PhocacartUser
PhocacartUserGuestuser
PhocacartUtils
PhocacartUtilsAdmindescription
PhocacartUtilsBatchhelper
PhocacartUtilsException
PhocacartUtilsExtension
PhocacartUtilsInfo
PhocacartUtilsOptions
PhocacartUtilsSettings
PhocacartVendor
PhocacartWishlist
PhocacartZone
Methods
__construct
setType
calculateBasicProducts
calculateRewardDiscounts
calculateProductDiscounts
calculateCartDiscounts
recalculateCartDiscounts
calculateCartCoupons
recalculateCartCoupons
correctSubTotal
roundFixedAmountDiscount
roundFixedAmountCoupon
correctTotalItems
roundTotalAmount
taxRecapitulation
calculateShipping
calculatePayment
You are here:
Home
Phoca Cart
PhocacartCartCalculation
⇦
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
__construct
()
Show source code of this method:
__construct Source Code
public
setType
(mixed
$type
=
array(0, 1)
)
Show source code of this method:
setType Source Code
public
calculateBasicProducts
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
, mixed
&$stock
, mixed
&$minqty
, mixed
&$minmultipleqty
, mixed
$items
)
Show source code of this method:
calculateBasicProducts Source Code
public
calculateRewardDiscounts
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
, mixed
$rewardCart
)
Show source code of this method:
calculateRewardDiscounts Source Code
public
calculateProductDiscounts
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
)
Show source code of this method:
calculateProductDiscounts Source Code
public
calculateCartDiscounts
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
, mixed
&$cartDiscount
)
Show source code of this method:
calculateCartDiscounts Source Code
public
recalculateCartDiscounts
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
)
Show source code of this method:
recalculateCartDiscounts Source Code
public
calculateCartCoupons
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
, mixed
&$coupon
)
Show source code of this method:
calculateCartCoupons Source Code
public
recalculateCartCoupons
(mixed
&$fullItems
, mixed
&$fullItemsGroup
, mixed
&$total
)
Show source code of this method:
recalculateCartCoupons Source Code
public
correctSubTotal
(mixed
&$item
, mixed
&$total
)
Show source code of this method:
correctSubTotal Source Code
public
roundFixedAmountDiscount
(mixed
&$total
)
Show source code of this method:
roundFixedAmountDiscount Source Code
public
roundFixedAmountCoupon
(mixed
&$total
)
Show source code of this method:
roundFixedAmountCoupon Source Code
public bool
correctTotalItems
(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
roundTotalAmount
(mixed
&$total
)
Show source code of this method:
roundTotalAmount Source Code
public static
taxRecapitulation
(mixed
&$total
, mixed
$shippingCosts
, mixed
$paymentCosts
)
Show source code of this method:
taxRecapitulation Source Code
public
calculateShipping
(mixed
$priceI
, mixed
&$total
)
Show source code of this method:
calculateShipping Source Code
public
calculatePayment
(mixed
$priceI
, mixed
&$total
)
Show source code of this method:
calculatePayment Source Code