osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Multi-Stores shop system for OSCMAX

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax Projects Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack (2) Thread Tools
 
Old 04-26-2007, 09:11 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,684
Thanks: 2
Thanked 94 Times in 80 Posts
Thanks: 2
Thanked 94 Times in 80 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default Multi-Stores shop system for OSCMAX

A new project_project entry has been added:

Multi-Stores shop system for OSCMAX

Quote:
Version 1.4
=============
These modifications allow you to assign specific products and categories to multiple stores that you define in the administration panel. The products and categories
__________________
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to jpf For This Useful Post:
ALElder (04-27-2007), altenter (05-18-2007), michael_s (04-26-2007), MindTwist (04-10-2008)
  #81  
Old 04-07-2008, 02:43 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Makes me wonder where I got the 1054-problem.txt file, I thought it was from this thread, but it seems to be NOT related to the Multi Stores installation. Guess it must be just a fix for MySQL5, but those queries have nothing related to the STORE tables...
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #82  
Old 04-08-2008, 12:20 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Ok, SQL queries seem to be my problem everywhere.

For now I think I have 4 problems:

- Categories not showing up right and giving me the 1054 error, problem is the queries on index.php

- Search, still geting the 1066 - Not unique table/alias: 'c' error. I tried with advanced_search_result.tpl.php from multishop_fixzip.zip with the same results.

- /includes/modules/default_specials.php - On the new store I am seeing on the main page the specials for the other store. I have checked the full installation and it does not modify default_specials.php to make it so the queries will select only the specials active on the current store. Makes me wonder if I have missed something big, or I am the only one with specials on the main page (and so the first to notice).

- /allprods.php - the default MS install also does not modify /allprods.php or /templates/fallback/allprods.tpl.php , so when seeing "all products" you will see everything from all stores.

So it seems I will need to learn some SQL before going on any more. I assume that the first two problems must be related to my host configuration since many people have been able to set up Multi-Stores with no problems
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83  
Old 04-08-2008, 02:01 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Another one that needs some retouching on the SQL query or otherwise will show products from all stores and not just the active ones on the current store...
/templates/fallback/content/catalog_products_with_images.tpl.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84  
Old 04-08-2008, 11:11 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

/includes/modules/xsell_products.php
Cross related products also shows items not active on the current store... Bleh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #85  
Old 04-14-2008, 01:46 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Well, I think everything has been nailed down. Got two stores working with the multi stores module, and they seem to be geting along toguether quite well.

http://www.twistedtienda.com - live store
http://www.twistedreality.org - clone store

They are sharing DB, and the only different tables each store has is the configuration table and the newsdesk module tables. Everything else is shared, and products, categories, specials, and manufacturers (I do not have/use manufacturers) can be selected to which store/s they belong to.

I still have a couple things to iron out, but they shoud be minor, like moving some texts/files from the main language files to the template directory so it will be different on each store without them needing different language files, I will probably modify a bit the who's online modules and visitors/user tracking modules so I can tell where is actually everyone, and just trying to make it easier to "clone" the store with touching only configure.php and database.php files, so I need to put all related store info on the template, since every store will have its own template.

I had someone fix me all the SQL related things since I would have not been able to do it myself, so if anyone needs some info on how to fix something let me know, otherwise I will try to post the changes I had to do here when I have some time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #86  
Old 04-14-2008, 11:15 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 148
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: Multi-Stores shop system for OSCMAX

MindTwist,

You think maybe you could make a new manual on how to install the mutl-store mod? I have been trying and have hired 2 programmers and they are still having problems. Maybe a repackage would be a good idea. Just wated to get your thoughts on this.

Did you also have a text file on what templates file you needed to change?

Thanks,

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #87  
Old 04-14-2008, 01:23 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Adam,

I do not think I could do that, since my base installation is already way too modified to be able to create a new package from my code. Some queryes are also a bit personalized, like my new products box does not show last products for the current month, but shows 3 random products out of the 18 last ones, etc.

I actually have to say I do not quite understand how anyone has been able to get this contribution working right out of the box. A lot of queries some buged to me, and there are even several files with queries that should be updated for MS to work ok everywhere, and the contribution does not even touch them.

So I really think it is strange that this would work ok just by installing it on top of a clean OSCMAX installation, I think that by doing that there should be still many things to retouch. Files like /includes/modules/default_specials.php are not even modified, and some queries look like they come straight from hell, and makes me wonder how they could work for anyone... no matter what version of SQL they are running.

Like the modified queries on /includes/modules/new_products.php which have been my last nightmare, they have some joins related to TABLE_SPECIALS and TABLE_SPECIALS_TO_STORES ... wtf? The query is supposed to return X last new products for the month, it has no relation to specials.

So making a full manual would probably be way too much for me. In fact, I know I do not have a full working installation of Multi-Stores, because I have not even checked anything that relates to manufacturers, since I do not use them on my store. ANd I also know I still have some problem with "specials", because when I create a special but it is NOT assigned to store X, when browsing store X you will not see the special on the specials box, or the new products box, but you will see the special price on new_products.php and when looking at the direct product.

But since when I make a special I will make it for all the stores, I have not bothered fixing that one...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #88  
Old 04-18-2008, 07:16 AM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default Re: Multi-Stores shop system for OSCMAX

If I remember correctly the MySQL 5 issue is that MySQL does not support a mixture of explicit joins along with comma separated joins. The quickest fix for SQL queries giving you a 1054 error is to just replace every comma you seein the "FROM" section of the query with the word "JOIN" and that should fix the problem. There is no change in the meaning of the query since in standard SQL a comma in the "FROM" clause means "JOIN".

As far as rewriting the manual, I'm not sure it's that bad. The query issue was a MySQL 5 issue not a multi-store mod issue. And I had very little trouble getting this mod to work.

To answer the question of how to do symbolic links in php, it is as simple as using the function symlink(). I don't recall the order of the paramters, but you should be easily able to look it up.

Just a note about symbolic links that I learned recently. Many FTP servers do not support the use of symlinks very well. This means if you create a site with simlinks and then want to connect to it with FTP you may have problems. This is completely dependant on your host. If symlinks is not supported by your FTP server, than you are just out of luck. I tried using hard links, but that doesn't eliminate the situation where if you make a change you have to upload the change to each individual store.

MindTwist, I'm not sure what your specific application of the multi-store mod is, but a technique I used was that the template for each of my stores is the same and all I did was create a separate image folder inside each stores template and a separate CSS file for colors scheme and those are all I have to change. Of course that only applies if your stores are all the same general design with just logo and color differences.

You can check out two of my live stores at SpiritGearNJ.com : Welcome to SpiritGearNJ.com and SpiritGearNJ.com : Welcome to SpiritGearNJ.com

these are using the multi-store mod the only files that are different are the configure.php and database_tables.php files and a few files in the template.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #89  
Old 04-18-2008, 07:42 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 338
Thanks: 9
Thanked 26 Times in 25 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Multi-Stores shop system for OSCMAX

Hi habelson,

Thanks on your input, just checked out your stores. I am quite sure that if you were to start doing some testing on your stores and on the parts that make use of the Multi-Stores contribution, you would find plenty of holes. The reason why you do not see them is because you make use only of a small part of multi stores.

Your store doesn't use many of the options you have on MS, let me point you out some.

- You have 3 categories, which are the same on both stores. If you had different/more categories and subcategories, enabled and/or disabled on different stores, you might start finding out errors when your categories start showing up where they are not supposed to do so.

- You do not have any specials. I am positive that several of the special modules need some fixing, and I kind of remember that some were not even touched. If you have the specials module active on your main page, and you set up some specials (different on each store), I am positivethat you will have products on the specials box showing up on store 2 that should only be active on store 1.

- One glitch I still have on my store, sitemap.php . I have fixed googlesitemap so it will make XML sitemaps for robots and they will be ok, they will only show categories and products active on the current store, but the MS contribution does not even touch OSCMAX sitemap, so customers that see it will find categories that should not be there.
Here you have a quick example, it shows all categories, when I only have 2 active on this store:
http://www.twistedreality.org/sitemap.php

I could go on for a while, there are more things that needed some fixing.

Do I think Multi_Stores is a good module? YOU BET. It rocks, I am already doing a template for my store clone which will be only for wholesale, but will share DB with the other one.

Is it a mature and friendly contribution? Not even close. It might seem to work on easy installations like yours, where you are not pushing it too much, because as soon as you start doing it, you would find out many holes that need to be closed... And I do not mean just converting some SQL queries to make them MySQL5 compatible, there are many queries that need some fixing, and there are many files that need Multi-Stores code added, and it just isn't there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #90  
Old 04-18-2008, 07:54 AM
habelson's Avatar
Member
 
Join Date: Sep 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
habelson is on a distinguished road
Default Re: Multi-Stores shop system for OSCMAX

You are right, though I do have stores with very different products on them and I do not have a problem with them showing up in the wrong store. In fact I also went so far as modify it so that even though there is the same product on the two different stores, the available product attributes are different.

One thing I know I had to fix was the printable catalog. But you are right, I do not use specials, or search. I didn't mean to dumb it down, and I apologize for sounding like that: it's definitely far from being perfect, but I don't think any of us active in this thread have the time or expertise to redo the package.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/oscmax-projects-discussion/8739-multi-stores-shop-system-oscmax.html

Posted By For Type Date
multi-store on osc-max by catros - The Web Plate - Webmasters Forums This thread Refback 02-20-2008 10:41 PM
Alice - Rechercher This thread Refback 02-09-2008 12:27 AM

Similar Threads

Thread Thread Starter Forum Replies Last Post
Multi-Stores multiple shop system michael_s New osCommerce Contributions 0 02-03-2007 10: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 07:58 AM


All times are GMT -8. The time now is 02:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax