D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
appendBasket
applyDiscount
create
delete
deleteNoDemand
doFinalAction
getAvailableFields
getBasket
getCurrency
getDateInsert
getDeliveryLocation
getDeliveryPrice
getDiscount
getDiscountPrice
getHash
getId
getPersonTypeId
getPrice
getPropertyCollection
getRegistryType
getSiteId
getSumPaid
getTax
getTaxLocation
getTaxPrice
getTaxValue
getUfId
getUserId
getVatRate
getVatSum
isAllowDelivery
isCanceled
isChanged
isExternal
isMarked
isNotEmptyBasket
isPaid
isShipped
isUsedVat
load
loadByAccountNumber
loadByFilter
loadPropertyCollection
refreshData
refreshVat
resetData
resetTax
save
setBasket
setPersonTypeId
verify
setBasket
\Bitrix\Sale\Result public \Bitrix\Sale\OrderBase::setBasket( \Bitrix\Sale\BasketBase $basket );
Method associates shopping cart to a new order and refreshes it. WHen attempting to associate shopping cart to an existing order, throws an exception: \Bitrix\Main\NotSupportedException . Non-static method.
Parameters
Parameter | Description | Version |
---|---|---|
$basket | Shopping cart object. |
Exception
- \Bitrix\Main\NotSupportedException
Example
© «Bitrix24», 2001-2024
Up