Leitgedanken/msd2/myoos/templates/phoenix/page/account_wishlist.html
2023-01-23 11:03:31 +01:00

147 lines
6.3 KiB
HTML

{include file="phoenix/system/_header.html"}
{include file="phoenix/system/_breadcrumbs.html"}
{if $message}
{foreach $message as $info}
{include file="phoenix/system/_message.html"}
{/foreach}
{/if}
<!-- start content -->
<section class="mainContent clearfix userProfile">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="btn-group" role="group" aria-label="...">
<a href="{html_href_link content=$filename.account}" class="btn btn-default" role="button"><i class="fa fa-th" aria-hidden="true"></i>{$lang.login_block_my_account}</a>
<a href="{html_href_link content=$filename.account_edit}" class="btn btn-default" role="button"><i class="fa fa-user" aria-hidden="true"></i>{$lang.button_account}</a>
<a href="{html_href_link content=$filename.account_address_book}" class="btn btn-default" role="button"><i class="fa fa-map-marker" aria-hidden="true"></i>{$lang.button_address_book}</a>
<a href="{html_href_link content=$filename.account_history page=1}" class="btn btn-default" role="button"><i class="fa fa-list" aria-hidden="true"></i>{$lang.button_history}</a>
<a href="{html_href_link content=$filename.account_wishlist page=1}" class="btn btn-default active" role="button"><i class="fa fa-gift" aria-hidden="true"></i>{$lang.button_wishlist}</a>
{if $oEvent->installed_plugin('notify')}
<a href="{html_href_link content=$filename.product_notifications}" class="btn btn-default" role="button"><i class="fa fa-plus-circle" aria-hidden="true"></i>{$lang.button_notifications}</a>
{/if}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="innerWrapper">
<div class="orderBox myAddress wishlist">
<h4>{$lang.heading_title}</h4>
{if $wishlist}
<form name="cart_quantity" action="{html_get_link}" method="POST" role="form">
<input type="hidden" name="action" value="wishlist_add_product">
<input type="hidden" name="content" value="{$page_file}">
{if $mySystem.sed}
<input type="hidden" name="{$mySystem.session_name}" value="{$mySystem.session_id}">
<input type="hidden" name="formid" value="{$mySystem.formid}">
{/if}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{$lang.table_heading_products}</th>
<th>{$lang.table_heading_price}</th>
<th>{$lang.table_heading_quantity}</th>
<th></th>
<th>{$lang.table_heading_remove}</th>
</tr>
</thead>
<tbody>
{section name=i loop=$wishlist}
<tr>
<td class="text-left m-py-25">
<div class="media">
{product_image dir=small image=$wishlist[i].products_image alt=$wishlist[i].products_name class="mr-3"}
<div class="media-body">
<h5><a href="{product_link products_id=$wishlist[i].products_id}">{$wishlist[i].products_name|truncate:18:"":true|close_tags}</a></h5>
{$wishlist[i].products_short_description|truncate:120:" [...]":false|close_tags}
{$wishlist[i].attributes_print}
</div>
</div>
</td>
<td class="">
{if $myUser.show_price eq 1 }
{if (!empty($wishlist[i].special_price))}
<s>{$wishlist[i].product_price}</s><br>
<span class="special_price">{$wishlist[i].product_special_price}</span>
{else}
{$wishlist[i].product_price}
{/if}
{if $wishlist[i].products_base_price != 1}
{$wishlist[i].product_quantity} {$products_units[$wishlist[i].product_units]} <span class="base_price"> ({$wishlist[i].base_product_price}/{$products_units[$wishlist[i].products_base_unit]})</span><br>
{/if}
{/if}
</td>
<td class="count-input">
<a class="incr-btn" data-action="decrease" href="#"><i class="fa fa-minus"></i></a>
<input class="quantity" type="text" name="cart_quantity" value="1">
<a class="incr-btn" data-action="increase" href="#"><i class="fa fa-plus"></i></a>
</td>
<td class="">
{$wishlist[i].attributes_hidden}
{if $myUser.show_price eq 1 }
<input type="hidden" name="products_id" value="{$wishlist[i].wl_products_id}">
<input type="hidden" name="wl_products_id" value="{$wishlist[i].products_id}">
<button class="btn btn-success-filled" type="submit"><i class="fa fa-shopping-cart" aria-hidden="true"></i> {$lang.button_in_cart}</button>
{/if}
</td>
<td class="">
<a href="{html_href_link content=$page_file page=$page action=remove_wishlist pid=$wishlist[i].products_id}" class="btn btn-primary-filled" role="button"><i class="fa fa fa-trash" aria-hidden="true"></i></a>
</td>
</tr>
{/section}
</tbody>
</table>
</div>
</form>
{else}
<div class="alert alert-info alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{$lang.block_wishlist_empty}
</div>
<div class="container text-center m-py-60">
<div class="mb-5">
<span class="d-block g-color-gray-light-v1 fs-70 mb-4">
<i class="fa fa-shopping-basket" aria-hidden="true"></i>
</span>
<h2 class="mb-30">{$lang.text_cart_empty}</h2>
<p>{$lang.text_cart_empty_help}</p>
</div>
<a class="btn btn-primary fs-12 text-uppercase m-py-12 m-px-25" href="{html_href_link content=$filename.home}" role="button">{$lang.button_start_shopping}</a>
</div>
{/if}
<span class="pangv m-mt-30">{$pangv}</span>
<hr />
<!-- pagination -->
<div class="text-center">
{$pagination}
</div>
<!-- end pagination -->
</div><!-- .col -->
</div>
</div>
</div><!-- .row -->
</div><!--end container-->
</section>
<!-- end content -->
{if $smarty.const.NEWSLETTER eq 'true'}
{include file="phoenix/system/_newsletter.html"}
{/if}
{include file="phoenix/system/_footer.html"}