Feature Request
Is your feature request related to a problem? Please describe.
The ProductList.html of the cart shows the list of products that are in the cart.
Most shops out there allow to link from that list back to the detail view of the product. This should be possible with EXT:cart as well.
Describe the solution you'd like
The following static example would create a detail view link to a product from EXT:cart_products:
/* Let's say that 50 is the PID of the detail view */
<f:link.action
pageUid="50"
extensionName="cartproducts"
pluginName="products"
controller="product"
arguments="{product: product.productId}"
>
The parameters pageUid, extensionName, pluginName and controller needs to be passed.
My idea is to create a variable detailViewParameter in Classes/Domain/Model/Cart/Product.php which is an array (or object?) which can hold all these parameters.
In EXT:cart_products`:
Classes/Controller/ProductController.php pass the pageUid to the view.
Resources/Private/Templates/Product/ShowForm.html will use this pageUid and set it as hidden field so that the value can be passed to the addAction().
Classes/EventListener/Create/CreateCartProduct.php sets the parameter extensionName, pluginName and `controller.
Feature Request
Is your feature request related to a problem? Please describe.
The ProductList.html of the cart shows the list of products that are in the cart.
Most shops out there allow to link from that list back to the detail view of the product. This should be possible with EXT:cart as well.
Describe the solution you'd like
The following static example would create a detail view link to a product from EXT:cart_products:
The parameters
pageUid,extensionName,pluginNameandcontrollerneeds to be passed.My idea is to create a variable
detailViewParameterinClasses/Domain/Model/Cart/Product.phpwhich is an array (or object?) which can hold all these parameters.In EXT:cart_products`:
Classes/Controller/ProductController.phppass thepageUidto the view.Resources/Private/Templates/Product/ShowForm.htmlwill use thispageUidand set it as hidden field so that the value can be passed to theaddAction().Classes/EventListener/Create/CreateCartProduct.phpsets the parameterextensionName,pluginNameand `controller.