Jump to content

Multi-shop different domains config


Recommended Posts

Hello community,

 

We have problems with domains configuration, please help us.

We have one base shop with main domain - domain1.com (->public_html) and we try to configurate second shop with domain domain2.com

 

Domain domain2.com is parked in cPanel and targets to main directory (public_html).

 

Multi-shop 1 configuration in admin panel:

 

Domain: domain1.com

SSL domain: domain1.com

Physical URI: /

Virtual URI:

Your final URL will be: http://shop1.com/

 

 

Multi-shop 2 configuration in admin panel:

 

Domain: domain2.com

SSL domain: domain2.com

Physical URI: /

Virtual URI:

Your final URL will be: http://shop2.com/

 

Seems all okey, but, next features don`t work - customers login status, shared cart.

 

But if we change domain2.com to subdomain test.domain1.com all works fine.

 

Anybody knows where is a problem? Please help

Link to comment
Share on other sites

Well, seems bug is in cookies. If base website is for example shop.com PS creates cookie for that domain and use it for subdomain also, but in this case, you can not use another domain in your multi-shop structure...

 

If we create new shop and assign to him domain name for example shop2.com, so PS will create new cookie for it. In result in browser we can see 2 cookies, one for shop.com second for shop2.com.

 

So each shop works with own cookie file, but shop2.com must use shop.com cookie file.

Link to comment
Share on other sites

  • 2 months later...

I am experiencing exactly the same problem:

 

I hope that this can be solved, since your post is 2 months old, I am getting very VERY worried that the multishop doesn't work AT ALL for Prestashop. When I look at the cookies from the different multishop sites that I made, that I worked on for almost ONE YEAR, then I see that Prestashop makes new cookies for every single site.

 

I made different sites with different domains, but with 1 main domain name. The same as: www.mp3shop.nl

So the cart AND login should be shared over all the domainnames, if this isn't possible then all my work, for 1 year, was completely worthless.

 

How can we get the shared cart and shared login working on different websites?

 

Any input is welcome and much appreciated!

 

Edit, example: please look at www.soap.com for an example, if you put something in the cart there, then the same item is still in the cart when you switch to a other shop (for example diapers.com). In this way people can shop over different domainnames and choose where they want to checkout. I want Prestashop to work the same as this. I've expected that Prestashop multishop worked like that, I hope so much that I am not wrong...

Edited by Jan Jansen (see edit history)
Link to comment
Share on other sites

My understanding is that you 'can' not share different shops carts as (not well worded) stated by the guide.

 

http://doc.prestashop.com/display/PS15/Managing+multiple+shops

 

How to decide if you need the multistore feature

 

You can find yourself wanting to use the multistore feature, where in fact it is not necessary. For instance, if you want a multilingual shop, or if you need to use more than one currency, or if you would like to have a different graphic template for each category.

Here are two questions that you should ask yourself before deciding to enable the multistore feature:

  1. Do you want your shops to have a different price for the same product (besides special discounts for a client or group of clients).
    If the answer is 'yes', then you need to use the multistore feature.
  2. When a client buys from one shop, would you want him or her to not have access that shop's order history and invoices from the other shop (even if the client have the same login credentials on both shops).
    If the answer is 'yes', then you need to use the multistore feature: the shops will not share their carts and orders, and customers putting items in their cart for shop 1 will not see these items in their cart for shop2.

If the answer is 'no' for both questions, then the multistore feature is not for you.

Link to comment
Share on other sites

Thank you for your reply.

 

The main purpose from a multishop configuration is, from my understanding, sharing the cart and login between different domainnames. So that people can shop at different domainnames with one cart. Have you seen my example in the previous post? This multishop environment called "Cooblue" in the Netherlands, is a perfect example of a proper multishop.

 

I'm starting to think that I made a HUGE mistake by choosing Prestashop, because the main feature from 1.5 that I wanted to use, is sharing the cart between different shops...! :( That was the main reason for me to choose Prestashop. Magento is not easy to use for a person like me, but it also had multishop, AND it has multishop like mp3shop.nl, coolblue.nl, soap.com, daiper.com

 

I need multishop: because I want the cart and login shared between all domains, now the cart is only shared when people are logged into every domainname separately... That can't be the purpose of Prestashop!

 

I can't understand why people have to login into every single website to get the cart shared.

 

Edit: this picture makes quite clear that it SHOULD BE INCLUDED: http://www.inmotionh...hare-orders.png this is what I read a year ago, and this is why I started working with Prestashop. Now I get the feeling that I did all my work for nothing.

 

Any input on how to solve this matter is more then welcome, also "paid solutions" are welcome.

 

Edit 2: like magento: http://www.magento-mall.com/ I wish I knew this before... I need to continue with Prestashop because I put so much effort in my theme, but my mind just can't understand that I understood "multishop" so different from the prestashop-developers. I really thought that this feature was included.

Edited by Jan Jansen (see edit history)
Link to comment
Share on other sites

Hi Jan, I hear your frustration and am sorry you are having issues. It's not really so much a PrestaShop issue but more of how browsers store and retrieve cookies by domain.

 

I might look at a hack, maybe someone else has or did. I've seen this request before but honestly stayed away from it as I dont' understand why someone would want to build inter-shops.

 

PrestaShop MultiShop is more of a management tool, i.e. one back office multiple shops. There are other pitfalls not mentioned like sharing content between gTLD (.com's for example) and duplicate content penalties by search engines.

Link to comment
Share on other sites

Thank you so much elpatron! I hope that we can find a hack somewhere, your time is much appreciated, if you found anything working then I am willing to pay you for your effort.

 

It's a online trend to use multiple domain names, the consumer looks for "product specialist/product specific" shops these days:

Soap.com/Diapers.com is a huge example in the US.

Coolblue is marketleader in the Netherlands.

Link to comment
Share on other sites

Hi Jan, you are most welcome. I wrote the first ever PrestaShop MultiShop...it was more for ccTLD usage but you could use any domain name you like....once class override...but I am a systems programmer, I suck at applications and content.

 

the 1.5 version is much more sophisticated in that you can share or not share lots of stuff...but not cookies...

 

I looked at soap.com...I don't see what you mean...I need a really good (well explained) example of how have multiple domains share carts/logon...

Link to comment
Share on other sites

Hi elpatron, thank you, from what I can see you did great work on Prestashop so far, really amazing.

 

I will try to explain it a bit better:

If you add 1 or more products on soap.com to your cart, then it say right/top "1" and "checkout".

When you then click on top/left, on a other domainname/shop, for example: diapers.com or wag.com, then you can continue shopping(and the item from soap.com stays in the cart). You can "mix items" from different domainnames and checkout at the domainname you wish.

 

To make it more clear: you can add a diaper to your cart from diapers.com but you can check out/buy the diaper at soap.com, without being logged in.

 

If it still isn't clear, please let me know, then I'll try to explain it a bit further.

 

Have you tried just assigning (lose all that sharing) multiple domains names to your main domain the ps 1.5 back office? But then the products would not be different. I only have 1.5 multishop on my localhost as I am fine with my own module...

 

I have configured Prestashop now as a multistore/multishop, everything is in 1 group. And when I log-in at every single website, the cart is shared, but without log-in, the cart is different for each domainname.

Edited by Jan Jansen (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Hello people  :)

 

Some news about this?

 

I'm having the same problem (1 year later  :rolleyes:)

 

Hi, one year anniversary with 'some' issue...jajajaja...way to keep up your spirits!

 

what exactly are you having issue with?  It may be better to open new forum post with detail.   Just a suggestion.  :)

Link to comment
Share on other sites

  • 3 weeks later...

I am having the same strange issues.

 

My set-up is Multi-shop 1 configuration in admin panel:

Domain: domain1.com
SSL domain: domain1.com
Physical URI: /
Virtual URI:
Your final URL will be: http://shop1.com/


Multi-shop 2 configuration in admin panel:

Domain: domain2.com
SSL domain: domain2.com
Physical URI: /
Virtual URI:
Your final URL will be: http://shop2.com/

 

I am using 1.5.4.1 version and I cannot login or add anything to the cart on the second shop. I've debugged the code and it just does not have cookie on line 65 in CartController.php which is

if ($this->context->cookie->exists() && !$this->errors && !($this->context->customer->isLogged() && !$this->isTokenValid()))

the part here false is

$this->context->cookie->exists()

is there any solution to this?

 

EDIT: by the way I am not sharing neither carts, neither customers. The shops have only same products.

Edited by Richard S (see edit history)
Link to comment
Share on other sites

Bump.

 

So anyone has any thoughts why without sharing carts I still cannot use multistore with different domains? The context is just empty on other shop.

 

you  will have better results posting a new topic, as your question is not as similar as the original poster as you think.  Make sure to screen shot the back office multtishop sceen(s), i.e. same group not same group etc.

Link to comment
Share on other sites

  • 10 months later...
I think that i have a possible solution, but i'm not sure if this will work and if can cause a security error.

In addition, is not a very elegant way, but can be a emergency solution.

 

I can get the cookie information with Javascript on the domain1.com and send via AJAX to domain2.com/controller. 

 

In domain2.com i can set up a controller that get the cookie information and create a new cookie with the same data on domain2.com.

 

You think this is possible? May work safely and correctly?

 

Hope this can help.

 

Thanks

Link to comment
Share on other sites

  • 1 year later...

any update on this. there is no point whatsoever in having multistore if you cant have individual carts for each different shop. The main reason i use presta is for the multistore option. that is all out the window now if i cant get individual carts working for ShopA.com , ShopB.com etc. Works perfectly to add cart for MainShop.com/ShopA , MainShop.com/ShopB . Please can anyone post some code / workaround for this? 


@Oleguer have you any code you can share where we can try this? Thank you

Link to comment
Share on other sites

  • 3 months later...

2017 y prestashop al parecer no soluciona esto... Sigo con este problema trabaje por tres meses confiado de que funcionaria al probarlo me doy cuenta que no funciona y luego me encuentro con que el problema viene de lejos y no hay solución aparente, que buen soporte

Link to comment
Share on other sites

×
×
  • Create New...