 |
 |
 |
| |
ad banner module for xcart 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 setup 3 banners on your X-cart store -one below the left menu, one below the middle of your site and one below the 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 the help include, 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: {include file="customer/home_main.tpl"}
- After the help include, 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
- 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.
Buy Ad Banner for X-cart!
|
 |
 |
 |
 |
|