To display containers or cart elements into your site, you can also insert the snippet below to load container names in the containerbox table:
<% LoadContainerByName "ContainerDivName", "ContainerName", "SeqNo" %>
Note:
ContainerDivName: The value of the ContainerDivName in the Containerbox table.
ContainerName: The value of the ContainerName in the
Containerbox table.
SeqNo: If both the ContainerDivName & ContainerName are the same, then enter the value of the result you want to display.
If you want to display the first result, then the SeqNo is 1. If you want to display the 2nd result, then the SeqNo is 2. If SeqNo is empty, then VPCart will always choose the first result.
To identify the
ContainerDivName and ContainerName that you want to load in
your desired container, you can follow the steps below:
1. Log in to your VPCart Control Panel.
2. Go to: Misc > Edit Table.
3. Select “Containerbox” in the dropdown menu.
4. Click “Edit Table.”
5. You will then see which ContainerDivName and ContainerName column you want to display.
For example, if you wish to display Currency Container 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 this snippet at the very bottom line of the file (Currency container with ContainerDivName = welcomeboxsquare and ContainerName = currency):
<% LoadContainerByName
"welcomeboxsquare","currency","" %>
3. Save the file and upload to your site.
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.”
Preview of the
example: