Shopware Bug: Net Price Customer Groups Displaying Incorrect Strikethrough Prices Due to Rounding

Shopware Bug: Net Price Customer Groups Displaying Incorrect Strikethrough Prices Due to Rounding

A recent discussion in the Shopware forum brought to light a significant issue affecting how prices are displayed for customer groups configured to see net prices. Users reported that some articles were incorrectly showing a strikethrough price alongside the current net price, even when both values were identical. This created confusion and an unintended impression of a discount where none existed.

The initial report from user mab24 described the problem: after setting up a customer group to display net prices in the backend, certain articles would show a strikethrough price equal to the actual net price. Despite thorough checks, no differences were found in the stored prices of affected articles, leading to initial confusion about the root cause.

Community member Max_Shop quickly pointed towards a potential rounding issue, a known challenge in earlier Shopware versions where minor discrepancies in decimal places could trigger an unintended strikethrough display. This led to further investigation into how prices were being handled, especially concerning decimal precision.

mab24 then discovered a crucial detail: by manually adjusting the advanced price rules for the affected customer group, specifically by removing the last two decimal places (from four to two) in the net price, the incorrect strikethrough disappeared. This confirmed that the issue was indeed related to how Shopware was handling and rounding decimal places in price calculations. However, this manual fix proved unsustainable for stores integrated with systems like JTL, as the changes were overwritten with each synchronization.

The discussion gained clarity when Max_Shop provided a link to an existing GitHub issue (shopware/shopware/issues/16687). The issue, titled "List price rounding mismatch causes discount percentage to be shown for identical storefront prices," perfectly described the problem: the list price was being rounded to two decimal places, but the strikethrough price was not consistently rounded in the same manner. This discrepancy, even if minute (e.g., 50.00 vs. 50.005), caused Shopware to perceive a difference and display a discount percentage.

The forum thread concluded with positive news: mab24 confirmed direct contact with Shopware, stating that the problem is being addressed with high priority and an official fix is expected in an upcoming update. This is a crucial update for merchants, especially those operating with B2B customer groups or requiring precise net price displays, and those integrating with external ERP/PIM systems like JTL.

This insight highlights the importance of consistent price rounding across all display and calculation mechanisms within e-commerce platforms and the value of community engagement in identifying and escalating such critical bugs.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools