Upgrade for Shopware 6.7 Compatibility
Code optimization for improved functionality
Consistent logic, price display based on locality principle, greater flexibility.
Use Case Examples:
Case 1: Hide only specific products
Goal: Display all prices except for 3 selected products.
Configuration:
- In the plugin: Activate "Hide prices for selected products"
- Do not select any categories or customer groups in the plugin.
- Enable the "Hide price" checkbox for the 3 desired products.
Result:
- Only the prices of these 3 products are hidden (Product-level mode).
Case 2: Display prices only for a specific category
Goal: Hide all prices except for products in the "Special Offers" category.
Configuration:
- Add the "Special Offers" category as an exclusion in the plugin.
Result:
- Prices for all products are hidden. Only visitors viewing products in the "Special Offers" category can see prices (Global hiding).
Case 3: Display prices only for dealers
Goal: Hide all prices from regular visitors but show them to logged-in dealers.
Configuration:
- Add the customer group "Dealers" as an exclusion in the plugin.
Result:
- Non-logged-in users do not see prices. Once a customer from the "Dealers" group logs in, all prices become visible to them.
Case 4: Combine categories and customer groups
Goal: Always show prices in the "Accessories" category. Dealers should also see prices in all other categories.
Configuration:
- Exclude both the "Accessories" category AND the "Dealers" customer group in the plugin.
Result:
- Normal visitors: Only see prices in the "Accessories" category. All other prices are hidden.
- Logged-in dealers: See all prices across the entire shop.
Case 5: Priority rule in action
Goal: Display prices for the "Special Offers" category, but still hide the price of one specific product within this category.
Configuration:
- In the plugin: Activate "Hide prices for selected products"
- Exclude the "Special Offers" category in the plugin.
- Enable the "Hide price" checkbox for the specific product in the "Special Offers" category.
Result:
- All products in "Special Offers" show their prices, except for the one product where the local setting applies and hides the price.
Fix for forms error with button for Login und Sign Up
Add compatibility with CoePdfDatasheetSw6
Fix installation error after unsuccessful uninstall
Fix search not working on items without categories
Fix hiding of prices when sorting categories with other plugins to consider category custom field
Fixed hiding of prices when sorting categories with other plugins
Fix price being hidden after sorting category
Compatibility with SwagCommercial - AdvancedSearch searchbar
Use category custom field to exclude categories in search bar
New config option `redirect to product detail page after login`
- Login / Register for hidden price redirects to product detail page after login
Login registration button on detail page with hidden prices is no longer displayed for logged in customers.
Show review widget on detail page when hiding review data
Added compatibility with plugin "Additional information on the detail page"
Fix cart button showing up when customer group excluded
Allow rich text formatting in Text instead of the price
Cross-Selling price now hidden regardless of assigned layout
Prices are hidden in subshops for guests (fast orderers).
If a customer group is assigned to a sales channel, this also applies to customers who are not logged in, which is why the price was also displayed to the guests in earlier versions.
Customers also bought (crossselling) is displayed for unassigned product layout.
The login button for hidden prices is displayed with the assigned product layout.
Show prices for the following categories: The shopping cart button and prices are displayed again on the product detail page.
Prices are shown and hidden even if no product layout is assigned. However, it is advisable to assign layouts for the sake of design.
Prices are visible again when you deactivate the Hide prices and Deactivate plugin switch.
page.product.categoryTree rewritten to page.navigationId.
- Fixed hiding the price filter for selected customer groups.
- Changed page.product.categoryTree to page.navigationId in filter-panel.twig and box-standard.twig
- Text modules for listing in box-standard.twig corrected
- box-mininmal.twig expanded from box-stadard.twig.
- Still occurring bug: Prices in Crosselling Articles are not displayed in other selected articles, in which the price should not be visible, because a different #navigationId is pointed to than the one in the listing.
Prices and shopping cart buttons are now also hidden in your own product layouts.
Check the product image url:
{% if product.cover.media.url is defined and product.cover.media.url is not null%}
Checks whether there is a product image. Only if one is available will the plugin pick it up from the product page.
By default, content such as product images are expected in SW 6. For example, if you have product picture, an error will be returned on the product page. In such a case, you should make sure to assign a product image to all products.
uninstall routine removeConfiguration and removeSnippet for Sw 6.4.x revised. Regex removed.
added keepUserData to keep user data.
Hide shopping cart button in listing fixed and hide prices in <metas> fixed.
There is a change from Shopware 6.4.0.0. You can no longer get to the corresponding variables via the always available variables shopware.config and shopware.theme. Instead, there are now Twig functions that call the SystemConfigService internally and return the corresponding config using a key.
Cross-Selling hide prices
- Fixed hide price filter for selected customer groups
- Login registration button via detail page possible for hidden prices (attention: button is still displayed after login if prices are hidden)
- Multiple choices for displaying the prices for categories and customer groups are possible
- Cross-selling prices are hidden. Deleting the snippets when uninstalling that prevented a reinstallation.
- Language snippet for Cross-Sellig added
- Technical identifiers of the additional fields revised (only to be observed when reinstalling or uninstalling v.0.1.1)
Price Unit is hidden in the listing so that the basic price or the basic unit can no longer be seen. Optional outputs, if desired, can be added in the price-unit template under the comments.
# 0.1.0
Release of hide prices and show prices after login (per customer group and categories)