2.4.1
Última8 correcciones1 de seguridad
Corregido
- Product Bundle with a variable main product failed with "Sorry, this product is unavailable". The bundle no longer depends on the state of the page add to cart button, instead every checked variable product of the bundle needs a selected variation
- bundle discount was not applied in the cart for variable bundle items
- bundle prices with decimals and decimal discount percentages were rounded down in the Product Bundle block
- variable products of a bundle removed the add to cart button and quantity field from add to cart forms rendered after the bundle on the same page
- Product Image And Gallery block used the variation form of another product on the page (related products, query loops), so variation images did not switch and the first slide could get an image of another product. The gallery now follows only the variation form of its own product
- variation images in query loops set the product image to src="undefined" when the variation and its product have no image, the card keeps its image or placeholder now
- placeholder image of the Product Featured Image block lost the wp-post-image class, so selecting a variation of such product in a query loop failed with TypeError: Cannot read properties of null (reading 'dataset')
- JavaScript error in GSPB_quantityUpdate when a quantity input is outside of a form, for example in floating cart panels of themes
Seguridad
- Product Bundle prices and discounts are calculated on the server. Prices and discounts sent from the browser are ignored, before a crafted request could add products to the cart at any price. The bundle discount is applied only to items of the bundle while its main product is in the cart