Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

1 - Creating a static page

1 - Creating a static page

An asset is any file used by Elastic Path to run the Storefront or Commerce Manager Client. For example, a product image, store banner, and HTML page are all assets.

The assets that define the look of an Elastic Path store, such as Velocity templates and web pages, are grouped together under a Themes. When adding new web pages to your store, you add the pages to your store's theme.

For this tutorial, you will add a new page to the out-of-the-box demo store. Themes used by the out-of-the-box demo store are found in the <Source Code Root>extensions/assets/ext-assets/src/main/assets/themes directory.

Note:

A symlink to the assets stored in the stores/snapitup-assets and ep-assets/application-assets directories can be found in your <home>/ep-assets directory.

Out of the box, the Commerce Engine points to this symlink to access the demo store's assets. If you want to make use of the extension assets project in this tutorial, you will need to configure the Commerce Engine to point to the extension assets project. For instructions on how to do this, see Managing Assets.

To create a static Privacy Policy page for the demo store:

  1. Navigate to the velocity templates directory <Source Code Root>extensions/assets/ext-assets/src/main/assets/themes/electronics/default/templates/velocity /electronics/default/templates/velocity
  2. Under velocity, create a directory named static.
  3. In static, create a text file and insert the following HTML code:
    <h1>Privacy policy</h1>
    <p>This privacy policy sets out how Snap It Up uses and protects any information that you give Snap It Up when you use this website.
    Snap It Up is committed to ensuring that your privacy is protected. Should we ask you to provide certain information by which you can
    be identified when using this website, then you can be assured that it will only be used in accordance with this privacy statement.
    Snap It Up may change this policy from time to time by updating this page. You should check this page from time to time to ensure
    that you are happy with any changes. This policy is effective from January 1, 2009.</p>
    <h2>What we collect</h2>
    <p>We may collect the following information:</p>
    <ul>
    <li>name and job title</li>
    <li>contact information including email address</li>
    <li>demographic information such as postcode, preferences and interests</li>
    <li>other information relevant to customer surveys and/or offers</li>
    </ul>
    <h2>What we do with the information we gather</h2>
    <p>We require this information to understand your needs and provide you with a better service, and in particular for the following
    reasons:</p>
    <ul>
    <li>Internal record keeping. </li>
    <li>We may use the information to improve our products and services. </li>
    <li>We may periodically send promotional email about new products, special offers or other information which we think you may find
    interesting using the email address which you have provided.</li>
    <li>From time to time, we may also use your information to contact you for market research purposes. We may contact you by email,
    phone, fax or mail. We may use the information to customise the website according to your interests.</li>
    </ul>
    
    <h2>Security</h2>
    <p>We are committed to ensuring that your information is secure. In order to prevent unauthorised access or disclosure we have put in
    place suitable physical, electronic and managerial procedures to safeguard and secure the information we collect online.</p>
    
    <h2>How we use cookies</h2>
    <p>A cookie is a small file which asks permission to be placed on your computer's hard drive. Once you agree, the file is added and the
    cookie helps analyse web traffic or lets you know when you visit a particular site. Cookies allow web applications to respond to you as
    an individual. The web application can tailor its operations to your needs, likes and dislikes by gathering and remembering information
    about your preferences. </p>
    <p>We use traffic log cookies to identify which pages are being used. This helps us analyse data about web page traffic and improve our
    website in order to tailor it to customer needs. We only use this information for statistical analysis purposes and then the data is
    removed from the system. </p>
    <p>Overall, cookies help us provide you with a better website, by enabling us to monitor which pages you find useful and which you do
    not. A cookie in no way gives us access to your computer or any information about you, other than the data you choose to share with us. </p>
    <p>You can choose to accept or decline cookies. Most web browsers automatically accept cookies, but you can usually modify your browser
    setting to decline cookies if you prefer. This may prevent you from taking full advantage of the website.</p>
    
    <h2>Links to other websites</h2>
    <p>Our website may contain links to other websites of interest. However, once you have used these links to leave our site, you should note
    that we do not have any control over that other website. Therefore, we cannot be responsible for the protection and privacy of any
    information which you provide whilst visiting such sites and such sites are not governed by this privacy statement. You should exercise
    caution and look at the privacy statement applicable to the website in question.</p>
    
    <h2>Controlling your personal information</h2>
    <p>You may choose to restrict the collection or use of your personal information in the following ways:</p>
    <ul>
    <li>whenever you are asked to fill in a form on the website, look for the box that you can click to indicate that you do not want the
    information to be used by anybody for direct marketing purposes</li>
    <li>if you have previously agreed to us using your personal information for direct marketing purposes, you may change your mind at any
    time by writing to or emailing us at admin@snapitup.com</li>
    </ul>
    <p>We will not sell, distribute or lease your personal information to third parties unless we have your permission or are required by
    law to do so. We may use your personal information to send you promotional information about third parties which we think you may find
    interesting if you tell us that you wish this to happen.
    </p><p>You may request details of personal information which we hold about you under the Data Protection Act 1998. A small fee will be
    payable. If you would like a copy of the information held on you please write to us.</p>
    <p>If you believe that any information we are holding on you is incorrect or incomplete, please write to or email us as soon as
    possible, at the above address. We will promptly correct any information found to be incorrect.</p>
  4. Save this file as privacy.vm.
    Note:

    You must save your static HTML pages with a .vm extension. If you don't use the .vm extension, Elastic Path won't be able to find the page.