Display Content Category Name and Related Links Anywhere in Your Site

Please use the snippet below to display a particular content category name:
<%ShowContentBoxCatName "categoryid"%>

Note: Categoryid is the name of the content category ID that you wish to display.

 

For example, if the name of the content category ID is “1,” then the snippet that you will insert will be similar to the one below:

<%ShowContentBoxCatName "1"%>

 

You may want to know where you can find the content category ID.

Please follow the steps below on how you can locate the content category ID :

 

1.   Login to your VPCart Administration.

 

2.   Go to: Store > Page Manager

 

3.   Choose Content Categories in the tab.

 

4.   “ncategoryid” column is the content category ID and “ncatdescription” is the content category name that you may wish to display in the site.

 

 

Furthermore, please use the snippet below to display a particular content category-related link:
<%ShowContentBox "categoryid","x"%>

 

Note: Categoryid is the name of the content category ID that you wish to display.

X is the number of records of related links you wish to display.

If the name of the content category ID is “1,” and you wish to display 3 records of related links, then the snippet will be similar to the one below:

<%ShowContentBox "1","3"%>

 

For example, if you wish to display content category ID 1 and 3 related link records at the top of the “Welcome to my Online Store” text, then please follow the steps below:

 

1.   Open the “shoppage_header.htm file located in the “templates\default folder.

 

2.   Insert these snippet at the very bottom line of the file:

<%ShowContentBoxCatName "1"%>

<%ShowContentBox "1","3"%>

 

3.   Save the file and upload to your site.

 

Preview of the example :

 

Note: The insertion of the snippet at the bottom line of the file as stated above is just an example. You can insert that snippet anywhere in your site. The possible template could be placed in shoppage_header.htm or shoppage_trailer.htm.