diff --git a/Classes/Domain/Model/Cart/DetailPageLink.php b/Classes/Domain/Model/Cart/DetailPageLink.php new file mode 100644 index 00000000..463d171e --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLink.php @@ -0,0 +1,55 @@ +pageUid; + } + + public function getExtensionName(): string + { + return $this->extensionName; + } + + public function getPluginName(): string + { + return $this->pluginName; + } + + public function getController(): string + { + return $this->controller; + } + public function getAction(): string + { + return $this->action; + } + + public function isActionLink(): bool + { + if ($this->pageUid && $this->extensionName && $this->pluginName && $this->controller && $this->action) { + return true; + } + return false; + } +} diff --git a/Classes/Domain/Model/Cart/DetailPageLinkFactory.php b/Classes/Domain/Model/Cart/DetailPageLinkFactory.php new file mode 100644 index 00000000..98ad3a76 --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLinkFactory.php @@ -0,0 +1,28 @@ + 0) { + return new DetailPageLink($detailPageUid, $extensionName, $pluginName, $controller, $action); + } + return null; + } +} diff --git a/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php b/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php new file mode 100644 index 00000000..c2e086f5 --- /dev/null +++ b/Classes/Domain/Model/Cart/DetailPageLinkFactoryInterface.php @@ -0,0 +1,23 @@ +handleStockInVariants = $handleStockInVariants; } + + public function getDetailPageLink(): DetailPageLink + { + return $this->detailPageLink; + } + + public function setDetailPageLink(DetailPageLink $detailPageLink): void + { + $this->detailPageLink = $detailPageLink; + } } diff --git a/Resources/Private/Partials/Cart/ProductForm/ProductList.html b/Resources/Private/Partials/Cart/ProductForm/ProductList.html index 30ffbc56..f4229470 100644 --- a/Resources/Private/Partials/Cart/ProductForm/ProductList.html +++ b/Resources/Private/Partials/Cart/ProductForm/ProductList.html @@ -2,11 +2,41 @@ xmlns:cart="http://typo3.org/ns/Extcode/Cart/ViewHelpers" data-namespace-typo3-fluid="true"> + + + + + + {linkedTitle} + + + + + {linkedTitle} + + + + + + {linkedTitle} + + + + - {product.title} {f:if(condition:'{product.feVariant.value}',then:'- {product.feVariant.value}')} + + {product.title} {f:if(condition:'{product.feVariant.value}',then:'- {product.feVariant.value}')} + + @@ -59,7 +89,12 @@ - {variant.title} + + + {variant.title} + + + : {variant.completeSku}
@@ -59,7 +89,12 @@
: {variant.completeSku}