One Magento, One Catalog, Multple Domains, Multi Language, Shared Shopping Cart, SSL on Checkout

One Magento, One Catalog, Multple Domains, Multi Language, Shared Shopping Cart, SSL on Checkout

September 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
One Magento, One Catalog, Multple Domains, Multi Language, Shared Shopping Cart, SSL on Checkout

Achieving Multilingual Magento Setup with Shared Cart and SSL Checkout

Hello developers! Today we’re going to tackle a common yet intricate setup for your Magento store - handling multiple domains, languages, and shared shopping carts while ensuring secure checkout.

Setting Up the Foundation

First things first, let’s make sure our server environment is configured correctly. Since you’re using DirectAdmin, here are the key steps:

  1. Create a Virtual Host: Set up your primary domain (domain.nl) as the main virtual host in DirectAdmin.
  2. Add Domain Aliases: Configure domain.de and domain.se as domain aliases under the same user account. This ensures they share the same file structure.

Configuring Magento for Multiple Languages

Now let’s dive into Magento configuration:

  1. Create Stores and Views:

    • Go to Admin > System > Manage Stores
    • Click on “Add Store”
    • Set the Website and Store Name accordingly (e.g., Dutch, German, Swedish)
    • Configure the URL keys for each store view
  2. Configure Language Settings:

    • Navigate to System > Configuration > General > General
    • Under “Locale Options”, set the “Default Config” for each language
    • Remember to save and apply changes in the top-right corner

Sharing the Shopping Cart Across Domains

Here’s where it gets tricky. To share the shopping cart across domains:

  1. Enable Shared Cookie Domain:

    • Go to Admin > System > Configuration > General > Web
    • Under “Session Storage”, set “Cookie Domain” to match your primary domain (like .domain.nl)
    • Save and apply changes
  2. Configure Session Lifetime:

    • In the same section, ensure “Session Lifetime” is set to a reasonable value for all stores
    • This ensures sessions are valid across domains

Implementing SSL on Checkout

For secure checkout:

  1. Purchase an SSL Certificate: Acquire a certificate from your preferred provider (e.g., Let’s Encrypt)

  2. Configure Magento:

    • Go to Admin > System > Configuration > General > Web
    • Under “Base URLs”, set:
      • Base URL: https://domain.nl for the primary domain
      • Secure Base URL: https://domain.nl (same as above)
      • Base Skin URL: /skin/frontend/default/your-theme/ (replace with your theme name)
      • Base Media URL: /media/
    • Save and apply changes
  3. Update Your Theme:

    • Ensure your theme is configured to use the correct media paths

Connecting Domains and Languages

Now for the crucial part - connecting domains to their respective languages:

  1. Configure Domain Aliases:

    • In DirectAdmin, under “Domain Setup” > “Aliases”
    • Add domain.de and domain.se as aliases
    • Set the website key (www.domain.nl) in the “Website key” field
  2. Update Magento Configuration:

    • Go to Admin > System > Configuration > General > Web
    • Change each store view’s URL under “Web” -> “Base URLs”
      • For domain.de: Base URL = https://domain.de, Secure Base URL = https://domain.de
      • For domain.se: Base URL = https://domain.se, Secure Base URL = https://domain.se

Testing the Setup

To verify everything is working:

  1. Access each domain:
    • You should see the correct language flag and cart contents
  2. Add items to the cart on any domain:
    • Switch languages using the flags
    • Observe that the cart persists across all domains
  3. Attempt checkout:
    • Ensure you’re redirected to https://domain.nl for secure checkout

Remember, this setup assumes your server is properly configured with all necessary PHP and database settings compatible with Magento 1.6.2.0.

If you’re looking for further guidance or need to streamline your Magento development process, don’t forget to check out LaravelCompany. Our expertise covers everything from custom theme development to advanced extension creation.

Happy coding!

Checkout Catalog Admin Configuration

Our network