extcode / cart

Cart is a small but powerful extension which "solely" adds a shopping cart to your TYPO3 installation. The extension allows you to create coupons, products with or without variants, special prices.
GNU General Public License v2.0
57 stars 51 forks source link

[FEATURE] Allow link from cart to product detail view #522

Open rintisch opened 5 months ago

rintisch commented 5 months ago

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`:

extcode commented 5 months ago

I add the label 10.x to make clear, that it isn't necessary for coming major release.