cancel
Showing results for 
Search instead for 
Did you mean: 

i have a question about Vacation Message , please

i have a question about Vacation Message , please

I need to set a Vacation message in Magento as I will be closing my store for a week. So far I found that editing text in Demo Store notice works ok. But I am not sure if editing text in Demo Mode and turning it on is a good idea, because I read somewhere that google doesnt like when Demo Mode is turned on Active store, maybe I am wrong.

 

Any recommendation how should I proceed ? I only need to put a message, I don't want to turn off checkout.

2 REPLIES 2

Re: i have a question about Vacation Message , please

Its not a good idea but for temporary it's working for your store. There is no any side effects of it.

If you don't enable Demo store notice, then you have to add a message using programmatically way.

So change demo store notice is a good way to notify to your customer.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: i have a question about Vacation Message , please

To set a vacation message in Magento without turning off the checkout, you can follow these steps:

 

  1. Create a New CMS Page:

    • Go to Content > Pages.
    • Click Add New.
    • Give the page a title like "Vacation Message".
    • In the Content section, add your vacation message. You can customize the message to include your store's closing dates, contact information, or any other relevant details.
  2. Insert the CMS Page into the Header or Footer:

    • Go to Content > Design.
    • Choose the theme you're using.
    • Go to Layout > Default.
    • In the appropriate section (header or footer), insert the CMS page you created. You can use the following code:
    HTML
    <referenceContainer name="header.container">
        <block class="Magento\Cms\Block\Block" name="vacation_message">
            <arguments>
                <argument name="block_id" xsi:type="string">vacation_message</argument>
            </arguments>
        </block>
    </referenceContainer>
    
    Use code with caution.
     

    Replace header.container with footer.container if you want to display the message in the footer.

  3. Save and Deploy:

    • Save your changes and deploy the theme.

This approach allows you to display a vacation message to your customers without affecting the checkout functionality. By creating a separate CMS page, you can easily customize the message and manage it independently from your store's other linked in content.