{if $cart_products} {capture name="mainbox"}
{if $cart.use_discount} {/if} {foreach from=$cart_products item="cp" key="key"} {cycle values='class="manage-row", ' assign="color"} {if $cart.use_discount} {/if} {if $cp.product_options} {/if} {/foreach}
{$lang.product} {$lang.price}{$lang.discount}{$lang.amount}
{$cp.product}   {include file="common_templates/price.tpl" value=$cp.price} {$currencies.$primary_currency.symbol}  {include file="common_templates/price.tpl" value=$cp.discount} {$currencies.$primary_currency.symbol} 
{include file="orders_pages/cart_product_options.tpl" product_options=$cp.product_options}
{$lang.subtotal}: {include file="common_templates/price.tpl" value=$cart.subtotal}

{include file="buttons/button.tpl" but_text=$lang.update but_onclick="javascript:document.om_cart_products.submit();" but_type="input"}
{include file="buttons/button.tpl" but_text=$lang.delete_selected but_onclick="javascript: fn_delete_selected('om_cart_products','delete');" but_type="input"}
{include file="buttons/button.tpl" but_text=$lang.continue but_onclick="javascript: document.om_cart_products.$action_name.value='continue'; document.om_cart_products.submit();" action_but="action_"}
{/capture} {include file="common_templates/mainbox.tpl" title=$lang.products content=$smarty.capture.mainbox} {/if} {capture name="mainbox"} {capture name="section"} {include file="products_pages/products_search_form.tpl" target="order_management" mode="products" action="search" search_type="extended" search_form="Y"} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search_for_products section_content=$smarty.capture.section} {if $products}
{include file="common_templates/pagination.tpl"} {foreach from=$products item=product} {cycle values='class="manage-row", ' assign="color"} {if $product.product_options} {/if} {/foreach}
{$lang.product} {$lang.price} {$lang.amount}
{$product.product}  {if !$product.price}{else}{include file="common_templates/price.tpl" value=$product.price}{/if}
{$lang.product_options}:
{include file="orders_pages/product_options.tpl" product_options=$product.product_options product_id=$product.product_id}
{include file="common_templates/pagination.tpl"} {include file="buttons/button.tpl" but_text=$lang.add but_onclick="document.om_products.submit();"}
{/if} {/capture} {include file="common_templates/mainbox.tpl" title=$lang.search content=$smarty.capture.mainbox}