Zen Cart Logo
Forums / General Questions / Multiple stores with one checkout ?

Multiple stores with one checkout ?

Views: 74,274

Results 121 to 140 of 164
19 Aug 2009, 8:47 PM
#121
jamie2k avatar

jamie2k

New Zenner

Join Date:
Oct 2006
Location:
Suffolk UK
Posts:
55
Plugin Contributions:
1

Multiple stores with one checkout ?

I am currently running the absolute Multi store on a heavily modded 1.37 store with 45 domains active all with seperate content and products amongst a lot of other great features.

If anyone wants a multi store, this is the one to get for professionals as it seems to stand up well to the huge demands i place on it.

Big thanks to Chris @ Absolute Solutions, truly zenned ;)

19 Aug 2009, 11:05 PM
#122
javier avatar

javier

New Zenner

Join Date:
Jun 2007
Posts:
79
Plugin Contributions:
0

Re: Multiple stores with one checkout ?

OK, so where is it available since this is the first post on this thread for 16 months.

14 Apr 2010, 6:28 PM
#123
bcrijared avatar

bcrijared

New Zenner

Join Date:
Apr 2010
Posts:
1
Plugin Contributions:
0

Re: Multiple stores with one checkout ?

Absolute, any word on distributing the setup you used for a two store, one Zen Cart install? I have the same exact situation and I could really use some input.

Thanks!

29 Oct 2011, 3:44 PM
#124
glennfish avatar

glennfish

New Zenner

Join Date:
Sep 2011
Location:
Minnesota, whine country, where the grapes suffer
Posts:
10
Plugin Contributions:
0

Re: Multiple stores with one checkout ?

Here's something I did that may be interesting.

We're setting up a single cart for crediting about 1,000 or more charities for the purchases that come through them.

Found a cool way.

The originating web site has a specific forwarding link with some java script in it. The HTML is this:

<html> <head> <script type="text/javascript">

function open_win() {
win2 = window.open("http://www.yourstore.com/index.php?action=buy_now&products_id=36","_blank","width=5,height=5");
var u = setTimeout("stuff2()", 3000);
}

function stuff2(){
win2.close();
win3 = window.open("http://www.yourstore.com/index.php?main_page=product_info&products_id=36", "_parent", "toolbar=yes, menubar=yes,resizable=yes,scrollbars=yes,titlebar=yes");
}
</script>

<body onload="open_win() ;"> </body> </html>

Now notice there are two things going on. First, with one window for this session ID, we add a product to the cart. Then wait 3 seconds.

Then we blow that window away.

Then we go to the product description for that product. This is the landing page for the store that the buyer actually sees.

In this case, product ID # 36 is the description of a specific charitable organization that will be credited for the order, and product ID #36 is free free and free.

So, when checkout happens, the order record in the DB has the $ value of the total, and we can sort by the product ID to determine who gets store credit.

We set up a product category "nonprofits" and each nonprofit in the system is a different product with a description and image unique to that nonprofit.

When someone links from their web site to their store, they get an automatic add of the product ID, and then that window poofs as they land on the product page.

The only time it would fail is if the buyer explicitly removes the free product from the cart before placing the order.

You have to match the nonprofits (store owners?) with their product I.D. and generate a fresh HTML file with that ID for each unique originator.

31 Dec 2016, 6:24 PM
#125
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

I am wanting to run three separate stores, in three directories on my hosting space. All stores will have there own colour to differentiate one from the other, although will be similar in layout. All stores will use the same paypal account, however I would like the user to be returned to the callback url according to the store they purchased from. Currently I think you can only use one callback url in paypal, so is it possible to have the callback url return the user to the correct store? E.g. Store 1 is Blue so Paypal should return the user to Store 1. Store 2 is Red so paypal should return the user to Store 2. Store 3 is Green so paypal should return the user to Store 3. Effectively three callback urls for Paypal. Can anyone recommend a solution for this scenario?

The other issue is I would like to use one database and assign the correct categories to the correct store, this would allow the user to have a single login for all three stores when purchasing. Is this possible? It's not essential but would make it easier for the front end user.

31 Dec 2016, 6:47 PM
#126
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Multiple stores with one checkout ?

Nick1973:

All stores will use the same paypal account, however I would like the user to be returned to the callback url according to the store they purchased from. Currently I think you can only use one callback url in paypal, so is it possible to have the callback url return the user to the correct store? E.g. Store 1 is Blue so Paypal should return the user to Store 1. Store 2 is Red so paypal should return the user to Store 2. Store 3 is Green so paypal should return the user to Store 3. Effectively three callback urls for Paypal. Can anyone recommend a solution for this scenario?
I can speak to the PayPal callback: Zen Cart already passes the correct callback URL with each transaction. So as long as the store "knows" the correct URL, the PayPal issue is already taken care of. And especially so if you're using Express Checkout (which you should, instead of PayPal Standard).

As to multi-store setups, I'll let others chime in about those issues.

31 Dec 2016, 6:54 PM
#127
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Ok so express checkout would return the user to the correct store after payment? e.g. If purchasing from store 1 returns to store 1, if purchasing from store 2 returns to store 2 etc

31 Dec 2016, 7:07 PM
#128
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Just had a look and it would appear in express checkout you can only use one IPN for each store. E.g. http://www.mywebsite.co.uk/buy-from-here/ipn_main_handler.php which would be entered into Paypal's API credentials. However in this case I have three stores which will use three separate IPN's...only I can only enter one in Paypal. So how does it know to return the user to the correct store if only one IPN can be used?

31 Dec 2016, 8:31 PM
#129
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Multiple stores with one checkout ?

For PayPal Express Checkout, if the checkout request is initiated from https://www.store1.com then PayPal returns control to https://www.store1.com upon completion, cancellation or error. Ditto if the order originated from https://www.store2.com.

You'll need to designate one of your stores as the "master" (from a PayPal standpoint) and set (in your PayPal settings) the IPN return URL to be based on that "master" link, e.g. https://www.store1.com/ipn_main_handler.php. That way, all PayPal IPN notices are sent to that "master" and are recorded in the single database.

That IPN processing is performed "outside of" the customer's session, so it doesn't matter if the customer ordered from store1 or store2 or store3. The one thing to consider is that with a single PayPal account, there's only one "store name" that PayPal knows and that name will appear on all customers' PayPal receipts (and their credit-card statements), so it's best to note that somewhere within each store to reduce customer confusion.

31 Dec 2016, 10:21 PM
#130
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Ok, all stores have a slightly different brand, they are similar, but slightly different. So what do you suggest from a branding point of view to avoid confusion? Would you do something like disable the header and footer etc and just have a single white page message something like 'Thank you for your order' with the main logo? I suppose the return URL won't matter that much.

1 Jan 2017, 1:52 AM
#131
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Multiple stores with one checkout ?

As I said earlier, the ZC PayPal Express Checkout module passes a specific return URL (call it a "callback" or "return" or "cancel" or "whatever", including URLs to ipn_main_handler.php or your index.php or checkout page, or shopping cart page, etc) specific to your store, and this overrides whatever you've specified inside your PayPal account itself. This allows you to have 5000 stores connected to one PayPal account if you wish, and it will notify each one about only the orders that originated from individual stores.
You do have to give your PayPal account "one" URL (to ipn_main_handler.php) just in order to activate the feature in your PayPal account (and that one URL will get notices from all PayPal transactions that don't have a specific IPN URL specified, such as eBay or emailed payments or other stores that haven't implemented the store-specific URL feature that Zen Cart uses). After that Zen Cart takes care of telling it which stores to inform about any updates.

As far as "multiple stores running from one database", which is the real subject of this discussion thread, I'll let others speak to those concerns.

1 Jan 2017, 10:40 AM
#132
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

DrByte:

As I said earlier, the ZC PayPal Express Checkout module passes a specific return URL (call it a "callback" or "return" or "cancel" or "whatever", including URLs to ipn_main_handler.php or your index.php or checkout page, or shopping cart page, etc) specific to your store, and this overrides whatever you've specified inside your PayPal account itself. This allows you to have 5000 stores connected to one PayPal account if you wish, and it will notify each one about only the orders that originated from individual stores.
You do have to give your PayPal account "one" URL (to ipn_main_handler.php) just in order to activate the feature in your PayPal account (and that one URL will get notices from all PayPal transactions that don't have a specific IPN URL specified, such as eBay or emailed payments or other stores that haven't implemented the store-specific URL feature that Zen Cart uses). After that Zen Cart takes care of telling it which stores to inform about any updates.

As far as "multiple stores running from one database", which is the real subject of this discussion thread, I'll let others speak to those concerns.

Sorry for going off discussion but hopefully last one Dr Byte...so are you saying I need to enter ipn_main_handler.php on its own or https://www.myurl.com/mystore1/ipn_main_handler.php into paypal?...and then it express checkout will override this?

1 Jan 2017, 1:30 PM
#133
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Multiple stores with one checkout ?

Nick1973:

Sorry for going off discussion but hopefully last one Dr Byte...so are you saying I need to enter ipn_main_handler.php on its own or https://www.myurl.com/mystore1/ipn_main_handler.php into paypal?...and then it express checkout will override this?
You need to enter the "mainstore" url in the settings on te paypal site. No need to edit any Zen Cart file. After that Paypal, and Zen Cart will automatically take care of the correct url's.

For using multiple stores wit one database, I would recommend the multi site module. This way you will need only one Zen Cart file set, with multiple templates (1 for each store). You can configure each store separately, which in your current setup is not possible.

1 Jan 2017, 1:52 PM
#134
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Design75:

You need to enter the "mainstore" url in the settings on te paypal site. No need to edit any Zen Cart file. After that Paypal, and Zen Cart will automatically take care of the correct url's.

For using multiple stores wit one database, I would recommend the multi site module. This way you will need only one Zen Cart file set, with multiple templates (1 for each store). You can configure each store separately, which in your current setup is not possible.

Thanks for confirming that. I did look at the Multisite module, and it would work for other scenarios, however the directory names that each store sits in has a reference in the name to what it is selling, so I'm not sure it would work for my scenario if you understand me?

1 Jan 2017, 1:56 PM
#135
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Multiple stores with one checkout ?

Nick1973:

Thanks for confirming that. I did look at the Multisite module, and it would work for other scenarios, however the directory names that each store sits in has a reference in the name to what it is selling, so I'm not sure it would work for my scenario if you understand me?
Actually I do not understand :blush:. The directory normally has nothing to do with the shop, as a visitor only sees an url, but maybe you can elaborate on this?

1 Jan 2017, 2:01 PM
#136
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Sorry I didn't mean to say that in a patronising way lol....The directory names are named that way for SEO purposes, unless there's another way of doing that?

e.g. One store is selling print so the directory name is buy-print-online, the others are named in a similar way but where it states print, they are named differently.

1 Jan 2017, 2:11 PM
#137
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Multiple stores with one checkout ?

Nick1973:

Sorry I didn't mean to say that in a patronising way lol....The directory names are named that way for SEO purposes, unless there's another way of doing that?

e.g. One store is selling print so the directory name is buy-print-online, the others are named in a similar way but where it states print, they are named differently.

:DI always try to read, and answer the forum without emotion or guessing what someone might intent. So no worries, no offense taken. :thumbsup:
You could use a rewrite in your .htaccess file for those directories. Do the stores share the same domain? If they do you could also make use of the Ultimate Seo module, or something similar.

1 Jan 2017, 3:17 PM
#138
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Multiple stores with one checkout ?

Design75:

:DI always try to read, and answer the forum without emotion or guessing what someone might intent. So no worries, no offense taken. :thumbsup:
You could use a rewrite in your .htaccess file for those directories. Do the stores share the same domain? If they do you could also make use of the Ultimate Seo module, or something similar.

Cool :-) They do share the same domain name. I can't put Zen Cart in the root as that contains a Wordpress install, so zen cart has to be in a sub directory. I could rename the directory it resides in to something generic, and basically have all three stores in that sub directory. Then as you say use a rewrite in htaccess. How would you do the rewrite?

1 Jan 2017, 3:34 PM
#140
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Multiple stores with one checkout ?

Nick1973:

Is it this module? https://www.zen-cart.com/downloads.php?do=file&id=378
Ideed,that's the one. Although it states it is suitable for Zen Cart 1.5.1, I tested on a Zen Cart 1.5.5b without any problems.
Putting Zen Cart in a generic foldersounds good. Then you can make a new root category for each store, and put the applicable the products and categories in there. Next use a rewrite rule in for each store using the unique category path (cpath) .
"http://yourDomain.com/index.php?main_page=index&cPath=1" becomes "http://yourDomain.com/uniqueName/index.php?main_page=index&cPath=1"