Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
shouldPriceBeRecalculated example
$product
->
getShippingFree
(
)
=== true,
$product
->
getRestockTime
(
)
,
$deliveryTime
,
$product
->
getHeight
(
)
,
$product
->
getWidth
(
)
,
$product
->
getLength
(
)
)
)
;
}
// Check if the price has to be updated
if
(
$this
->
shouldPriceBeRecalculated
(
$lineItem
,
$behavior
)
)
{
$lineItem
->
setPriceDefinition
(
$this
->
getPriceDefinition
(
$product
,
$context
,
$lineItem
->
getQuantity
(
)
)
)
;
}
$quantityInformation
=
new
QuantityInformation
(
)
;
$quantityInformation
->
setMinPurchase
(
$product
->
getMinPurchase
(
)
?? 1
)
;