myPFstore Documentation : Advanced Mode

Document Date: 5 September 2008 / Version 1.0

Setting up a template for Advanced Mode.


In order to take full advantage of the features of Advanced mode, you will need to add a number of myPFstore code links into your HTML. The code links tell myPFstore what to put where.
  • myPFstore runs on PHP, so please ensure that your template page has the php file extension (eg: index.php). Your filename must match step 6 from Configure myPFstore..
  • Note about file paths - if you have set myPFstore to use SEO friendly URLs, you should ensure that any of your own links, images, stylesheets and javascript are referenced using fully qualified domian names, eg http://www.yoursite.com/images/image.jpg, not /images/image.jpg.

Mandatory myPFstore Link Codes

  • The following link codes must appear as the first two lines (before the Doctype and <head>) of any page that you with to display myPFstore content. myPFstore will not work without them.
    <?php include("includes/config.php"); ?>
    <?php include("includes/myPFstore.php"); ?>

<head> myPFstore Link Codes

  • Mandatory <head> link code - the following link code must appear within the <head> area of your page:
    <?php include("includes/head.php"); ?>
  • Optional <head> link codes - Within the <head> section of your page, the following should be used to allow your page to display dynamic titles and descriptions:
    <title><? echo $pagetitle; ?></title>
    <meta name="description" content="<? echo $storeDesc; ?> ">
    <meta name="keywords" content="<? echo $storeKeyWords; ?>">

<body> myPFstore Link Codes

  • The following link codes are used to display the various store elements and should be placed within your HTML body in the positions that you wish them to be displayed.
  • Content link code - the following link code displays the main content area of your store. This contains the sections and products from your store:
    <?php include("includes/content.php"); ?>
  • Menu link code - the following link code displays the menu content of your store. This contains the list of links to sections within your store:
    <?php include("includes/content.menu.php"); ?>
  • Breadcrumb link code - the following link code displays the breadcrumb content of your store. This contains the navigation links for your store (Storename » Section » Product Name):
    <?php include("includes/content.breadcrumb.php"); ?>
  • Language link code - the following link code displays the language select box that allows visitors to view your store in a variety of languages. This will only function if you have configured your store to use the translation services in your initial store setup:
    <?php include("includes/link.lang.php"); ?>
  • Shopping Cart link code - to display a correctly functioning shopping cart / checkout link, the following code must be used (The text within the link can be changed):
    <a href="<?php include("includes/link.cart.php"); ?>">Shopping Cart</a>
  • Help Page link code - to display a correctly functioning Help Page link, the following code must be used (The text within the link can be changed):
    <a href="<?php include("includes/link.help.php"); ?>">Store Help</a>
  • Tool Bar link code - the Language, shopping cart and help links can also be added in a single "toolbar" configuration using the following link code::
    <?php include("includes/content.topbar.php"); ?>

Customizing CSS for the linked content.

The linked content from your Printfection Store is displayed using the standard layout. To learn more about the class names and IDs that can be used for customizing using CSS, refer to the Printfection Help page.Tour custom CSS can be stored in either your Printfection Store's custom CSS settings or within a CSS file on your server.


Next Step:Additional CSS


Disclaimer

Please Note. This document has been prepared to quality standards, however, there may be some errors. If you find something that is not quite right, please let us know via our contact page.