View Single Post
  #5  
Old 10-20-2007, 08:01 PM
 
Steel Steel is offline
 

eXpert
  
Join Date: Dec 2006
Posts: 253
 

Default Re: replace buy now button with regular form button

Hello groovedis and mocara,

I have found the following code change to work in MS IE 7.0, but do not know if it will work in other browsers. I should also mention that I have eliminated the X-Cart menu, so lines 2 through 6 of the original code may be required.

***(If anyone knows that this code change fouls the layout in other browsers, please post a reply and I will delete this post).***

File: /buttons/button.tpl

Replace the following code:
Quote:
{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
{if $button_style eq "menu"}
{assign var="add_style" value="_menu"}
{else}
{assign var="add_style" value=""}
{/if}
<table cellspacing="0" cellpadding="0" onclick="{$js_link}" class="ButtonTable"{if $title ne ''} title="{$title|escape}"{/if}>
{strip}
<tr>
<td>
<{$img_type} src="{$ImagesDir}/but{$add_style}1.gif" class="ButtonSide{$add_style}" alt="{$title|escape}" />
</td>
<td class="Button{$add_style}"{$reading_direction_tag} >
<font class="Button{$add_style}">{$button_title}</font>
</td>
<td>
<img src="{$ImagesDir}/but{$add_style}2.gif" class="ButtonSide{$add_style}" alt="{$title|escape}" />
</td>
</tr>
{/strip}


With this code:
Quote:
{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
<table cellspacing="0" cellpadding="0" onclick="{$js_link}" class="ButtonTable"{if $title ne ''} title="{$title|escape}"{/if}>
{strip}
<tr>
<td>
<input type="button" value="{$button_title}" name="self.location">
</td>
</tr>
{/strip}

As for changing the other form action buttons, my thinking is that a variety of images are necessary, so there may not be any gain in having a regular html button. At this point I have just made changes to the /images/go.gif and /images/question_button.gif.

I thought I had accomplished this change (convert image button to html button with image) at one point, but have since lost my original work. Anyone know this code modification?
__________________
X-Cart Gold v4.6.6
Reply With Quote