Base URL cookieCookie Restriction Mode TranslationMagento CE Upgraded from 1.9.1.0 to 1.9.2.0 - Multi-Store - theme switches logosMagento store views inflated databaseUnder construction messageProduct custom option price scope issue in admin sideUsers can' t login at https store because of double frontend cookieCloned site still going back to old urlMulti store with different domains, cookie store is causing problemMultiple website with same domain in magento1.9Change store code in url without changing store code

Pronounciation of the combination "st" in spanish accents

What is the term when voters “dishonestly” choose something that they do not want to choose?

Constant Current LED Circuit

In Aliens, how many people were on LV-426 before the Marines arrived​?

Could Sinn Fein swing any Brexit vote in Parliament?

PTIJ: Why do we blow Shofar on Rosh Hashana and use a Lulav on Sukkos?

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

Describing a chess game in a novel

Help rendering a complicated sum/product formula

Can a medieval gyroplane be built?

Probably overheated black color SMD pads

Asserting that Atheism and Theism are both faith based positions

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Loading the leaflet Map in Lightning Web Component

Geography in 3D perspective

Bash - pair each line of file

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

Is there a term for accumulated dirt on the outside of your hands and feet?

Knife as defense against stray dogs

Maths symbols and unicode-math input inside siunitx commands

PTIJ: Do Irish Jews have "the luck of the Irish"?

How do hiring committees for research positions view getting "scooped"?

Is it possible to stack the damage done by the Absorb Elements spell?

What are substitutions for coconut in curry?



Base URL cookie


Cookie Restriction Mode TranslationMagento CE Upgraded from 1.9.1.0 to 1.9.2.0 - Multi-Store - theme switches logosMagento store views inflated databaseUnder construction messageProduct custom option price scope issue in admin sideUsers can' t login at https store because of double frontend cookieCloned site still going back to old urlMulti store with different domains, cookie store is causing problemMultiple website with same domain in magento1.9Change store code in url without changing store code













0















We want to create one Magento store with 500 different URL's
The catalog and the products would be the same, only the store logo and some CMS blocks would be different.
The checkout would all go through the main store.
SO for example, the main store would be www.mainstore.com
we would also have www.store1.com with it's own logo and header banner - www.store2.com with it's own logo and header banner.



We don't want to use Magento store views functionality because of the affect on the database, it would create a new index for each storeview.



Is there any other way to accomplish this?










share|improve this question


























    0















    We want to create one Magento store with 500 different URL's
    The catalog and the products would be the same, only the store logo and some CMS blocks would be different.
    The checkout would all go through the main store.
    SO for example, the main store would be www.mainstore.com
    we would also have www.store1.com with it's own logo and header banner - www.store2.com with it's own logo and header banner.



    We don't want to use Magento store views functionality because of the affect on the database, it would create a new index for each storeview.



    Is there any other way to accomplish this?










    share|improve this question
























      0












      0








      0








      We want to create one Magento store with 500 different URL's
      The catalog and the products would be the same, only the store logo and some CMS blocks would be different.
      The checkout would all go through the main store.
      SO for example, the main store would be www.mainstore.com
      we would also have www.store1.com with it's own logo and header banner - www.store2.com with it's own logo and header banner.



      We don't want to use Magento store views functionality because of the affect on the database, it would create a new index for each storeview.



      Is there any other way to accomplish this?










      share|improve this question














      We want to create one Magento store with 500 different URL's
      The catalog and the products would be the same, only the store logo and some CMS blocks would be different.
      The checkout would all go through the main store.
      SO for example, the main store would be www.mainstore.com
      we would also have www.store1.com with it's own logo and header banner - www.store2.com with it's own logo and header banner.



      We don't want to use Magento store views functionality because of the affect on the database, it would create a new index for each storeview.



      Is there any other way to accomplish this?







      magento-1.9 cookie base-url






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 16 '16 at 14:34









      HaimHaim

      1,243923




      1,243923




















          1 Answer
          1






          active

          oldest

          votes


















          3














          Yes, you can.



          One solution that came fist that involves little backend and not little frontend and do not preserve the domain after clicking links is:



          1. In the administration - disable the field "Auto-redirect to Base URL" from the URL Options section in System > Configuration > Web

          2. Create simple module with helper which contains a method, for the example with name formatStrByDomain, that transforms string such as foo_%s_bar to foo_store1com_bar

          In header.phtml you can replace <?php echo $this->getLogoSrc() ?> with something like this:



          <?php echo Mage::getBaseUrl('media') . '/wysiwyg/logos/' . Mage::helper('mymodule/myhelper')->formatStrByDomain('logo_%s_.png'); ?>


          And then in an editor from the admin in the image gallery you can create folder named 'logos' and upload a logo with name logo_store1com.png which will be used on the domain store1.com



          Similar to this you can change cms blocks from the layout or directly from the template from which the cms block is called.



          From the layout (The prefered way):



          instead of



          <block type="cms/block" name="cms_block.some_cms_block_from_layout">
          <action method="setBlockId">
          <identifier>some_cms_block_from_layout</identifier>
          </action>
          </block>


          you will:



          %s_some_cms_block_from_layout




          From template files:



          instead of



          <?php echo $this->getChildHtml('some_cms_block_from_layout'); // or creating and outputing cms block ?>


          You will:



          <?php 
          $someCmsBlock = $this->getChildHtml('some_cms_block_from_layout'); // or creating a cms block
          $someCmsBlock->setBlockId(Mage::helper('mymodule/myhelper')->formatStrByDomain('%s_some_cms_block_identifier'));
          ?>


          And create a cms block(s) in the admin with identifier which looks like store1com_some_cms_block_identifier



          It's up to you how you will manage the domains (through cpanel I suppose)






          share|improve this answer

























          • thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

            – Haim
            May 16 '16 at 17:51












          • Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

            – MrHellish
            May 16 '16 at 20:36











          • And when he goes to a product page from the home page what will the URL be?

            – Haim
            May 16 '16 at 20:36











          • Will be the system one, but check out this solution: stackoverflow.com/a/14835697

            – MrHellish
            May 18 '16 at 10:53












          • What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

            – Haim
            May 19 '16 at 4:00










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f115596%2fbase-url-cookie%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          Yes, you can.



          One solution that came fist that involves little backend and not little frontend and do not preserve the domain after clicking links is:



          1. In the administration - disable the field "Auto-redirect to Base URL" from the URL Options section in System > Configuration > Web

          2. Create simple module with helper which contains a method, for the example with name formatStrByDomain, that transforms string such as foo_%s_bar to foo_store1com_bar

          In header.phtml you can replace <?php echo $this->getLogoSrc() ?> with something like this:



          <?php echo Mage::getBaseUrl('media') . '/wysiwyg/logos/' . Mage::helper('mymodule/myhelper')->formatStrByDomain('logo_%s_.png'); ?>


          And then in an editor from the admin in the image gallery you can create folder named 'logos' and upload a logo with name logo_store1com.png which will be used on the domain store1.com



          Similar to this you can change cms blocks from the layout or directly from the template from which the cms block is called.



          From the layout (The prefered way):



          instead of



          <block type="cms/block" name="cms_block.some_cms_block_from_layout">
          <action method="setBlockId">
          <identifier>some_cms_block_from_layout</identifier>
          </action>
          </block>


          you will:



          %s_some_cms_block_from_layout




          From template files:



          instead of



          <?php echo $this->getChildHtml('some_cms_block_from_layout'); // or creating and outputing cms block ?>


          You will:



          <?php 
          $someCmsBlock = $this->getChildHtml('some_cms_block_from_layout'); // or creating a cms block
          $someCmsBlock->setBlockId(Mage::helper('mymodule/myhelper')->formatStrByDomain('%s_some_cms_block_identifier'));
          ?>


          And create a cms block(s) in the admin with identifier which looks like store1com_some_cms_block_identifier



          It's up to you how you will manage the domains (through cpanel I suppose)






          share|improve this answer

























          • thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

            – Haim
            May 16 '16 at 17:51












          • Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

            – MrHellish
            May 16 '16 at 20:36











          • And when he goes to a product page from the home page what will the URL be?

            – Haim
            May 16 '16 at 20:36











          • Will be the system one, but check out this solution: stackoverflow.com/a/14835697

            – MrHellish
            May 18 '16 at 10:53












          • What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

            – Haim
            May 19 '16 at 4:00















          3














          Yes, you can.



          One solution that came fist that involves little backend and not little frontend and do not preserve the domain after clicking links is:



          1. In the administration - disable the field "Auto-redirect to Base URL" from the URL Options section in System > Configuration > Web

          2. Create simple module with helper which contains a method, for the example with name formatStrByDomain, that transforms string such as foo_%s_bar to foo_store1com_bar

          In header.phtml you can replace <?php echo $this->getLogoSrc() ?> with something like this:



          <?php echo Mage::getBaseUrl('media') . '/wysiwyg/logos/' . Mage::helper('mymodule/myhelper')->formatStrByDomain('logo_%s_.png'); ?>


          And then in an editor from the admin in the image gallery you can create folder named 'logos' and upload a logo with name logo_store1com.png which will be used on the domain store1.com



          Similar to this you can change cms blocks from the layout or directly from the template from which the cms block is called.



          From the layout (The prefered way):



          instead of



          <block type="cms/block" name="cms_block.some_cms_block_from_layout">
          <action method="setBlockId">
          <identifier>some_cms_block_from_layout</identifier>
          </action>
          </block>


          you will:



          %s_some_cms_block_from_layout




          From template files:



          instead of



          <?php echo $this->getChildHtml('some_cms_block_from_layout'); // or creating and outputing cms block ?>


          You will:



          <?php 
          $someCmsBlock = $this->getChildHtml('some_cms_block_from_layout'); // or creating a cms block
          $someCmsBlock->setBlockId(Mage::helper('mymodule/myhelper')->formatStrByDomain('%s_some_cms_block_identifier'));
          ?>


          And create a cms block(s) in the admin with identifier which looks like store1com_some_cms_block_identifier



          It's up to you how you will manage the domains (through cpanel I suppose)






          share|improve this answer

























          • thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

            – Haim
            May 16 '16 at 17:51












          • Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

            – MrHellish
            May 16 '16 at 20:36











          • And when he goes to a product page from the home page what will the URL be?

            – Haim
            May 16 '16 at 20:36











          • Will be the system one, but check out this solution: stackoverflow.com/a/14835697

            – MrHellish
            May 18 '16 at 10:53












          • What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

            – Haim
            May 19 '16 at 4:00













          3












          3








          3







          Yes, you can.



          One solution that came fist that involves little backend and not little frontend and do not preserve the domain after clicking links is:



          1. In the administration - disable the field "Auto-redirect to Base URL" from the URL Options section in System > Configuration > Web

          2. Create simple module with helper which contains a method, for the example with name formatStrByDomain, that transforms string such as foo_%s_bar to foo_store1com_bar

          In header.phtml you can replace <?php echo $this->getLogoSrc() ?> with something like this:



          <?php echo Mage::getBaseUrl('media') . '/wysiwyg/logos/' . Mage::helper('mymodule/myhelper')->formatStrByDomain('logo_%s_.png'); ?>


          And then in an editor from the admin in the image gallery you can create folder named 'logos' and upload a logo with name logo_store1com.png which will be used on the domain store1.com



          Similar to this you can change cms blocks from the layout or directly from the template from which the cms block is called.



          From the layout (The prefered way):



          instead of



          <block type="cms/block" name="cms_block.some_cms_block_from_layout">
          <action method="setBlockId">
          <identifier>some_cms_block_from_layout</identifier>
          </action>
          </block>


          you will:



          %s_some_cms_block_from_layout




          From template files:



          instead of



          <?php echo $this->getChildHtml('some_cms_block_from_layout'); // or creating and outputing cms block ?>


          You will:



          <?php 
          $someCmsBlock = $this->getChildHtml('some_cms_block_from_layout'); // or creating a cms block
          $someCmsBlock->setBlockId(Mage::helper('mymodule/myhelper')->formatStrByDomain('%s_some_cms_block_identifier'));
          ?>


          And create a cms block(s) in the admin with identifier which looks like store1com_some_cms_block_identifier



          It's up to you how you will manage the domains (through cpanel I suppose)






          share|improve this answer















          Yes, you can.



          One solution that came fist that involves little backend and not little frontend and do not preserve the domain after clicking links is:



          1. In the administration - disable the field "Auto-redirect to Base URL" from the URL Options section in System > Configuration > Web

          2. Create simple module with helper which contains a method, for the example with name formatStrByDomain, that transforms string such as foo_%s_bar to foo_store1com_bar

          In header.phtml you can replace <?php echo $this->getLogoSrc() ?> with something like this:



          <?php echo Mage::getBaseUrl('media') . '/wysiwyg/logos/' . Mage::helper('mymodule/myhelper')->formatStrByDomain('logo_%s_.png'); ?>


          And then in an editor from the admin in the image gallery you can create folder named 'logos' and upload a logo with name logo_store1com.png which will be used on the domain store1.com



          Similar to this you can change cms blocks from the layout or directly from the template from which the cms block is called.



          From the layout (The prefered way):



          instead of



          <block type="cms/block" name="cms_block.some_cms_block_from_layout">
          <action method="setBlockId">
          <identifier>some_cms_block_from_layout</identifier>
          </action>
          </block>


          you will:



          %s_some_cms_block_from_layout




          From template files:



          instead of



          <?php echo $this->getChildHtml('some_cms_block_from_layout'); // or creating and outputing cms block ?>


          You will:



          <?php 
          $someCmsBlock = $this->getChildHtml('some_cms_block_from_layout'); // or creating a cms block
          $someCmsBlock->setBlockId(Mage::helper('mymodule/myhelper')->formatStrByDomain('%s_some_cms_block_identifier'));
          ?>


          And create a cms block(s) in the admin with identifier which looks like store1com_some_cms_block_identifier



          It's up to you how you will manage the domains (through cpanel I suppose)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 52 mins ago









          Teja Bhagavan Kollepara

          3,00641949




          3,00641949










          answered May 16 '16 at 17:44









          MrHellishMrHellish

          563




          563












          • thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

            – Haim
            May 16 '16 at 17:51












          • Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

            – MrHellish
            May 16 '16 at 20:36











          • And when he goes to a product page from the home page what will the URL be?

            – Haim
            May 16 '16 at 20:36











          • Will be the system one, but check out this solution: stackoverflow.com/a/14835697

            – MrHellish
            May 18 '16 at 10:53












          • What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

            – Haim
            May 19 '16 at 4:00

















          • thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

            – Haim
            May 16 '16 at 17:51












          • Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

            – MrHellish
            May 16 '16 at 20:36











          • And when he goes to a product page from the home page what will the URL be?

            – Haim
            May 16 '16 at 20:36











          • Will be the system one, but check out this solution: stackoverflow.com/a/14835697

            – MrHellish
            May 18 '16 at 10:53












          • What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

            – Haim
            May 19 '16 at 4:00
















          thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

          – Haim
          May 16 '16 at 17:51






          thanks MrHellish! if I point store.com and store2.com to the root domain that should be enough, no? But what would a visitor to the site see? store1.com or systemurl.com?

          – Haim
          May 16 '16 at 17:51














          Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

          – MrHellish
          May 16 '16 at 20:36





          Yes, you can point them but not with redirect, but with A record. The visitor will see the site which he opens.

          – MrHellish
          May 16 '16 at 20:36













          And when he goes to a product page from the home page what will the URL be?

          – Haim
          May 16 '16 at 20:36





          And when he goes to a product page from the home page what will the URL be?

          – Haim
          May 16 '16 at 20:36













          Will be the system one, but check out this solution: stackoverflow.com/a/14835697

          – MrHellish
          May 18 '16 at 10:53






          Will be the system one, but check out this solution: stackoverflow.com/a/14835697

          – MrHellish
          May 18 '16 at 10:53














          What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

          – Haim
          May 19 '16 at 4:00





          What if we developed a module that would duplicate Magento functionality that allows for a different base URL per store view, without creating index and catalog tables for each store view? is that even possible?

          – Haim
          May 19 '16 at 4:00

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f115596%2fbase-url-cookie%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

          Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

          Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko