extcode / cart_products

CartProducts is a TYPO3 extension and provides an own data storage for simple and configurable products. Products can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
7 stars 25 forks source link

[BUGFIX] Fix teaser plugin for translated products #103

Closed tdeuling closed 1 month ago

tdeuling commented 2 years ago

Change repository method in order to get a result for translated products in teaser plugin.

rintisch commented 1 month ago

I can recreate the problem but the solution does not work. The problem is that a translated product uses a overlay. This means that the uid is still is the one of the original product. As a result the orderByField method of the ProductRepository will never return anything as it has products with the original UIDs but as other parameter gets the UIDs of the translated products: https://github.com/extcode/cart_products/blob/b69441b57c4f981cd1e59d6d70e61beaff55c7bd/Classes/Domain/Repository/Product/ProductRepository.php#L92-L110

I will make a PR.

rintisch commented 1 month ago

Closing this in favour of #206