Ad Banner Module for X-cart Documentation
Place banners anywhere! Seamlessly integrate Ads and banners into your existing X-cart site!! Associate Ad / Banners with your X-cart categories and display only relevant ads to customers!
Example of how to set up 3 banners on your X-cart store
This documentation will step you through putting a banner in the left menu, middle of your site, and right menu.
Step 1 – Setting up the 3 banner types in the X-cart admin
- Log into your X-cart admin
- Click on the “Ad Banner” link
- Scroll down till you see the “Banner Types” section
- Enter the text (for example): “bottom_left_menu”
- Click “Add New Type”
- Enter the text (for example): “bottom_middle”
- Click “Add New Type”
- Enter the text (for example): “bottom_right_menu”
- Click “Add New Type”
Now you have 3 types added to the Ad/banner system.
Step 2 – Adding The Banner Code To Your Website
(The code to find will depend on your X-cart version and template look, this is for a guideline only)
- Open up skin1/customer/home.tpl in your favorite template editor (notepad works fine for this)
- To place the “bottom_left_menu” banner
- Find this code: {include file=”help.tpl” }
- After the help include, insert this code: { include file=”customer/main/ad_banner.tpl” banner_type=”bottom_left_menu”}
- Note how we changed the “your banner type here” text in this include line to be the banner type you created in the admin
- To place the “bottom_middle” banner
- Find this code: {include file=”customer/home_main.tpl”}
- After that code, insert this code: { include file=”customer/main/ad_banner.tpl” banner_type=”bottom_middle”}
- Note how we changed the “your banner type here” text in this include line to be the banner type you created in the admin
- To place the “bottom_right_menu” banner
- Find this code: { if $active_modules.Interneka ne “”}
{ include file=”modules/Interneka/menu_interneka.tpl” }
- After that code, insert this code: { include file=”customer/main/ad_banner.tpl” banner_type=”bottom_right_menu”}
- Note how we changed the “your banner type here” text in this include line to be the banner type you created in the admin
- Find this code: { if $active_modules.Interneka ne “”}
- Code insertion all done! You can do this as many times as you like. Once for each banner spot you want to have on your site.
Step 3 – How To Add Banners To Your Site
- Log into your X-cart admin
- Click on the “Ad banner” link
- Fill in any fields you want in the “Add Banners” section. Note that only the “image” OR the “HTML banner” sections are required.
- Note that we recommend the priority be about 10 or greater for better random rotation of the banners.
<b/r>