Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
prepareArticleAssociatedData example
$query
->
execute
(
)
;
}
}
/** * @param array<string, mixed> $data * * @return array<string, mixed> */
protected
function
prepareAssociatedData
(
$data
, ProductModel
$article
)
{
$data
=
$this
->
prepareArticleAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareCategoryAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareSeoCategoryAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareRelatedAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareSimilarAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareAvoidCustomerGroups
(
$data
,
$article
)
;
$data
=
$this
->
preparePropertyValuesData
(
$data
,
$article
)
;
$data
=
$this
->
prepareDownloadsAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareConfiguratorSet
(
$data
,
$article
)
;
// Need to set the tax data directly for following price calculations which use the tax object of the article
protected
function
prepareAssociatedData
(
$data
,
$article
)
{
// Format the posted extJs product data
$data
=
$this
->
prepareArticleAssociatedData
(
$data
)
;
// Format the posted extJs product main detail data
$data
=
$this
->
prepareMainDetailAssociatedData
(
$data
)
;
// Format the posted extJs product main prices data
$data
=
$this
->
prepareMainPricesAssociatedData
(
$data
,
$article
)
;
$data
=
$this
->
prepareAvoidCustomerGroups
(
$data
)
;
// Format the posted extJs product configurator association.
$data
=
$this
->
prepareConfiguratorAssociatedData
(
$data
,
$article
)
;