Download the PHP package actualizer/price-hide without Composer

On this page you can find all versions of the php package actualizer/price-hide. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package price-hide

ActPriceHide - Shopware Plugin

A Shopware 6 plugin that provides advanced price visibility control and purchase-funnel access management. Hide prices and close cart and checkout for non-logged-in users or specific customer groups.

Features

Price-Leak Protection

When prices are hidden, the plugin actively closes every known leak vector so that numeric prices never reach an unauthorised visitor, search engine, or scraper. All of these respect the existing customer-group allowlist: a logged-in customer in an allowed group still sees every price in every channel.

Server-side (introduced in v1.1.x–v1.2.0):

Client-side (introduced in v1.2.0):

Operations (v1.2.2)

Purchase funnel (v1.3.0)

Cart markup renders from the line-item and summary templates, which emit their own price output and share no block with the product templates this plugin overrides. Hiding the cart button removes the entry point, not the route. Every route under frontend.checkout. and frontend.cart. is therefore closed server-side while prices are hidden — matching by prefix so routes added by future Shopware versions are covered by default:

Route group Response while prices are hidden
Landing pages: cart.page, confirm.page, finish.page, register.page 302 to /account/login
XHR fragments: frontend.cart.offcanvas, frontend.checkout.info 204, empty body
Everything else: cart.json, cart mutation, POST /checkout/order, … 403, empty body

/checkout/cart.json returned the full cart as JSON including unitPrice, totalPrice and positionPrice, bypassing every HTML filter. Cart mutation and order placement were reachable as well, so a customer outside the allowed groups could complete an order without ever seeing a price. Both were closed in v1.3.0.

The two widget routes are answered empty rather than redirected because their callers inject the response into the offcanvas or the header container. The redirect is 302, never 301 — the destination depends on plugin configuration and login state. It carries no redirectTo: the core hands a logged-in customer straight back to that route, which for a customer outside the allowed groups bounced between cart and login until the browser gave up (fixed in v1.2.10).

This replaces the <meta http-equiv="refresh"> used up to v1.2.7, which shipped the fully priced cart page and only then asked the browser to leave.

Further leak vectors closed in v1.2.8

Requirements

Installation

Via Composer (recommended)

Manual

  1. Download or clone this plugin into your custom/plugins/ directory
  2. Install and activate the plugin via CLI:

Configuration

  1. Go to Admin Panel → Settings → System → Plugins
  2. Find "Actualize: Price Hide" and click on the three dots
  3. Click "Config" to access plugin settings
  4. Configure customer groups that should see prices
  5. Set up redirect behavior and display options

How it works

  1. Price Visibility Check: The plugin checks if the current user is logged in and belongs to an allowed customer group
  2. Price Hiding: If conditions are not met, prices are hidden across all storefront pages (product listings, detail pages, cart, etc.)
  3. Funnel Access Control: Every route under frontend.checkout. and frontend.cart. is answered with a redirect, an empty fragment or 403 before the rendered response leaves the server
  4. Information Display: Shows informational messages to users when prices are hidden

Technical Details

Architecture

Events Used

Template Extensions

The plugin extends multiple templates to ensure consistent price hiding:

AJAX Compatibility

All template files support both AJAX and normal page requests through dual checking logic:

Translations

The plugin includes translations for:

Translation keys:

Development

Building/Testing

After making changes to templates or translations:

If the client-side dataLayer guard is touched, rebuild the storefront and admin bundles:

Debugging

The plugin respects Shopware's logging configuration. Check your log files for any price hiding logic errors.

Compatibility

Support

For issues and feature requests, please use the GitHub issue tracker.

License

This plugin is licensed under the MIT License - see the LICENSE file for details.

Credits

Developed by Actualize


Made with ❤️ for the Shopware Community


All versions of price-hide with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
shopware/core Version >=6.7.1 <6.8.0
shopware/storefront Version >=6.7.1 <6.8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package actualizer/price-hide contains the following files

Loading the files please wait ...