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 functional changes - simply a roll-up of v203 plus a version of rosemaryann's changes (modified a bit in new_products.php).
I have added a set of files to apply for osCommerce 2.3.1 stores, in the folder catalog 231
They were derived by applying changes based on the instructions for v203 plus rosemaryann's changes to catalog/index.php (changes to new_products.php were no longer needed).
The 2.2 files in this package are v203 plus a version of rosemaryann's changes (modified a bit in new_products.php).
None of the other files, including the installation instructions, have been modified.
FULL PACKAGE for BOTH osCommerce 2.2 and osCommerce 2.3.1 stores
BE CAREFUL TO USE THE RIGHT FILES!
Small fix on sub categories that are hidden. If a subcategory is hidden, but the main category is not, instead of showing a blank screen it will show "No products in this category" message. Also just has "new products" module come up blank if there is no new products or all products in main category are hidden and only shows subcategory image.
NOT full package. Changes only.
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.