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, 10:11 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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)
  #61  
Old 02-22-2008, 11:42 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

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #62  
Old 02-22-2008, 11:59 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

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"; 
and replace with:
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"; 
That should do it.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #63  
Old 03-20-2008, 03:55 AM
Lurker
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spooker8 is on a distinguished road
Default Re: Multi-Stores shop system for OSCMAX

How do i actually access the individual stores? i have installed them but no idea how to access them
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #64  
Old 03-20-2008, 05:45 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 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #65  
Old 03-20-2008, 06:16 AM
Lurker
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spooker8 is on a distinguished road
Default Re: Multi-Stores shop system for OSCMAX

Thanks alot for the info , i have better understanding now,

But can you clarify more on what you mean by

Quote:
Make symbolic links in /Store2 to every file and folder in /catalog except for the following files:

/includes/configure.php
/includes/database_tables.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #66  
Old 03-20-2008, 09:47 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

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #67  
Old 03-20-2008, 11:54 AM
Lurker
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spooker8 is on a distinguished road
Default Re: Multi-Stores shop system for OSCMAX

got it
i understood now , how it works ,




Quote:
Originally Posted by habelson View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #68  
Old 03-21-2008, 07:10 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 149
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 3
ALElder
Default Re: Multi-Stores shop system for OSCMAX

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #69  
Old 03-21-2008, 07:18 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Multi-Stores shop system for OSCMAX

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.
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #70  
Old 03-22-2008, 01:39 PM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 149
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 3
ALElder
Default Re: Multi-Stores shop system for OSCMAX

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
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 11:41 PM
Alice - Rechercher This thread Refback 02-09-2008 01: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 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


All times are GMT -8. The time now is 08:58 PM.


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