diff --git a/Classes/Domain/Model/Cart/DetailPageLink.php b/Classes/Domain/Model/Cart/DetailPageLink.php new file mode 100644 index 00000000..6fe3debf --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLink.php @@ -0,0 +1,43 @@ +pageUid; + } + + public function getExtensionName(): string + { + return $this->extensionName; + } + + public function getPluginName(): string + { + return $this->pluginName; + } + + public function getController(): string + { + return $this->controller; + } +} diff --git a/Classes/Domain/Model/Cart/DetailPageLinkFactory.php b/Classes/Domain/Model/Cart/DetailPageLinkFactory.php new file mode 100644 index 00000000..596a3565 --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLinkFactory.php @@ -0,0 +1,28 @@ + 0) { + return new DetailPageLink($detailPageUid, $extensionName, $pluginName, $controller); + } + return null; + } +} diff --git a/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php b/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php new file mode 100644 index 00000000..1ef8299b --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php @@ -0,0 +1,22 @@ +handleStockInVariants = $handleStockInVariants; } - public function getDetailPageParameter(): array + public function getDetailPageLink(): DetailPageLink { - return $this->detailPageParameter; + return $this->detailPageLink; } - public function setDetailPageParameter(array $detailPageParameter): void + public function setDetailPageLink(DetailPageLink $detailPageLink): void { - $this->detailPageParameter = $detailPageParameter; - } - - public function addDetailPageParameter(string $key, int|string $value): void - { - $this->detailPageParameter[$key] = $value; + $this->detailPageLink = $detailPageLink; } } diff --git a/Resources/Private/Partials/Cart/ProductForm/ProductList.html b/Resources/Private/Partials/Cart/ProductForm/ProductList.html index a40ae0f6..a949d110 100644 --- a/Resources/Private/Partials/Cart/ProductForm/ProductList.html +++ b/Resources/Private/Partials/Cart/ProductForm/ProductList.html @@ -6,13 +6,13 @@