osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | FEATURES | 1534   


oscommerce Multiple"Mini-Stores"with1Admin
[1534]
 
 
box_bg_l.gif.
"This is my first contribution so please go easy on me if I did anything wrong.
<p>
Assumptions: english only, all websites exist on the same server, catalog directory
is your top level directory with admin under it (e.g. http://www.yourstore.com/index.php
instead of http://www.yourstore.com/catalog/default.php). I think this will all work
find even if you have a catalog directory but be sure to test just in case.
<p>
This contribution allows you to set up multiple 'mini-store' sites in addition to your
main store website, all using one admin. The basic idea is that your main store still
will show all of your categories and products. Each mini-store will only include the
categories you have defined as belonging to that store. Theoretically you can have the
same category exist in multiple stores but I have not tried that yet.
<p>
This system is set up by copying your main site excluding the admin directory to each
of your new mini-stores. Our sites are all on the same server so we have also created
a symbolic link to the images directory to avoid having to manually copy the images
across to each site. In the english.php file in each mini-store you set up a variable
to define the current store name. I'm not sure if english.php is the best place to do
this so if you want to put it somewhere else that is always read by each program the
system should work just fine. All other code with the exception of the language files
(and any other programs where you want to do something different than your main site) is
identical and uses the current store name value to determine which categories are
displayed. I'm not sure if this will work for you if your sites are not on the same
server since I have no way to test that scenario.
<p>
On the admin side you can see which site the order was placed at since the store name is
saved on the order line as well as in their basket records. The order confirmation emails
also specify which store the order was placed from.
<p>
We are using this system to basically have a website each for several of our categories
(e.g. one for body jewelry, one for costumes, etc.). I have not tested it any other way
such as setting up a site with just a few subcategories and it may not work correctly for
that without some modification. Namely I removed display of the top level category in
catalog/includes/functions/general.php at line 528 and 532 - 537. If you have trouble
with that scenario try removing this code.
<p>
That said, we have been running this with one main site and four mini-stores on our site
for a couple of months now and I believe I have worked out most of the kinks.
<p>
PayPal donations greatly appreciated to bkm73@cox.net."

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers