Skip to content

Changelog — Customer Specific Discounts

All notable changes for end users.


1.5.10

Released 2026-04-24

Bug Fixes

  • SwkwebProductSet option double discount on the Set configuration page: Customer-specific discounts on Set option products are now applied exactly once. Previously the discount was applied both by the entity-loaded subscriber and by the SwkwebProductSet expression handler, which compounded the percentage on the option price (5% became 9.75%).
  • Wrong cart total for orders containing SwkwebProductSet line items: The cart was applying the customer discount to the full Set total, including the option discount that the expression handler had already baked in, so the cart total was too low by option_price * discount%. The discount line item now only covers the main product portion of the Set; option discounts remain in the option line prices.

1.5.9

Released 2026-04-24

Bug Fixes

  • Discount in product listings: The customer discount is now applied reliably on every product render path — including CMS product-box / product-slider slots, cross-selling, widgets and quickview. Previously the discount badge was rendered in listings while the displayed price stayed at the original value. The subscriber now hooks sales_channel.product.loaded (priority -100) and mutates CalculatedPrice, tier prices and CalculatedCheapestPrice in place.
  • Plugin update from 1.5.6 / 1.5.7: Fixed SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'webla_customer_discount_global_discount' for key 'uniq.custom_field.name' on plugin update. Existing custom field set, field and relation IDs are now preserved during the upsert so it acts as an update instead of an insert.
  • Store documentation link: External documentation link in the Shopware Store description now uses HTTPS.

1.5.8

Released 2026-04-13

Bug Fixes

  • Custom Fields on Update: Product, customer, and customer-group discount custom fields added in 1.5.7 are now installed on plugin update, so existing shops receive them without requiring a reinstall.
  • Migration Command Context: The migration command now uses Context::createCLIContext() for correct CLI execution.
  • Documentation: Removed the support contact section from docs referenced by the store listing to comply with Shopware Store guidelines.

1.5.7

Released 2026-03-20

Bug Fixes

  • Store Quality Compliance: Custom database tables (webla_customer_discount_extension, webla_customer_group_discount) are now properly dropped on full uninstall when "Keep user data" is unchecked. Added rel="noopener" to external links in store descriptions. Resized plugin icon to required 112×112 px.
  • Install Manual: Replaced disallowed <code> HTML tags with <strong> in store installation manuals to comply with Shopware Store tag restrictions.

1.5.6

Released 2026-03-20

Bug Fixes

  • Product Set Discount Display: Fixed customer-specific discounts not being applied to individual product options within the Set Konfigurator (SwkwebProductSet). Option boxes now show the correct discounted price and the total "Gesamtpreis" reflects the discount. Works for initial page load, AJAX variant switching, and CMS rendering. The integration is fully optional — no dependency on the Set Konfigurator plugin.

1.5.5

Released 2026-03-04

Bug Fixes

  • OscWare Integration: Added a synthetic productNumber (formatted as DISC-{productNumber}) to each discount line item's payload, preventing middleware like OscWare from merging all discount positions into a single collective entry (Sammelposition) in Lexoffice/Lexware.

1.5.4

Released 2026-03-03

Bug Fixes

  • Service Configuration: Fixed an incorrect service ID for the sales channel product repository (sales_channel_product.repositorysales_channel.product.repository), which caused a dependency injection error on container build.

1.5.3

Released 2026-03-03

Bug Fixes

  • Cart Hash Mismatch: Fixed a "cart has changed" error in Shopware 6.7+ when the "Separate Discount" option is active. Discount line items were previously created with random UUIDs on every cart recalculation, causing the cart hash to change between checkout and order placement. Discount line items now use a deterministic, stable ID derived from the product they apply to.

1.5.2

Released 2026-02-17

Bug Fixes

  • Cart Product Loading: Fixed issue where product entities were not reliably available in cart data after page reload or from cache, causing category/product stream discount matching to fail. Now fetches products directly from repository as fallback to ensure consistent discount application.

Improvements

  • Performance: Optimized product loading to only fetch necessary IDs without loading full category and stream associations, reducing database overhead.

1.5.1

Released 2026-02-17

Bug Fixes

  • Cart Discount Matching: Fixed an issue where customer group category/product stream discounts were not properly detected in the cart, causing the global group discount to be applied instead of the more specific targeted discount. The cart now correctly loads product entities to match category and product stream IDs, ensuring consistent discount behavior between product pages and cart.

1.5.0

Released 2026-02-17

New Features

  • Customer Group Category Priority Setting: New configuration option to give absolute priority to customer group category/product stream discounts. When enabled, targeted category or product stream discounts assigned to customer groups take precedence over all other discount types, bypassing the discount priority mode. This ensures specifically assigned group discounts always apply, regardless of global settings.

1.4.1

Released 2026-02-13

Improvements

  • Set Konfigurator Compatibility: Added support for product sets from the Set Konfigurator plugin. Product sets now receive customer-specific discounts and display savings correctly in cart and checkout.

1.4.0

Released 2026-01-28

New Features

  • Guest Discounts: Apply default customer group discounts to non-logged-in users. Enable via the new "Apply default group discounts to guests" config option. Perfect for showing promotional prices to all visitors without requiring login.

Improvements

  • Shopware 6.7+ Compatibility: Improved caching implementation using the new HttpCacheCookieEvent for better compatibility with Shopware 6.7 and future versions.

1.2.0

Released 2026-01-26

New Features

  • Customer Group Discounts on Categories/Product Groups: You can now assign discounts for entire customer groups on specific categories or dynamic product groups. This complements the global group discount with targeted discounts.

Improvements

  • Product Detail Page: Discounts are now correctly displayed on the product detail page, even when CMS elements like the buy box are used.

1.1.0

Released 2026-01-25

New Features

  • Product-Specific Discounts: Set discounts directly on individual products via custom fields.
  • Global Customer Discounts: Give individual customers a flat discount on all products.
  • Extended Priority Modes: New "Most specific first" mode for precise discount control.
  • Show Total Savings: Optional "You save X" message in checkout.
  • Original Price Strikethrough: Display the original price visually crossed out.

Improvements

  • Improved Performance: Optimized caching for faster discount calculation.
  • Better Admin Interface: Clearer presentation of customer discounts.

1.0.1

Released 2026-01-20

Bug Fixes

  • PHPStan Compatibility: Fixed type errors for strict PHP analysis.
  • ESLint Validation: Corrected JavaScript formatting in admin.

1.0.0

Released 2026-01-15

New Features

  • Individual Customer Discounts: Assign discounts per customer on categories or dynamic product groups.
  • Global Customer Group Discounts: Set flat discounts for entire customer groups.
  • Flexible Priority Control: Choose between "Higher wins", "Lower wins", or "Individual first".
  • Discount as Line Item: Option to display the discount as a separate line item.
  • Customizable Labels: Configurable discount labels with variables.
  • Compatibility with WebLa_ProductGroupDiscount: Automatic support for existing discount data.

Version History Summary

Version Release Date Highlights
1.4.1 2026-02-13 Set Konfigurator compatibility
1.4.0 2026-01-28 Guest discounts, Shopware 6.7+ caching improvements
1.2.0 2026-01-26 Customer group discounts on categories/product groups
1.1.0 2026-01-25 Product discounts, global customer discounts, extended priority modes
1.0.1 2026-01-20 Bug fixes for PHP and JS validation
1.0.0 2026-01-15 Initial release

Upgrade Notes

Upgrading to 1.4.0

After updating: 1. Clear the cache under Settings → System → Caches & Indexes 2. The new "Apply default group discounts to guests" setting is available in the plugin configuration 3. No action required for the Shopware 6.7+ compatibility improvements - they are applied automatically

Upgrading to 1.2.0

After updating: 1. Clear the cache under Settings → System → Caches & Indexes 2. The new customer group discounts can be found in customer group settings under "Group Discounts"

Upgrading to 1.1.0

After updating: 1. Clear the cache 2. New settings are available in the plugin configuration 3. Product discounts can be set via Product → Custom Fields

Compatibility

Plugin Version Shopware Version PHP Version
1.4.1 6.5.0 - 6.7.x 8.1+
1.4.0 6.5.0 - 6.7.x 8.1+
1.2.0 6.5.0 - 6.7.x 8.1+
1.1.0 6.5.0 - 6.7.x 8.1+
1.0.x 6.5.0 - 6.7.x 8.1+