Post by prototype0104 » Tue Sep 08, 2020 3:53 pm

Hi guys! I'm using multistore on OC 3.0.3.2 and I have an issue.
So I have 3 store with different products:
PRODUCT 1 > STORE 1
PRODUCT 2 > STORE 2
PRODUCT 3 > STORE 3
...
PRODUCT 1 is not in STORE 2 neither in STORE 3
PRODUCT 2 is not in STORE 1 neither in STORE 3
etc..

So I can't have a shared cart because if I go to STORE 1 cart doesn't have info of PRODUCT 2 .
I'm asking you if there is some solutions for this.

IF there is none I will move on but that way I have another problem:
If I'm logged on all stores and I add something on STORE 1 cart then I go to STORE 2, STORE 1 cart will be empty..

So can someone give me some advice?

RE: I edited library/cart/cart.php on getProducts the where clause for store_id.. I deleted this clause and now the cart and checkout I have all products even if the products are not in the store..
I don't now if there will be errors for this modification..

Someone know how to use same session on all the subdomains? I enabled in OC settings to share session but is not working, TY.
Last edited by prototype0104 on Tue Sep 08, 2020 9:22 pm, edited 1 time in total.

Active Member

Posts

Joined
Sun Mar 24, 2019 6:08 pm
Location - Romania

Post by IP_CAM » Tue Sep 08, 2020 6:20 pm

Well, what sense would it make, to have different Stores, but use
the same Cart for all of them ? It would be contrary to any logic .... :crazy:
Ernie

I am no longer active at the Forum. Please do NOT send me Personal Mails,
they will no longer be replied to.
My Github OC Site: https://github.com/IP-CAM
4'400 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by prototype0104 » Tue Sep 08, 2020 7:03 pm

Thank you for your reply.
I did that because every store is a brand.. Wanted different design for each and there was lot of products, now if I search something on a store the result come much faster.

Active Member

Posts

Joined
Sun Mar 24, 2019 6:08 pm
Location - Romania

Post by k2tec » Tue Sep 08, 2020 7:30 pm

Shared sessions over different domains is not secure

User avatar
Active Member

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Post by prototype0104 » Tue Sep 08, 2020 7:33 pm

Subdomains, not domains.

Active Member

Posts

Joined
Sun Mar 24, 2019 6:08 pm
Location - Romania

Post by prototype0104 » Thu Sep 24, 2020 8:05 pm

Anyone? :(

Active Member

Posts

Joined
Sun Mar 24, 2019 6:08 pm
Location - Romania

Post by letxobnav » Thu Sep 24, 2020 8:14 pm

the cart will query the products in it with store_id set to the current store.
If it cannot find the product in that store, it will remove the product from the cart.
That is why you cannot share the cart between stores unless you remove all product to store relations.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by prototype0104 » Fri Sep 25, 2020 4:29 pm

I did a new function in product model that I use only in cart controller that get products no matter what store id is..
I am looking now for login shared session to all my subdomains.

Active Member

Posts

Joined
Sun Mar 24, 2019 6:08 pm
Location - Romania
Who is online

Users browsing this forum: dhines and 36 guests