{if !$is_print_version} {if ($product.call_for_price != "Yes") && (($auth_ok == "yes" || $user_cookie) || (($VisitorSeePrice == "YES") && ($VisitorMayAddItem == "YES")))}

{$msg.product.product_purchase}

{if $product.out_of_stock}
{$msg.catalog.out_of_stock}
{else}
{assign var="firstInput" value="true"} {if !empty($product.attributes)} {assign var="has_required_attribute" value=false} {foreach from=$product.attributes item=attribute} {if $attribute.attribute_required == 'Yes'} {assign var="has_required_attribute" value=true} {/if} {/foreach} {if $has_required_attribute}
{$msg.product.required_attributes_notice}
{/if} {foreach from=$product.attributes item=attribute}
{if $attribute.attribute_type == "select"} {elseif $attribute.attribute_type == "radio"} {if $attribute.attribute_required == 'Yes'} {$msg.product.select_option}
{/if} {foreach from=$attribute.options item="option"} {if !$option.first}
{/if} {$option.name} {if $attribute.is_modifier == "Yes"}{$option.modifier}{/if} {/foreach} {else} {if $attribute.attribute_type == "textarea"} {else} {/if} {/if}
{assign var="firstInput" value=false} {/foreach} {/if} {include file="templates/pages/product/elements/element-special-offer-quantity.html"}
{if $oa_quantity > $product.min_order} {assign var="pq" value=$oa_quantity} {else} {if $product.min_order > 0} {assign var="pq" value=$product.min_order} {else} {assign var="pq" value=1} {/if} {/if} {if $product.min_order > 1 || $product.max_order > 0}
{$msg.product.min_max_order}: {product_minmax_order min_order=$product.min_order max_order=$product.max_order}
{/if}
{if $product.enable_recurring_billing && $product.recurring_billing_data.customer_can_define_start_date}
{/if}
{button class="button-add-to-cart" text=$msg.buttons.buttonAddToCart file=$smarty.template} {if $order->itemsCount > 0} {if $requireApproval == 0} {button class="button-checkout" text=$msg.buttons.buttonCheckout file=$smarty.template onclick="$('#proceedToCheckout').submit(); return false;"} {else} {if $waitingApproval == 1} {lang msg=$msg.cart.user_need_approval} {else} {button class="button-register" text="Login/Register" file=$smarty.template onclick="$('#proceedToRegister').submit(); return false;"} {/if} {/if} {/if}
{if $order->itemsCount > 0 }
{/if} {if $requireApproval == 1}
{/if}
{/if}
{else}

{$msg.product.product_purchase}

{if $product.call_for_price == "No" && $AllowCreateAccount != "No"}
{if $VisitorSeePrice == "YES"} {$msg.product.to_purchase} {else} {$msg.product.to_see_price} {/if}
{else}
{$msg.product.call_for_price}
{/if}
{/if} {/if}