Well, the title says it all: should be in cs-cart, not?
just to prevent double-ordering (in weird cases, who knows)
and also it is clearer for the customer that he actually clicked this button,
since sometimes it can take a few secs b4 something happens…
just add some javascript to the button to achieve this.
dont have time now, otherwise will do later, or someone else…
[quote name=‘nwsco’]Well, the title says it all: should be in cs-cart, not?
just to prevent double-ordering (in weird cases, who knows)
and also it is clearer for the customer that he actually clicked this button,
since sometimes it can take a few secs b4 something happens…
just add some javascript to the button to achieve this.
dont have time now, otherwise will do later, or someone else…[/QUOTE]I did this last week. Here is my button.tpl code. I added one line and modified another as seen in red below:
```php
{* $Id: button.tpl 1519 2006-04-05 10:32:37Z lantan $ }
{if $client_env.is_javascript == “N” and $but_type == “input”}{ and $but_style != “text”}
{else}
{if $client_env.is_javascript == “Y” and $but_onclick}
{assign var=“onclick” value=$but_onclick}
{elseif $but_href}
{if $client_env.is_javascript == “Y”}
{if $but_target}
{assign var=“onclick” value=“javascript: window.open(‘$but_href’, ‘$target’)”}
{else}
{assign var=“onclick” value=“javascript: self.location=‘$but_href’”}
{/if}
{else}
{assign var=“href” value=$but_href}
{/if}
{/if}
{if $but_style != “text”} { BUTTON STYLE *}
[color=red]
[/color]
{if $but_arrow or $action_but}
{/if}
<{if $but_type == "input"}input type="image"{else}img{/if} src="{$images_dir}/{$action_but}but_left.gif" style="width: 7px; height: 17px; border: 0px; {if $but_type == "input"}padding-left: 0px;{/if}" alt="" /> |
{if $href}{/if}{$but_text}{if $href}{/if} |
|
{else} {* TEXT STYLE *}
{$but_text} <{if $but_type == "input"}input type="image"{else}img{/if} src="{$images_dir}/{$action_but}text_but_arrow.gif" {if $but_type != "input"}style="width: 15px; height: 15px; border: 0px;" alt=""{/if} align="top" />
{/if}
{/if} ```
This will post the message for any button calling button.tpl. At least you know something is happening. You will need to add a new language variable called working that contains "Working
Please wait..." or whatever.
nice. thx m8!