Contributions
Hide products from customer groups for SPPC
"Hide products from customer groups for Separate Pricing Per Customer" was adapted from the "Hide products from groups of customers" contribution (http://www.oscommerce.com/community/contributions,2597) that was written for other contributions. All credits go to the original developer Stonez Chen (see http://forums.oscommerce.com/index.php?showtopic=104149).
This modification enables hiding of products from customer groups on the product level. You can hide for example products that you only sell to special customers or wholesale customers from visitors and retail customers.
Expand All / Collapse All
No new functionality was added. Mainly only updated to be compatible with version 4.2.x (4.2.2 at the moment) of Separate Pricing Per Customer.
A few bugfixes in: includes/column_right.php, catalog/includes/modules/also_purchased_products.php, catalog/includes/functions/general.php.
Added support for a customer group specific osC cache.
The line that fetches the results of the product_check_query in product_info.php was missing in the new file and in the new install instructions. Corrected now.
Version 2 of the hide products [and categories] from customer groups for SPPC (co-author texmaxx) now includes the possibility to also hide a complete category (but not its subcategories!) with all products in that category from customer groups. It will also delete products from the shopping cart when logging in when products that are visible for visitors were added, but should not be bought by the customer group to which the customer belongs.
More code was added to avoid hacking pages to get access to hidden products, or adding them to the shopping cart.
On the admin side it is now much easier to see which products/categories are hidden than it used to be.
When a category is hidden for all customer groups, the behaviour mimics the Enable & Disable Categories contribution (#326).
Now with updated install instructions ;-)
There was a problem with the shopping_cart page, it sends an array of product_id's to application top. I hadn't realize that. Taken care of now.
Made a new mistake, in the file general.php and the install text on that file. Fixed in this version.
The included file with column right missed the box shopping cart. The count of products in a category will now accurately reflect the number of products visible for the particular customer group (change in includes/functions/general.php.)
"Hide products from customer groups for Separate Pricing Per Customer" was adapted from the "Hide products from groups of customers" contribution (http://www.oscommerce.com/community/contributions,2597) that was written for other contributions. All credits go to the original developer Stonez Chen (see http://forums.oscommerce.com/index.php?showtopic=104149).
This modification enables hiding of products from customer groups on the product level. You can hide for example products that you only sell to special customers or wholesale customers from visitors and retail customers.
Note: Contributions are used at own risk.