Personal restrictions on the customer's access to the catalog
OpenCart module that allows you to hide certain store products individually for each customer. It is possible to hide products of the category or manufacturer for logged customer.
Extensions can be useful if you have non-public products or you need to prohibit the purchase of certain products for specific customers.
Thus, the buyer will not see the specified products in the store, these products for him will not be displayed in the search on the site, in catalogs, categories, modules of products. Also, the buyer will not be able to find the product even on a direct link. But all other users, including guests, can see these products.
To block access to certain products for customer - just enter these products in the form of editing the customer on the Restrict Products tab. There you can restrict access to product categories and products of manufacturers or specify specific products that need to be hidden from the buyer. That is, personal restrictions on the customer's access to the catalog can be imposed on certain categories and brands of products.
Module installation instructions:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Modifications" section and update the cache.
Go to the "Dashboard" section and update the template cache.
Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
Edit module. Enable the status of the module and save the settings.
How to build a variable name or array key in Twig: attribute(context, 'var'~id), square brackets, the .() operator from Twig 3.15, interpolation, and OpenCart compatibility.
An analysis of OpenCart 4.2.x.x development plans: the switch to jQuery 4.0.0, changes to `oc_product_code`, a 15–20 MB reduction in the distribution size, and the module adaptation process.
Daniel Kerr has announced the static OpenCart 5 and the opencart.js project. We analyze the advantages and limitations of this concept, as well as the development of PHP branches 3.0, 4.1, and 4.2.