Working with templates...

The catalog templates for your system are stored in the directory ckinc/themes/yourtheme

We suggest you make a copy of one of the default theme directory which has the navigation method you desire to use. Rename this new directory so you have the original ones as a backup. The template file /ckinc/themes/yourtheme/ckshop.php contains most of the script includes to display information in the catalog. This is the first file you will want to work with. Simply insert YOUR html into this file and arrange the script includes for the catalog inside of your design. Adjust the CSS styles in the directory
/ckinc/themes/yourtheme/css

The below includes dynamically display the data from the catalog.

Item and Category Display

<script language="php">include("$incdir/title.php");</script>
(Shows category/item name and sub category display)

< script language="php">include("$incdir/products.php");</script>
(To add the products)

Navigation Includes
(don't be confused. We've given you a lot of options. Look at the navigation includes used in the default templates for reference)

< script language="php">include("$incdir/navbar.php");</script>
(standard navigation include will display vertical or horizontal depending on css (use inline for horizontal, block for vertical)

< script language="php">include("$incdir/breadcrumb.php");</script>
(the bread crumb bar)

< script language="php">include("$incdir/navhomelink.php");</script>
(same as above with inclusion of a link to home page)

< script language="php">include("$incdir/navbarmulti.php");</script>
(top navigation for the default multi level template)

< script language="php">include("$incdir/current_subcats.php");</script>
(side navigation for the default multi level template)

< script language="php">include("$incdir/split_navbar.php");</script>
(used to display the parent categories in the horizontal template)

< script language="php">include("$incdir/split_navbarhomelink.php");</script>
(same as above with homepage link)

< script language="php">include("$incdir/subnav_only.php");</script>
(used to display the sub categories in the horizontal template)

< script language="php">include("$incdir/usernav.php");</script>
(used to display the sub categories in the horizontal template)

< script language="php">include("$incdir/viewcontents.php");</script>
(shows cart contents qty and total and button to view cart)

< script language="php">include("$incdir/cartcontents.php");</script>
(shows cart contents qty and total without button)

< script language="php">include("$incdir/viewcontents.php");</script>
(To add cart contents)

<script language="php">include("$incdir/sitenav.php");</script>
(To create the links to pages stored in the CMS)

Search Boxes

<script language="php">include("$incdir/search.php");</script>
(keyword search)

<script language="php">include("$incdir/catnum.php");</script>
(To create a drop down catalog number search)

<script language="php">include("$incdir/price.php");</script>
(To create a drop down price range search)

<script language="php">include("$incdir/categories.php");</script>
(To create a drop down category search)

Hidden Data

<script language="php">include("$incdir/meta.php");</script>
(To add meta tags to your catalog page)

<script language="php">include("$incdir/metatitle.php");</script>
(To add a customizable title tag to your catalog page)

<script language="php">include("$incdir/openinfo.php");</script>
(needed to open up the database connection)

<script language="php">mysql_close();</script>
(needed to close the connection)

Please note that the user pages for the wishlist, order summary and account information have login checks at the top of each file before the opening html. These should not be removed.

Other Pages
(typically these will replace title.php and products.php in the template)

<script language="php">include("$incdir/advsearch.php");</script>
(To create an advanced search form, used in the advancedsearch.php page)

<script language="php">include("$incdir/wholesaleinc.php");</script>
(To create the wholesale area, used in the wholesalers.php page)

<script language="php">include("$incdir/userconfirm.php");</script>
(Shows account links after login)

<script language="php">include("$incdir/forgot.php");</script>
(Shows password retrieval form)

<script language="php">include("$incdir/loginform.php");</script>
(shows account login form)

<script language="php">include("$incdir/ordersummary.php");</script>
(shows order summary)

<script language="php">include("$incdir/orderdetail.php");</script>
(shows order detail)

<script language="php">include("$incdir/registerform.php");</script>
(shows registration form)

<script language="php">include("$incdir/wishlist.php");</script>
(shows shows wishlist)

Displaying Content with the CMS

The template for displaying information from the CMS (display_page.php) uses a few more special tags as listed below:

display the page title
<title> <?=$title ?> </title>

display the meta keywords
<meta name="Keywords" content="<?=$kw ?>">

display the page meta description

<meta name="Description" content="<?=$ds ?>">

display the page content
<?=$content ?>

Inserting Editable Sections in Your Template

If you are using themes and wish to make sections of your template editable create a .inc file under the theme/themename directory. Be sure to set the permissions on the file to 777 so it is editable. The below is an example of how to insert the include file into your template.

<script language="php">include("$incdir/themes/$Theme/logo.inc");</script>

You may also choose to store the editable section in the database. This is called a SNIPPET. After you create a snippet the system will display the necessary code needed to show the snippet. You can show snippets in either a PHP page or by using SSI.

The User Templates

The user templates are referred to as files needed to display the special enduser pages for account login, order view and wishlists.

Return to Index