These modifications allow you to assign specific products and categories to multiple stores that you define in the administration panel. The products and categories
will not be able to be manipulated via the web-browsers address bar (like in most
other multi-shop implementations). Also, there is no "one store to rule them all".
You decide which categories you want displayed on which store-front. You decide
which products in that category you want displayed on which store-front. Shopping
carts are NOT shared between the sites.
Legend: 
Download

Report
This solution was posted by Jean Pierre in the forums at: http://forums.oscommerce.com/index.php?s=&showtopic=70365&view=findpost&p=1079735
VERSIONS AFFECTED: Multistores version 2.0 (not v 1.9), any maybe only needed for mysql 5.xx and/or php 5.xx versions.
Problem: When clicking on the "New Products" button in the Specials page the following error occurs:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'pd where p.products_id = pd.products_id and pd.language_id = '1' order by prod' at line 1
select p.products_id, pd.products_name, p.products_price from (products p, products_description) pd where p.products_id = pd.products_id and pd.language_id = '1' order by products_name
[TEP STOP]
Solution: Edit catalog/admin/includes/function/general.php line 209 (The parenthesis ")" before "pd" should be AFTER "pd".)
Original code: $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_price from (" . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " ) pd " . ($admin_allowed_stores[0] == '*' ? " " : " LEFT JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id ") . "where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' " . ($admin_allowed_stores[0] == '*' ? " " : " and p2s.stores_id in(" . implode(',' , $admin_allowed_stores) . ") ") . "order by products_name");
Corrected code: $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_price from (" . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd )" . ($admin_allowed_stores[0] == '*' ? " " : " LEFT JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id ") . "where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' " . ($admin_allowed_stores[0] == '*' ? " " : " and p2s.stores_id in(" . implode(',' , $admin_allowed_stores) . ") ") . "order by products_name");
Thanks to Jean Pierre
Incidentally: This problem does not occur in Hobzilla's v 1.9. Line 209 in his file is as follows and also works:
$products_query = tep_db_query("select p.products_id, pd.products_name, p.products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd " . ($admin_allowed_stores[0] == '*' ? " " : " LEFT JOIN " . TABLE_PRODUCTS_TO_STORES . " p2s ON p.products_id = p2s.products_id ") . "where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' " . ($admin_allowed_stores[0] == '*' ? " " : " and p2s.stores_id in(" . implode(',' , $admin_allowed_stores) . ") ") . "order by products_name");
File attached is precisely the same as this text
Fix several queries MYSQL5.x in admin section
#1054 - Unknown column 'xxxx' in 'on clause'
Full package (excluding the patch below)
Price Schedules updates & bug fixes. Specials never used the pf class.
v1.9 - 10/27/06
Update stock code to use osCommerce 2.2 Milestone 2 Update 060817
Fix several queries with mySQL 5.x syntax
Included percentage based group discounts in stock MS
Add warning when renaming configuration table
Identify the "Super-Admin" in admin side
Disregards the last package, forgot to edit the admin/languages/XXX.php
Now are the right ones included.
Full package.
Nederlandse taal voor multistore 1.8
Let op! admin/customers.php moet nog aangepast worden naar eigen configuratie, dit geld ook voor de engelse !! (rondom lijn 40)
Duitse zijn alleen de aanpassingen in het engels. Dit dient nog vertaald te worden.
--------
Dutch language files for multistore 1.8
admin/customers.php should be edited for your needs starting around line 40
---
NL und deutsche sprache fuer multistore 1.8.
NL ist complet, nur deutsche sprache soll noch uberstetzt werden.. Habe nuer die extra englische text zugefeugt...
In admin/customers.php soll man ab linie 40 beachten in jeden sprache dass mann dass nach eigener config. ersetzen soll!!
Includes default directory structure with files that were updated.
Allows Customer Groups to be based on % discount (or % increase with a negative (-) discount) upto (99.9)% discount and 999% increase (-999)% OR based on the pre-existing price-schedule. The Customer group cannot be both. When you create a customer group if you enter in anything in the % discount textbox, it will use that. If you want to use the price schedule for a group leave that field blank. You can switch back and forth between the customer group typ with the green/red button under admin->customer->customer groups
This is ONLY the easypopulate file, you will want to use the base 2.79 version of Easy Populate submitted by myself on March 1st, 2006. Located here:
http://www.oscommerce.com/community/contributions,500
v1.8 - 02/07/06
Update stock code to use osCommerce 2.2 Milestone 2 Update 051113
Don't allow anyone but super-admin to view hidden configuration (gID=6)
In categories move & copy to product display enabled categories for store
and not just categories that are the same as the distributor assigned
to that admin
Bug fix for orders_products distrib_id (credit: ian oda - tahuti)
Bug fix for product price schedules
Bug fix for customer groups in admin (credit: Ole Hoppe - aragorn108)
The latest release only in zip format - for those who have never unpacked a tar file before.
includes single text file indicating 2 lines of code changes that if unmodified would give tep_stop errors.
v1.7 - 02/01/05
--------------------------
- Updated Admin to allow multiple logins
- Specials _really_ work now per store
- Added Quantity Pricing module that is customer based
- Pricing Schedules available per store
- Shopping cart box not displaying for non-logged in users
- Added Distributors for ease of administration of products & categories
- Included language multi-stores functionality
- Code optimization
- Display logged in user in title bar
- Don't show language box if only 1 language is enabled for store
- Auto populate lang_to_store values for default store
- Moved administration side catalog paths into DB
- Catalog logo pulled from Store logo (if exists)
Yes it is finally here the update to version 1.? and 1.? from 1.4!! Hopefully here to stay.... that is!
This is the modified version of the contribution newsdesk_v1.48.3 originally created by Carsten.
I have only added M-S functionality and renamed it newsdesk_v1.48.4 with modified install instructions, .sql file, and version changes. The two most notable bugs are listed in the version changes.
v1.4 - 06/24/04
Updated also_purchased_products
Added function to rolldown Store enable to subcategories & products of a top category in admin
Added store enable at category & product creation time
Fixed bugs in store creation / update
Use either v1.3 or v1.3b this file effectively makes it v1.3c. Simply overwrite catalog/includes/modules/new_products.php.
Fixed bug in sql statement on catalog/includes/modules/new_products.php (yes, again!)
v1.3b - 06/13/04
Fixed bug in sql statement on catalog/includes/modules/new_products.php
v1.3 - 06/07/04
Moved stores admin into its own box
Moved admin configuration selector into configuration section
Fixed Order History bug in Account
Fixed Stores to Specials Bug
There was an extra comma in the update.sql file in the last INSERT into STORES table. Please use this file to update your database instead of update.sql included in v1.2 (or remove the extra ,
'configuration', '1', ,'1', now());
becomes:
'configuration', '1', '1', now());
v1.2 - 02/06/04
Updated Installation Instructions
Included manufacturers_to_stores ability
Added super-admin functionality
Fixed several bugs relating to cPath being shown when product wasn't enabled for store
Optimized display of boxes relating to products
v1_1 zip file did not upload correctly.
Please download this file instead of one below.
v1.1 - 01/08/04
Updated Installation Instructions
Included specials_to_stores ability UPDATED/ADDED:
- catalog/specials.php
- catalog/includes/database_tables.php
- catalog/includes/boxes/specials.php
- admin/specials.php
- admin/includes/database_tables.php
- admin/includes/languages/english/specials.php
- ADDED specials_to_stores table creation in update.sql
Fixed bug in update.sql syntax for ALTER TABLE orders
Fixed bug where Store image wasn't displaying
- admin/categories.php
ENJOY!
These modifications allow you to assign specific products and categories to multiple stores that you define in the administration panel. The products and categories
will not be able to be manipulated via the web-browsers address bar (like in most
other multi-shop implementations). Also, there is no "one store to rule them all".
You decide which categories you want displayed on which store-front. You decide
which products in that category you want displayed on which store-front. Shopping
carts are NOT shared between the sites.