Magento 1.9 multi stores with independent carts - magento

Is it possible to have an independent cart for each store under a single Magento installation? Now I have created a site with 2 stores, but each store is sharing the single cart. How it is possible to have an independent cart for each of my stores.
An example site is https://www.usinger.com/

Go to General » Web » Session Cookie Management and play around with the cookie settings and each of your store views.
If the store view is in a path change the path setting to the path of the store view. If it's in a subdomain, change the cookie domain setting to the subdomain of the store view.

Related

Multiple Custom Admin URL

im trying to have the same backend but with multiple subdomains. first i created one of my subdomains in the backend has showen in this image above.
And is working fine, but not i need the same backend with another subdomain for example "sync.mydomain.com", but i cant find any information on magento docs in configuring custom admin url in multiple domains. Does someone have any idea if it is possible to configure it on magento?
In order to make magento work with multiple domains, you need to make few steps.
System->Manage Stores -> Create Store Fill in the store fields,
taking care that the Website and Root Category are the same as your
primary site.store. Save Store
Create Store View Fill in the store view fields, change Store to the
new store you just created, give your store view a Name (spaces ok),
a code and make sure it’s enabled, after that save the store view.
System->Configuration->Web Change the scope on the upper left to your newly created store view
Change Unsecure->Base URL to your second domain (You’ll have to uncheck Use Website)
Change Secure->Base URL to your second domain (You’ll have to uncheck Use Website)
Save Config
Open the .htaccess at the root of your Magento install
Add the following, obviously changing the values with your own:
SetEnvIf Host www.mysecondarydomain.com MAGE_RUN_CODE=yoursecondarystoreviewcode
SetEnvIf Host ^mysecondarydomain.com MAGE_RUN_CODE=yoursecondarystoreviewcode
Clear the cache and re-index the site.
Here is the article for more information:
http://madproject.com/programming/magento-one-site-multiple-domains/

Change Magento from multiple stores with multiple domains to multiple stores on one domain

I currently have 3 magento stores, each has its own domain name. (just the ltd is different)
I want to change this so that I just have one tld, the .com. But I want to keep the seperate stores.
How can I change this back? Do I simply just remove the code from the index.php file, and change it in config?
Can be done from Admin
Go to Magento Admin
Navigate to System -> Manage Store. There you will see all your websites, stores and store view.
You'll your stores in second column. Click on them and change Website (top row)
Save
Good luck!

how to set customer of one store should not be able to login to another store in magento in single website

I am using latest magento 1.7.0.2.
I have two different stores in my site.
customer from first store should not be able to login to second store.
So,Want to set up store wise login for customers.How to set ?please help.
Unfortunately Magento only allows you to set "customer sharing" across the global and website scopes. The (maybe not so simple) solution would be to move your other store to a separate website instead of a separate store.
Found in System > Configuration > Customers > Customer Configuration:

Single Cart multiple websites in Magento

We have 5 websites (each with different store views and design) running on a single Magento installation (1.7) and all are set on different domains. Now we want to share the customer data and shopping cart across all 5 websites but it's not working. We have already set Persistent Shopping cart to true and Share Customer Accounts to Global but it's not working.
Any help in this regards will be appreciated.
Thanks!
You need to create 1 website, 1 store and 5 store view in it. Different theme/skin can be assigned at store view level.
For Product sharing issue. you can create 5 store and then each store have separate store view. On each store we can define separate root category.
In this way cart and customer data can be shared.
As suggested by Faisal, we should use 1 website, 1 store and multiple store views to share the cart content.
In our scenario, all store views were set to different domains thus cart sessions were not carried forward if customer wasn't logged in. To over come this, all we had to do was set "Cookie Path" to / in System > Configuration > Web > Session Cookie Management
I've made it different way and it works:
I have single installation with multple domains and store and single SSL
I have main web site where i have all products from my other websites and it set with SSL.
1. Share customers account between multi-store:
You can configure this feature here:
System -> Configuration -> Customer Configuration -> Share Customer Accounts ->Global
2.Share the cart content between Magento multi-store websites:
Magento uses separate cart sessions for each store. To use one website on the checkout session you need to modify the "Mage_Checkout_Model_Session" class.
Copy this file: app/code/core/Mage/Checkout/Model/Session.php
to: app/code/local/Mage/Checkout/Model/Session.php.
After that add the following source code to the class:
class Mage_Checkout_Model_Session extends Mage_Core_Model_Session_Abstract
{
const CHECKOUT_STORE_ID = 1;
public function getCheckoutStoreId()
{
return self::CHECKOUT_STORE_ID;
}
Change CHECKOUT_STORE_ID value "1" to your Magento store ID with all products ans SSL.
Next, find all such elements in the file:
Mage::app()->getStore()
and change them to:
Mage::app()->getStore($this->getCheckoutStoreId())
And that is it!
Clear Magento cache and check your store. Now your Magento will use one cart for different multi-domain stores websites.
There are 3 limitations of this solution:
1. All prices in the cart will be from the store you selected (using CHECKOUT_STORE_ID). So if you have different prices for different stores it will not work in the cart.
2. The currency in the cart will be the same as in the store you selected.
3. The link for editing items in the cart will will not redirect customer to original cart website.

Setting Magento Secure checkout Store view

When you have three store views for a single store, each store view with it's own URL.
But a single HTTPS URL for the website.
How do you set the the config/.htaccess to maintain the store view in the secure checkout ?
Examples:
mysite.it
mysite.fr
mysite.de
All store views for language and locate specific sites checkout
via mysite.eu
Magento seems to only use the default store view?

Resources