I'm working on a Magento 2.4.2 with different websites. If a user add some items on a Web Site, open a new tab on the same browser and then visites another Web Site, the cart get emptied.
How can I stop Magento from doing that?
assuming a single domain, you have multiple websites created in Admin -> Stores -> Settings -> All Stores
Make sure that in Stores -> Configuration -> Customers ->
Customer Configuration -> Account Sharing Options section.
Set the “Share Customer Accounts” setting to “Global”
Related
When change store view in Magento frontend. then currency should be change for each store view.
I will paraphrase the answer of St0iK. You can't set different base currency per store, but you can do it per website. First you have to go to the admin panel -> System -> Configuration -> CATALOG -> Catalog -> Price -> Catalog Price Scope and change it from Global to Website. Now when you go to the admin panel -> System -> Configuration -> GENERAL -> Currency Setup -> Currency Options you can change Base Currency per Website, not only for Default (Global). So you have to transfer you stores to websites and you will be able to do what you want.
you have to go for System > configuration > Under current configuration scope > select stores and according to that under General > currency set up , chnage currency
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.
in our Magento Shop we have 2 StoreViews for 2 different languages. Since both StoreViews uses the same URLs, only one Storeview is beiing indexed by Google in the correct country. Is it possible to automatically change the URLs of the one StoreView to make it unique for both StoreViews?
Thanks,
Toby
You can change your store url and can have a different url for different stores.
Go to System -> configuration -> Select the Store view in the drop down (Default config) -> Go to Web -> Uncheck the Use default option and Enter the URl for the Store view..
Hope this helps you
I have a Joomla website and there are two sections to the site. One section is for the public and the other is for retailers which have to be approved. What I need is to create a group of users which are the only ones who can access the retailer section of the site. These users don't get any editing/publishing/administrator roles; they're just registered users with special access. I've tried several extensions but had no luck with it. Does anyone know how this can be done?
You don't need groups: you just have to make sure to disable the "self registration" option (from admin control panel: Global Configuration -> system -> Allow User Registration = No)
Also, you'll have to configure each article/menu to have Access Level "public"/"registered".
You can register new users from the admin control panel and only they will be able to view "registered" content.
Read this :-
http://docs.joomla.org/Access_Control_List/1.6-2.5/Tutorial
http://extensions.joomla.org/extensions/access-a-security/site-access/backend-a-full-access-control/9040
Search about access control list.
I have a Magento installation with two store versions: Store A and Store B. When you go to 'mydomain.com' I get this error message:
'There was no Home CMS page configured or found.'
Until you click on the link for either Store A or Store B -- then it saves the store in a cookie called 'store' and remembers this when you go to 'mydomain.com'.
Is it possible to set 'Store A' as the selected store / homepage by default if no 'store' cookie exists yet?
Thanks for any help!
In the admin you go to System -> Configuration -> Web -> Default Pages
You will have to change to the website / store view that you want to change (the dropdown in the upper left corner). You will probably have to create a new CMS page if you want to have something different from your default home page.
go to System -> CMS -> Pages
choose Home Page Cms
and asign all view states that you want them for this cms
you could do it for another cms too