129 lines
6.1 KiB
Smarty
129 lines
6.1 KiB
Smarty
<div class="account-sidemenu">
|
|
{if $smarty.get}
|
|
{$current_url = "?"|explode:$ctrl.currUrl.Rel}
|
|
{$current_url = $current_url[0]}
|
|
{else}
|
|
{$current_url = $ctrl.currUrl.Rel}
|
|
{/if}
|
|
|
|
{get_stats type='user_orders' assign="orders_count"}
|
|
|
|
{block "menu-items"}
|
|
<ul>
|
|
<li><a href="{path('account')}" {if $current_url == {path('account')}}class="active"{/if} title="{t}Můj účet{/t}">{t}Můj účet{/t}</a>
|
|
</li>
|
|
<li><a href="{url s=user act=edit}" {if $current_url == {url s=user act=edit}}class="active"{/if}
|
|
title="{t}Osobní údaje{/t}">{t}Osobní údaje{/t}</a></li>
|
|
|
|
{ifmodule USER_MANAGER}
|
|
{if {is_user_manager}}
|
|
{$url = path('kupshop_usermanager_usermanager_userslist')}
|
|
<li><a href="{$url}"
|
|
{if $current_url == $url}class="active"{/if} title="{t}Správa poboček{/t}">{t}Správa poboček{/t}
|
|
</a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{ifmodule AGE_VERIFY}
|
|
{$url = path('ageVerify')}
|
|
<li><a href="{$url}" title="{t}Ověření plnoletosti{/t}">{t}Ověření plnoletosti{/t}</a></li>
|
|
{/ifmodule}
|
|
|
|
{ifmodule ORDERS}
|
|
{block "orders"}
|
|
<li><a href="{path('orders')}"
|
|
{if $current_url == {path('orders')} or ($body.order and $current_url == {path('kupshop_content_orders_order', ['id' => $body.order.id|default:0])})}class="active"{/if}
|
|
title="{t}Moje objednávky{/t}">{t}Moje objednávky{/t}
|
|
<span>({$orders_count})</span></a></li>
|
|
{/block}
|
|
{/ifmodule}
|
|
|
|
{ifmodule SALES}
|
|
<li><a href="{path('kupshop_sales_sales_list')}"
|
|
{if $current_url == {path('kupshop_sales_sales_list')}}class="active"{/if}
|
|
title="{t}Moje nákupy na prodejně{/t}">{t}Moje nákupy na prodejně{/t}
|
|
<span>({get_sales_user_count})</span></a></li>
|
|
{/ifmodule}
|
|
|
|
{ifmodule B2B_PREORDERS}
|
|
{user_can_preorder assign='canPreorder'}
|
|
{if $canPreorder}
|
|
{$url = path('kupshop_preorders_show_user')}
|
|
<li><a href="{$url}"
|
|
{if $current_url == $url}class="active"{/if} title="{t}Předobjednávky{/t}">{t}Předobjednávky{/t}
|
|
<span>({get_user_preorder_count})</span>
|
|
</a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{ifmodule BONUS_PROGRAM}
|
|
{block "bonus-program"}
|
|
{if {is_bonus_program_active}}
|
|
<li><a href="{path('kupshop_bonusprogram_bonusprogramhistory_account')}"
|
|
{if $current_url == {path('kupshop_bonusprogram_bonusprogramhistory_account')}}class="active"{/if}
|
|
title="{t}Věrnostní program{/t}">{t}Věrnostní program{/t} <span>({get_active_points_amount} {t}b.{/t})</span></a></li>
|
|
{/if}
|
|
{/block}
|
|
{ifmodule BONUS_PROGRAM__POINTS_EXCHANGE}
|
|
{block "bonus-program-exchange"}
|
|
<li><a href="{path('kupshop_bonusprogram_bonusprogramexchange_exchangelist')}"
|
|
{if $current_url == {path('kupshop_bonusprogram_bonusprogramexchange_exchangelist')}}class="active"{/if}
|
|
title="{t}Výměna bodů{/t}">{t}Výměna bodů{/t}</a></li>
|
|
<li><a href="{path('kupshop_bonusprogram_bonusprogramexchange_couponlist')}"
|
|
{if $current_url == {path('kupshop_bonusprogram_bonusprogramexchange_couponlist')}}class="active"{/if}
|
|
title="{t}Moje poukazy{/t}">{t}Moje poukazy{/t}</a></li>
|
|
{/block}
|
|
{/ifmodule}
|
|
{/ifmodule}
|
|
|
|
{ifmodule PRODUCTS_FAVORITES}
|
|
{if {get_stats type='user_favorite_goods'}}
|
|
<li><a href="{url s=category campaign="F"}" {if $current_url == {url s=category campaign="F"}}class="active"{/if}
|
|
title="{t}Oblíbené produkty{/t}">
|
|
{t}Oblíbené produkty{/t} <span>({get_stats type='user_favorite_goods'})</span></a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{ifmodule WATCHDOG}
|
|
{if {get_stats type='user_watchdog'}}
|
|
<li><a href="{url s=category campaign="W"}"
|
|
{if $current_url == {url s=category campaign="W"}}class="active"{/if} title="{t}Hlídané zboží{/t}">{t}Hlídané zboží{/t}
|
|
<span>({get_stats type='user_watchdog'})</span></a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{ifmodule SHOPPING_LIST}
|
|
{$url = path('kupshop_shoppinglist_shoppinglist_shoppinglist')}
|
|
<li><a href="{$url}" title="{t}Moje seznamy{/t}">{t}Moje seznamy{/t}
|
|
<span>({get_stats type='user_shopping_list'})</span></a></li>
|
|
{/ifmodule}
|
|
|
|
{ifmodule RECLAMATIONS}
|
|
{if $orders_count and ((!$cfg.Modules.reclamations.admin_only && !$dbcfg.reclamations.adminOnly) or getAdminUser() or $dbcfg.reclamations.adminOnly != 'Y')}
|
|
{$url = path('kupshop_reclamations_reclamations_reclamations')}
|
|
<li><a href="{$url}"
|
|
{if $current_url == $url}class="active"{/if} title="{t}Reklamace{/t}">{t}Reklamace{/t}
|
|
<span>({get_stats type='user_reclamations'})</span></a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
|
|
{ifmodule RETURNS}
|
|
{* Až nebude nikde admin_only v cfg, tak se ta divna subpodminka muze odebrat *}
|
|
{$showReturns = true}
|
|
|
|
{if findModule(Modules::B2B) && $isB2BUser}
|
|
{$showReturns = $dbcfg.b2b.allowCreateReturns == 'Y'}
|
|
{/if}
|
|
|
|
{if $orders_count and ((!$cfg.Modules.returns.admin_only && !$dbcfg.returns.adminOnly) or getAdminUser() or $dbcfg.returns.adminOnly != 'Y') and $showReturns}
|
|
{$url = path('kupshop_returns_returns_returns')}
|
|
<li><a href="{$url}"
|
|
{if $current_url == $url}class="active"{/if} title="{t}Vrácení zboží{/t}">{t}Vrácení zboží{/t}
|
|
<span>({get_stats type='user_returns'})</span></a></li>
|
|
{/if}
|
|
{/ifmodule}
|
|
<li><a href="{url s=logout}" title="{t}Odhlásit se{/t}">{t}Odhlásit se{/t}</a></li>
|
|
</ul>
|
|
{/block}
|
|
</div>
|