{* $Id: add_to_cart.tpl 2475 2006-11-05 12:25:24Z lantan $ *} {if $settings.General.allow_anonymous_shopping == 'Y' || $auth.user_id} {include file="buttons/button.tpl" but_text=$lang.add_to_cart but_type="" but_onclick=$but_onclick but_href=$but_href but_target=$but_target action_but="action_" but_style=$but_style} {else} {assign var="c_url" value=$current_url|replace:'&':'&'|escape:url} {include file="buttons/button.tpl" but_text=$lang.login_to_buy but_type="" but_href="$index_script?$target_name=auth&$mode_name=login_form&redirect_url=$c_url" but_style="text" but_onclick=""} {/if}