View Single Post
  #1  
Old 08-16-2005, 04:25 PM
  gearboxpc's Avatar 
gearboxpc gearboxpc is offline
 

Newbie
  
Join Date: Aug 2005
Location: Cleveland, OH
Posts: 7
 

Default Newsletter - Specials Email Sign-Up At Top Of Page

Our company needed a mod for xcart that would allow us to do away with the news sidebox, and to put up a newsletter - specials sign-up at the top of the site. We had no need for the news portion of the box yet wanted to keep the part that would allow customers to subscribe easily.

You can view an example of this mod here:
http://www.gearboxpc.com/xcart/product.php?productid=16135&cat=253&page=1

Here is our mod, written on xcart Version 4.0.14:


1 - Create a file in your skin1 directory named news_subscribe_top.tpl

2 - Paste the following code into that file and save it:

Code:
{* $Id: news_subscribe_top.tpl,v 1.0 2005/08/16 04:58:00 gear box computers $ *} <table border="0" cellpadding="0" cellspacing="0"> <tr> {if $active_modules.News_Management && $is_news_exist eq 'Y'} <FORM action="{$xcart_web_dir}/mail/subscribe.php" name="subscribeform"> <td nowrap>[img]{$ImagesDir}/spacer.gif[/img]</td> <td nowrap>Get Specials By Email: </td> <td nowrap>[img]{$ImagesDir}/spacer.gif[/img]</td> <td nowrap><INPUT name="newsemail" type="text" value="Enter Your Email Address" size="25"></td> <td nowrap>[img]{$ImagesDir}/spacer.gif[/img]</td> <td nowrap>{include file="buttons/subscribe_menu.tpl"}</td> <td nowrap>[img]{$ImagesDir}/spacer.gif[/img]</td> </form> {/if} </tr> </table>

3 - In skin1/customer/home.tpl find the following line of code:

Code:
{ include file="news.tpl" }

4 - Change to:

Code:
{* { include file="news.tpl" } *}
--this comments out the news box--

5 - Open skin1/head.tpl and paste the following line between the <td>i.e. paste here</td> tags where you would like it displayed:

Code:
{include file="news_subscribe_top.tpl"}

That's it 5 easy steps - enjoy!
__________________
Version 4.0.14
http://www.gearboxpc.com (non-xcart)
http://www.gearboxpc.com/xcart/home.php (moving to xcart - under development)
Reply With Quote