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! |
#11
| ||||
| ||||
| Not sure what you mean -BEFORE OSCMax 2.0??? Changes.txt file: Quote:
Quote:
|
|
#12
| ||||
| ||||
| Quote:
In Changes.txt Quote:
|
|
#13
| ||||
| ||||
| Quote:
Did you follow the instructions? Like the part about loading the SQL file? |
|
#14
| |||
| |||
| Yes I missed the part in the installation text refereing to OSCMAX2. Other than that I have followed the installation instructions which is fairly straightforward as I see it: (1) Install Vanilla OSCMAX2_RC3_0_1 (2) Copy Multi-Store 1.4 files onto the server replacing any existing files (3) Run the supplied Multi-Store 1.4 SQL to add new tables and alter existing ones. I have now set up 3 test stores from scratch with separate databases. londondeskshop.co.uk -----> Vanilla OSCMAX2_RC3_0_1 liverpooldeskhop.co.uk -----> OSCMAX2_RC3_0_1 with Multi Store and SQL updates glasgowdeskhop.co.uk -----> OSCMAX2_RC3_0_1 with Multi Store but without SQL updates (For future reference - you may not be able to see these test domains from July 2007 onwards) The vanilla version (londondeskshop.co.uk) seems to work fine. The multi-store version (liverpooldeskshop.co.uk) fails as described. The multi-store version (glasgowdeskshop.co.uk) without SQL fails even to get started. Now looking at the SQL that is failing in the "correctly" installed multi-store, the problem table specials_retail_prices (s) does not contain field categories_to_stores (clearly a multi-store related field). The update SQL provided does not alter the specials_retail_prices and its not a field included in vanilla OSCMAX2_RC3_0_1 so obviously that is never going to work. The easy fix would be to use phpmyadmin to add the missing field but it does not give me much confidence that these changes have been tested. Adding the field will clearly stop this particular SQL problem, but my worry would be there may be more SQL problems downstream or the code might not be working as intended. Now if you think I have installed it wrong please feel free to let me know where I have gone wrong. |
|
#15
| |||
| |||
| Quote:
Now looking at the SQL that is failing in the "correctly" installed multi-store, the problem table specials_retail_prices (s) does not contain field specials_id. |
|
#16
| |||
| |||
| Out of curiosity I added the missing specials_id field (on yet another instance of OSCMAX2 with Multi-Stores) and sure enough I got another SQL error, however this time the actual syntax of the failing SQL is invalid, not just out of sync with the table changes. If jpf has actually got multi-stores working with OSCMAX2, I can only conclude that what has been included in the contribution is not what was working ....... unless I have really screwed up somewhere and I am missing something obvious. Next Failure 1109 - Unknown table 'p2s' in where clause select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from products p, products_description pd, specials s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = p2s.products_id and p2s.stores_id = '1' and s2s.stores_id = '1' and s.specials_id = s2s.specials_id and pd.language_id = '1' and s.status = '1' and s.customers_group_id = '0' order by s.specials_date_added desc limit 10 |
|
#17
| |||
| |||
| mlloyd Did you resolve your problem? I am about to tackle this one and would like to side step any errors if possible. |
|
#18
| |||
| |||
| bkpie I didnt receive any further response from JPF, either to acknowledge the problem exists or to confirm that he is looking into it. I have abandoned oscMAX for the moment - if you get anywhere with multi-store or JPF fixes it let me know. Maybe a fresh pair of eyes might help. |
|
#19
| |||
| |||
| Hi all with the unknown tables problems - there is an error in includes/boxes/specials.php the following is missed out twice: , " . TABLE_PRODUCTS_TO_STORES . " p2s, " . TABLE_SPECIALS_TO_STORES . " s2s so around line 32 the code should read: // Line Edited: MOD - Multi-Stores V1.4 $random_product = tep_random_select("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s, " . TABLE_PRODUCTS_TO_STORES . " p2s, " . TABLE_SPECIALS_TO_STORES . " s2s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = p2s.products_id and p2s.stores_id = '" . STORES_ID . "' and s2s.stores_id = '" . STORES_ID . "' and s.specials_id = s2s.specials_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' and s.customers_group_id = '0' order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS); } else { // $sppc_customer_group_id is in the session variables, so must be set // Line Edited: MOD - Multi-Stores V1.4 $random_product = tep_random_select("select p.products_id, pd.products_name, IF(pg.customers_group_price IS NOT NULL,pg.customers_group_price, p.products_price) as products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s LEFT JOIN " . TABLE_PRODUCTS_GROUPS . " pg, " . TABLE_PRODUCTS_TO_STORES . " p2s, " . TABLE_SPECIALS_TO_STORES . " s2s using (products_id, customers_group_id) where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = p2s.products_id and p2s.stores_id = '" . STORES_ID . "' and s2s.stores_id = '" . STORES_ID . "' and s.specials_id = s2s.specials_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' and s.customers_group_id= '".$customer_group_id."' order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS); } if (tep_not_null($random_product)) { // EOF Separate Price per Customer Graeme |
|
#20
| ||||
| ||||
| I will add this into the contribution when I get a chance. Some how I missed it and could not see the error. Reposted for readablitiy PHP Code: I have been swamped with other stuff lately - and on top of that just recently been without my main PC for 3 weeks , got that fixed then my DSL modem went for a vacation for a week...*%#@&!... Still have not had time to re-setup everything and to catch up. I am not the original author - I just converted it to BTS and Max - I had it all setup and working on my main DEMO site just fine - but when I packaged it up and removed my customization (my lockdowns) I goofed up here. I restored my Demo site back prior to adding this after a few weeks. (Thus lost the working copy.) I could not see where the problem was at first -- then I got way to busy about a month ago - then the PC/DSL problems..... Still have not transfered my old project files to my new computer (I have been working on an old PC that was at least 6 to 7 years old - finally died)
__________________ 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! |
| 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 06:52 PM |
| Multi Stores contrib in OsC Max-Is it possible? | InaFlap | osCMax v2 Customization/Mods | 0 | 08-05-2006 03:11 PM |
| multi-stores | okatoma | osCMax v1.7 General Mods Discussion | 3 | 02-25-2004 08:58 AM |