Friday, April 4, 2025
3 changes · 17.0
Resolved issues and error corrections
Alternative products with a zero price are now shown on eCommerce product pages even when the website blocks sales of zero-priced items. This helps businesses keep related products visible to shoppers while still preventing checkout for items that cannot be sold.
Original PR description
Versions -------- - 17.0+ Steps ----- 1. Configure website to prevent sale of zero-priced products; 2. add a zero-priced product as an alternative product to a product; 3. open the product in eCommerce. Issue ----- The alternative products block with the zero-priced product isn't shown. Cause ----- The `_get_products_alternative_products` method filters out zero-priced products out of its end result. It is the only snippet filter to do this. Solution -------- Don't filter out zero-priced products, as users may still want those products to be visible, even if not available for sale. opw-4443410
Delivery slips no longer show the same product name twice when a product has custom attributes or customer-specific values. This makes delivery documents clearer and more professional for customers and warehouse teams.
Original PR description
Versions -------- - 17.0+ Steps ----- 1. Have a product with a custom attribute; 2. create a sales order with the product; 3. enter a value for the customer product; 4. confirm order & go to delivery; 5. print delivery slip. Issue ----- The product's name is displayed twice. Cause ----- The product's name is used as default description. There is currently logic in place to prevent duplicate printing if there's an exact match. If the product has certain attributes, they will get added to the description, making the strings no longer equal. Solution -------- Instead of checking for exact matches, use `startswith` and `removeprefix` to remove the duplicate product name from the description. opw-4637449
This fixes the website Tabs snippet so that when an active tab is removed, another available tab is selected automatically instead of leaving an empty content area. It also corrects vertical tab spacing and prevents removing tab items in a way that bypasses the intended add/remove controls.
Original PR description
Steps to reproduce: - Enter website edit mode. - Drag and drop the Tabs snippet onto the page. - Click on the third tab to activate it. - Click the minus (-) button to remove the tab. - No other tab is activated after removal, leaving the tab content area empty. This commit ensures that if a tab is removed, the next available tab is activated automatically. This commit fixes another minor issue: When the direction option is set to "vertical", the expected vertical padding was not applied due to an incorrect selector.