Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multi-Stores Multiple Shops Support


hobbzilla

Recommended Posts

hm...I have a problem with products_attributes.php. this file is not changed for MS and diferent stores can see all products :( and one more thing...products expected don`t work (don`t have any buttons to add products to be expected :) )

I Need Money

Link to comment
Share on other sites

Evening folks...

 

have my main and one sub store up and running with CCGV

(that was fun.. remind me to do it again soon)

 

anyways...

if I place a test order in the main store it shows up in the admin/orders

if I place a test order in the second store the order itself does not show up, but if I input the order number the order is there...

 

so what thing did I miss?

I know it's something, but my head is ready to explode from looking at php

 

any ideas?

Link to comment
Share on other sites

Evening folks...

 

have my main and one sub store up and running with CCGV

(that was fun.. remind me to do it again soon)

 

anyways...

if I place a test order in the main store it shows up in the admin/orders

if I place a test order in the second store the order itself does not show up, but if I input the order number the order is there...

 

so what thing did I miss?

I know it's something, but my head is ready to explode from looking at php

 

any ideas?

 

Hi

 

if everting else is working, check orders.php around line 400 starting with

<?php

if (isset($HTTP_GET_VARS['cID'])) {

$cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

 

There you can find the orders query. Check the next lines until

 

$presplit_query = tep_db_query($orders_query_raw);

 

Otherwise check if the admin user is enabled for all shops!

Link to comment
Share on other sites

Hi

 

if everting else is working, check orders.php around line 400 starting with

<?php

if (isset($HTTP_GET_VARS['cID'])) {

$cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

 

There you can find the orders query. Check the next lines until

 

$presplit_query = tep_db_query($orders_query_raw);

 

Otherwise check if the admin user is enabled for all shops!

 

Nico,

 

thanks for taking the time to answer :)

 

I checked thru all the modifications that I made for CCGV and there were none to orders.php so I am using the one that came with the multi-stores download.

in the admin area the admin login as rights to all and future stores

Link to comment
Share on other sites

Thank you for great contribution!

 

I wonder if any one can help me find solution for this problem.

 

I have installed Buy Two module and I don’t get the discounted bundled product to show in shopping cart. The bundled products show in admin side (I get them show also in catalog side if I don’t use discount).

 

I have been trying modulating catalog/includes/modules/shopping_cart.php and price_schedule

 

:'(

Link to comment
Share on other sites

Hi all,

 

1146 - Table 'onlineshops.configuration_orientalink' doesn't exist

select configuration_key as cfgKey, configuration_value as cfgValue from configuration_orientalink

[TEP STOP]

 

This is my second store I configured with MS, I've no problem with my first store, however, above error occur when I did the same configuration on my 2nd store. I followed the configuration as written as in the install.html, quoted below:

 

For each copy you make you will need to correctly re-configure /includes/configure.php and includes/database_tables.php's TABLE_CONFIGURATION value (to the value specified in admin store creation).

 

Below are my codes in the /includes/configure.php

  define('HTTP_COOKIE_PATH', '/catalog_orientalink/');
 define('DIR_WS_HTTP_CATALOG', '/catalog_orientalink/');
 define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/catalog_orientalink/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'C:/Program Files/xampp/htdocs/catalog_orientalink/download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'C:/Program Files/xampp/htdocs/catalog_orientalink/pub/');

 

Below are my codes in the /includes/database_tables.php

  define('TABLE_CONFIGURATION', 'configuration_orientalink');
 define('TABLE_CONFIGURATION_GROUP', 'configuration_group');

 

Please advise how can I correct the error? Thanks in advance.

Link to comment
Share on other sites

Hello,

 

Thanks for good contribution :thumbsup:

 

But I have some question after installed this contribute.

 

1. Can I create admin for each store? for add product, manage order etc independent in each store.

2. I try to create another admin with permission of store2 but it still can manage (watch, delete) orders that created in store1. What I miss in configuration?

 

Thanks for help

:lol:

Link to comment
Share on other sites

I just wanted to drop in and apologize I have not been around here for a while. I hope some of you will be able to step up and assist and answer questions.

 

Our youngest son, James (Jay) Kelly Hobbs, was recently diagnosed with Kawasaki disease and is currently in the Pediatric ICU in Dallas, TX.

 

We are asking for all family, friends and anyone to pray for him. He currently has a dialiated right and left anterior descending (LAD) coronary arteries as well as a medium aneurysm in his LAD. He seems to be responding well to treatment but he is just 6 months old and still in the acute stages and are praying that the aneurysms and arteries do not progress with this disease.

 

If interested, more information on KD can be found here:

http://www.kdfoundation.org/

 

I am asking that anyone from this point on that was planning on donating for my contributions to instead donate to The Kawasaki Disease Foundation. Thanks and again -- sorry I haven't been around for a while.

Link to comment
Share on other sites

Hi

 

I have installed this mod and got it working brilliantly.

 

Now i want to install a single shop but with the same products as the multi shop. Will i be able to just import the products/categories straight in or will i have to mess about with the database?

 

Any help please.

 

Cheers Richard

Link to comment
Share on other sites

Hello. I'm new here (from spain). I have a big problem with this contribution.

 

I have installed and all its OK, but the configuration of the second shop is broken, i can see in the admin and its ok, but when i do a order in the second shop, this order is associated to the first shop (not the second)....and i receive a email with the data of the first shop.

 

in summary, my admin dont read the configuration of the second shop (not primary), but i can see it ok

 

thnks.

Link to comment
Share on other sites

HI hobbzilla,

 

Hope everything will be fine with your son. God Bless you!

 

Has anyone ever install other Tree Menu (with icon(s) next to the category menu at each levels) in the MultiStore contribution?

 

I installed the MultiStore in a clean oscommerce and found there seems a heavily edited of MS in categories.php, how can I merge the Yet Another Tree Menu (found in Contribution) into this heavily edited categories.php?

 

Pls. advise.

Link to comment
Share on other sites

Hello, I am going though the steps to install this component

MULTISTORE CONFIGURATION

-=-=-=-=-=-=-=-=-=-=-=-=-=

 

Start with a clean install of the OSCommerce package:

 

1) Copy all files from the multistores package to the relevant location in the OSCommerce folder, overwriting existing files in OSCommerce.

 

2) Copy the admin to root OSCommerce folder (instead of inside the catalog folder).

 

3) Modify the configure.php in admin folder to reflect the change in path.

 

4) Make a copy of the catalog folder with a new name, this will serve as the catalog of the new store.

 

5) Modify the configure.php in new catalog's folder to use the new catalog folder path.

 

6) Using Stores link in admin, add new store with its configuration table name say 'configuration_new' (this table will be created in the database).

 

7) In new store's catalog folder/includes/database_tables.php line "define('TABLE_CONFIGURATION','configuration');" change the name to the new stores configuration table 'configuration_new'.

 

8) Assign Languages to the new store (Localization/Languages).

 

9) In table 'configuration' (for default store) and 'configuration_new', add new rows with configuration_key 'store_id' and its value which reflects the relevant store_id taken from table 'Stores".

 

10) Add '//' (comment out) the lines as mentioned in the 'install' file of multistores package.

 

On step 6 it says using stores link in admin... I have no stores link in the administrator panel. I am sure i have done all the other steps correct does anyone know what I am doing wrong? Any help is much appreciated!

Link to comment
Share on other sites

I've got multi-stores (latest version) installed with SPPC, i've got the back end working just fine but the front end is another story. I've got no errors but also haven't got the new prices showing up. Can anyone release the files they have already modified or tell me where i'm going wrong especially on the product_info page - any help would be greatly appreciated.

Link to comment
Share on other sites

Hi

 

if everting else is working, check orders.php around line 400 starting with

<?php

if (isset($HTTP_GET_VARS['cID'])) {

$cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

 

There you can find the orders query. Check the next lines until

 

$presplit_query = tep_db_query($orders_query_raw);

 

Otherwise check if the admin user is enabled for all shops!

 

I've been working on this on and off for a while now and I can't figure it out... so I am open to suggestions

 

Issue: You place an order in the main store and it shows up in the database and on the admin console (orders.php)

if you place an order in store 2 it shows in the database but not on the admin console (orders.php)

if you put the missing order number in the order ID field it does show up, so I know the data is there

 

the admin account does have full access to all stores

(This administrator has full access to all STORES (present & future). is checked)

 

any ideas?

 

John

Link to comment
Share on other sites

okay i have searched this thread but not foudn what im looking for. i hope it can be done.

 

I have

 

site-a

site-b

site-c

 

each site has the EXACT same category's just the products are site specific. Is there a way to show just what products are linked to site-a? or just site-B? because right now all sites that have products in category 1 all show no matter what store they are linked too.

Link to comment
Share on other sites

  • 2 weeks later...

Somone posted this a long time ago and there seems to have never been a response. I am now trying to get this to work and having this same issue. Just curious if anyone would know a solution to this. Thanks.

 

Hello,

i want to install the Multi-Stores Contribution on my register_global off webserver.

 

So I tried to integreat this Contribution in the multi-stores Contribution. The shop itself seems to work too, but I am not able to get into the administrators area.

Instead of the login page I get an error (something like a loop).

I think the problem is in /catalog/admin/includes/functions/administrators.php, because when I uncomment the code in the "RequireLoginValidForPage" Function he loads the Background of the page and some text.

 

So maybe you can say me, where the Problem is? Here is the code off this side:

 

<?php
  $aADMBoxes = array ( 'configuration.php'	=> BOX_HEADING_CONFIGURATION,
					'modules.php'		  => BOX_HEADING_MODULES,
					'catalog.php'		  => BOX_HEADING_CATALOG,
					'stores.php'		   => BOX_HEADING_STORES,
					'customers.php'		=> BOX_HEADING_CUSTOMERS,
					'orders.php'		   => BOX_HEADING_ORDERS, //rmh M-S_multi-stores
					'taxes.php'			=> BOX_HEADING_LOCATION_AND_TAXES,
					'localization.php'	 => BOX_HEADING_LOCALIZATION,
					'reports.php'		  => BOX_HEADING_REPORTS,
					'tools.php'			=> BOX_HEADING_TOOLS,
					'administrators.php'   => BOX_HEADING_ADMINISTRATORS,
					);

  // associate all the admin pages with the box class that includes it
  $aADMPages = array( 'configuration.php'			=> 'configuration.php',
				   'index.php'					=> '*',
				   'categories.php'			   => '*',
				   'modules.php'				  => 'modules.php',
				   'categories.php'			   => 'catalog.php',
				   'products_price_schedules.php' => 'catalog.php', //rmh M-S_pricing
				   'products_attributes.php'	  => 'catalog.php',
				   'manufacturers.php'			=> 'catalog.php',
				   'reviews.php'				  => 'catalog.php',
				   'specials.php'				 => 'catalog.php',
				   'products_expected.php'		=> 'catalog.php',
				   'customers.php'				=> 'customers.php',
				   'customers_groups.php'		 => 'customers.php', //rmh M-S_pricing
				   'orders.php'				   => 'orders.php', //rmh M-S_multi-stores
				   'invoice.php'				  => 'orders.php', //rmh M-S_multi-stores
				   'packingslip.php'			  => 'orders.php', //rmh M-S_multi-stores
				   'countries.php'				=> 'taxes.php',
				   'zones.php'					=> 'taxes.php',
				   'geo_zones.php'				=> 'taxes.php',
				   'tax_classes.php'			  => 'taxes.php',
				   'tax_rates.php'				=> 'taxes.php',
				   'currencies.php'			   => 'localization.php',
				   'languages.php'				=> 'localization.php',
				   'orders_status.php'			=> 'localization.php',
				   'stats_products_viewed.php'	=> 'reports.php',
				   'stats_products_purchased.php' => 'reports.php',
				   'stats_customers.php'		  => 'reports.php',
				   'backup.php'				   => 'tools.php',
				   'banner_manager.php'		   => 'tools.php',
				   'banner_statistics.php'		=> 'tools.php',
				   'cache.php'					=> 'tools.php',
				   'define_language.php'		  => 'tools.php',
				   'file_manager.php'			 => 'tools.php',
				   'mail.php'					 => 'tools.php',
				   'newsletters.php'			  => 'tools.php',
				   'server_info.php'			  => 'tools.php',
				   'whos_online.php'			  => 'tools.php',
				   'administrators.php'		   => 'administrators.php', //rmh M-S_multi-stores
				   'distributors.php'			 => 'administrators.php', //rmh M-S_multi-stores
				   'stores.php'				   => 'stores.php', //rmh M-S_multi-stores
				);

  function RequireLoginValidForPage( $aRetPage ) {
   global $PHP_SELF, $in_login, $login_id, $aADMPages;  
   $aThisPage = basename( $PHP_SELF );
   $aRetPage  = str_replace( $aThisPage, 'index.php', $aRetPage );
   if ( empty( $in_login ) ) {
	   if ( !tep_session_is_registered( 'login_id' ) ) {
		   header( 'Location: login.php?in_login=yes&retpage=' . urlencode( $aRetPage ) . "\n" );
	   } else {
		   $aSQL = "select administrators_allowed_pages from ". TABLE_ADMINISTRATORS ." where administrators_id = '". $login_id ."'";
		   $aRes = tep_db_query( $aSQL );
		   if ( $aVal = tep_db_fetch_array( $aRes ) ) {
			   $aPages = $aVal['administrators_allowed_pages'];
			   if ( trim( $aPages != '*' ) ) {
				   $aAllowedPages   = explode( '|', $aPages );
				   $aCurrentPageBox = $aADMPages[$aThisPage];
				   if ( $aCurrentPageBox != '*' ) {
					   if ( !in_array( $aCurrentPageBox, $aAllowedPages ) ) {
						   header( 'Location: login.php?' . urlencode( $aRetPage ) . "\n" );
					   }
				   }
			   }
		   }
	   }
   }
  }

  function CanShowBox( $aBoxName ) {
   global $login_id;
   $aSQL = "select administrators_allowed_pages from ". TABLE_ADMINISTRATORS ." where administrators_id = '". $login_id . "'";
   $aRes = tep_db_query( $aSQL );
   if ( $aVal = tep_db_fetch_array( $aRes ) ) {
	   $aPages = $aVal['administrators_allowed_pages'];
	   if ( trim( $aPages != '*' ) ) {
		   $aAllowedPages   = explode( '|', $aPages );
		   $aCurrentPageBox = $aBoxName;
		   if ( in_array( $aCurrentPageBox, $aAllowedPages ) ) {
			   return true;
		   }
	   } else {
		   return true;
	   }
   }
   return false;
  }
?>

 

Does anybody of you know, how I can make this site with register_globals off work?

 

 

Thank you from Germany (and excuse my bad english)

Ole

Link to comment
Share on other sites

Somone posted this a long time ago and there seems to have never been a response. I am now trying to get this to work and having this same issue. Just curious if anyone would know a solution to this. Thanks.

 

did you try the disable register globals contrib?

 

http://www.oscommerce.com/community/contributions,2097

 

Register Globals

 

This is a patch that will remove the need to enable 'register_globals' in the php.ini file. In fact, once it is applied,, register_globals MUST be disabled otherwise it will not work.

Link to comment
Share on other sites

Yeah that is what I have installed and what this other person had installed as well. It seems that the one function does not work with register globals off and we can't figure out why.

 

when you setup OSC did you set it for file based sessions?

Link to comment
Share on other sites

ok I am completely fustrated

running on php 5.0.4 and mysql 4.1.14

I have tried every suggestion made in this thread but I can still not get the admin login to come up

 

 

Hi

 

 

We also have tried everything. even installed a new store, so that there are all original fies and database.

 

Still cannot log in. If anyone has a fix for this problem, please let us know

 

thanks

 

 

Joe

----------------------------

Long Island, New York

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...