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

Wrong sum for variants with stock limit #554

Closed Hobokens closed 1 month ago

Hobokens commented 3 months ago

Bug Report

Current Behavior I have a product with several colour variants. I activated Stock handling in variants. Each variant has a stock of 1. For example, if I select a product with a yellow color and one with a blue color, both color variants are displayed correctly with price in the cart form. The line below, which should show the sum of the two products, shows the correct quantity, i.e. 2, but the sum of the two products is 0.

When listing the total price, the price for the two color variants is missing. In addition, the order button is no longer displayed.

In the detailed view of a product, only one product can be ordered as there is only one product in stock. A corresponding message appears. However, the number of products can be increased in the shopping cart without a corresponding message appearing.

Expected behavior/output The sum should be displayed correctly, as should the order button. It should only be possible to increase the number of products in the shopping cart if there is a corresponding number of products in stock.

Environment

extcode commented 1 month ago

I guess this is an issue related to cart-products. I fixed an issue there. Please try to update to cart-products version 5.0.0 and test the stock handling again.

Hobokens commented 1 month ago

I just tested it with cart_products 5.0.0 The problem still exists for products with variants and stock handling. I have two other products with variants and without stock handling. Here everything is fine.

I tried to remove the stock handling for testing without success.

extcode commented 1 month ago

Can you provide me with more information/screenshots on where exactly the problem occurs? Also via DM in Slack.

Hobokens commented 1 month ago

The problem is solved with the new version for TYPO3 12.