This is a discussion on Multi-Stores shop system for OSCMAX within the osCMax Projects Discussion forums, part of the osCMax v2.0 Forums category; A new project_project entry has been added: Multi-Stores shop system for OSCMAX Version 1.4 ============= These modifications allow you to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| | ||||
| ||||
| A new project_project entry has been added: Multi-Stores shop system for OSCMAX Quote:
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
|
#61
| ||||
| ||||
| I do believe that I have fixed this problem, but I don't have time right now to dig up the code. Give me until Monday and I'll post the code snippet you need. |
| Sponsored Links | ||
| ||
|
#62
| ||||
| ||||
| OK, this is real quick, I don't have access to my usual editor so I can't give you line numbers. In /templates/fallback/content/catalog_products_with_images.tpl.php (or wherever your template content is if its not default) find: Code: $products_query_raw = "select distinct p.products_id, p.products_image, p.products_model, p.products_quantity, p.products_weight, pd.products_name, p.manufacturers_id, IF(pg.customers_group_price IS NOT NULL, pg.customers_group_price, p.products_price) as products_price, p.products_date_added, IF(s.status = 1, s.specials_new_products_price, NULL) as final_price, m.manufacturers_name, pd.products_description, cd.categories_name, p.products_tax_class_id, p2c.categories_id from " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS_GROUPS . " pg on pg.products_id = pd.products_id and pg.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id and s.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on p2c.categories_id = cd.categories_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and cd.language_id = '" . $languages_id . "' order by $order"; Code: $products_query_raw = "select distinct p.products_id, p.products_image, p.products_model, p.products_quantity, p.products_weight, pd.products_name, p.manufacturers_id, IF(pg.customers_group_price IS NOT NULL, pg.customers_group_price, p.products_price) as products_price, p.products_date_added, IF(s.status = 1, s.specials_new_products_price, NULL) as final_price, m.manufacturers_name, pd.products_description, cd.categories_name, p.products_tax_class_id, p2c.categories_id from " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS_GROUPS . " pg on pg.products_id = pd.products_id and pg.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id and s.customers_group_id = '" . $customers_group_id . "', " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_PRODUCTS_TO_STORES . " p2s on p.products_id = p2s.products_id left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on p2c.categories_id = cd.categories_id where p.products_status = '1' and p2s.stores_id = " . STORES_ID . " and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and cd.language_id = '" . $languages_id . "' order by $order"; I'm sorry I can't give you a line number, I think if you do a search for "// Number of products to display per page" the query will be right above that. It's somewhere in the third quarter of the code. Hope this helps. |
|
#63
| |||
| |||
| How do i actually access the individual stores? i have installed them but no idea how to access them |
|
#64
| ||||
| ||||
| you need to set it up so that each store is in a different directory. For instance you may have all of your store files in /catalog What I do then is create a new directory, like say /store2. Make symbolic links in /Store2 to every file and folder in /catalog except for the following files: /includes/configure.php /includes/database_tables.php and whatever template you are using. You need actual copies of these files to be different from the main store. create\edit a configure.php to point to the new /store2 instead of /catalog and create\edit the database_tables file to reflect the new configuration table you created when you created a second store in the admin panel. Now, if you were able to access your primary store by going to yourdomain.com you can access your second store by going to yourdomain.com . Hope this helps. |
|
#65
| |||
| |||
| Thanks alot for the info , i have better understanding now, But can you clarify more on what you mean by Quote:
|
|
#66
| ||||
| ||||
| I won't get into what symbolic links are. THink of them as shortcuts that point to the actual files. This was just my method of doing it. THis way if I had to change any code I wouldn't have to change the code for each store. If that is not a concern, simply copying all of the files from your catalog directory into the directory that will be your second store will suffice. just make sure to make the proper changes to the two files i mentioned in your quote. If you need more info.. PM me |
|
#67
| |||
| |||
| got it i understood now , how it works , Quote:
|
|
#68
| |||
| |||
| Have one problem please help: After installing the main site is still @ 100% The sub-site you can see the small image but cant Enlarge also lost all the Mo pics can someone help me out on this. Also another question what can I delete from the sub-site can I get rid of images? Thanks, Adam |
|
#69
| ||||
| ||||
| I still haven't began setipg up multisites myself, but I'll throw a quick question that might help others that need to try it, and that will save me a bit of googling when I need to try it myself. A few years back I had to do something similar but with Postnuke instead of OSCMAX (several domains running off the same Postnuke install). I didn't have shell access on my account, just ftp, so I had to create the symbolic links with PHP. So, the question is, anyone knows how to do it? I know I will eventually find it when I need it since I already did once, but if someone can post the info on the thread in advance, I will probably won't be the only one grateful. |
|
#70
| |||
| |||
| MindTwist, Thanks for the input: I have SSH access and still can't get the images to work. Does anyone have a step by step instructions for how to fix the images. Thanks, Adam |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Posted By | For | Type | Date | |
| multi-store on osc-max by catros - The Web Plate - Webmasters Forums | This thread | Refback | 02-20-2008 11:41 PM | |
| Alice - Rechercher | This thread | Refback | 02-09-2008 01:27 AM | |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi-Stores multiple shop system | michael_s | New osCommerce Contributions | 0 | 02-03-2007 11:10 AM |
| Multi shop store module for oscmax | clauska | osCMax v2 Customization/Mods | 1 | 10-12-2006 07:52 PM |
| Multi Stores contrib in OsC Max-Is it possible? | InaFlap | osCMax v2 Customization/Mods | 0 | 08-05-2006 04:11 PM |
| multi-stores | okatoma | osCMax v1.7 General Mods Discussion | 3 | 02-25-2004 08:58 AM |