Header Scripts

You can define custom help or context sensitive help in uStore by creating an HTML file and entering it in the appropriate text box. This section is found when you login to uStoreAdmin and then do the following steps:

  1. Open the store.
  2. Go to Store Setting.
  3. Select Set Up Store.
  4. Go to the Advanced tab.
  5. In the Storefront Help Info section, you enter name of the help file(s) in Custom Help File or Context Senstive Help.

image
Click image to enlarge.
Its easy to create an HTML help file, but if you use the same file for multiple stores, its a good idea to make this file a redirect page which takes the user to the actual help file. The reason for this is that sometime down the road, you may decide to use a page with a different name, or in my case, the page could be hosted in a Joomla site where the name for a new help file that I create will be different.
If you only have one store, then it doesn’t matter what you name the file since its easy to replace, but if your hosting hundreds of stores it will not be a small task to replace all of the links with a new filename.
A simple solution is to make the help file an .ASPX redirect page. Each store will have the same file and if you create a new help file, the only thing you need to do is modify your .ASPX redirect file
The following page is an an .ASPX file which is saved in your XMPie installation at \XMPie\uStore\App\CustomerApp. Modify the red text to the actual URL of the help text.
—[ Help.aspx ]——————————–
<%@ Page Language=”C#” %>
<!DOCTYPE html>
<script runat=”server”>
</script>

<html>
  <head runat=”server”>
    <title>
uStore Help</title>
    <meta http-equiv=”Refresh” content=”0; url=http://mycms/ustore/help-12102013/>
    <!– If the meta tag doesn’t work, try JavaScript to redirect. –>
    <script type=”text/javascript”>
      window.location.href = “
http://mycms/ustore/help-12102013
    </script>
  </head>

  <body>
    <form id=”form1″ runat=”server”>
      <div>
        <!– If JavaScript doesn’t work, give a link to click on to redirect. –>
        <p>If you are not redirected automatically, click <a href=’
http://mycms/ustore/help-12102013‘>here</a>.</p>
      </div>
    </form>
  </body>
</html>

Print Friendly, PDF & Email
Translate »