first commit
This commit is contained in:
199
modules/leofeature/views/templates/front/drop_down.tpl
Normal file
199
modules/leofeature/views/templates/front/drop_down.tpl
Normal file
@@ -0,0 +1,199 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{if $only_total != 1}
|
||||
<div class="leo-dropdown-cart-content">
|
||||
<div class="leo-dropdown-list-item-header">
|
||||
<h2>Koszyk</h2>
|
||||
</div>
|
||||
<div class="leo-dropdown-list-item-warpper">
|
||||
<ul class="leo-dropdown-list-item">{foreach from=$cart.products item=product name="cart_product"}<li
|
||||
style="width: {$width_cart_item}px; height: {$height_cart_item}px"
|
||||
class="leo-dropdown-cart-item clearfix{if ($product.attributes|count && $show_combination) || ($product.customizations|count && $show_customization)} has-view-additional{/if}{if $smarty.foreach.cart_product.first} first{/if}{if $smarty.foreach.cart_product.last} last{/if}">
|
||||
<div class="leo-cart-item-img">
|
||||
{if $product.images}
|
||||
<a class="label" href="{$product.url}" title="{$product.name}"><img class="img-fluid"
|
||||
src="{$product.images.0.bySize.small_default.url}" alt="{$product.name}" title="{$product.name}" /></a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="leo-cart-item-info">
|
||||
<div class="product-name"><a class="label" href="{$product.url}"
|
||||
title="{$product.name}">{$product.name|truncate:18:'...'}</a></div>
|
||||
<div class="product-price">
|
||||
{if $product.has_discount}
|
||||
<div class="product-discount">
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount discount-percentage">
|
||||
-{$product.discount_percentage_absolute}
|
||||
</span>
|
||||
{else}
|
||||
<span class="discount discount-amount">
|
||||
-{$product.discount_to_display}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
<div class="current-price">
|
||||
<span class="price">{$product.price}</span>
|
||||
</div>
|
||||
{if $product.unit_price_full}
|
||||
<div class="unit-price-cart">{$product.unit_price_full}</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $enable_update_quantity}
|
||||
<div class="product-quantity">
|
||||
{if $enable_button_quantity}
|
||||
<a href="javascript:void(0)" class="leo-bt-product-quantity leo-bt-product-quantity-down"><i
|
||||
class="material-icons"></i></a>
|
||||
{/if}
|
||||
<input class="leo-input-product-quantity input-group" data-down-url="{$product.down_quantity_url}"
|
||||
data-up-url="{$product.up_quantity_url}" data-update-url="{$product.update_quantity_url}"
|
||||
data-id-product="{$product.id_product|escape:'javascript'}"
|
||||
data-id-product-attribute="{$product.id_product_attribute|escape:'javascript'}"
|
||||
data-id-customization="{$product.id_customization|escape:'javascript'}"
|
||||
data-min-quantity="{$product.minimal_quantity}" data-product-quantity="{$product.quantity}"
|
||||
data-quantity-available="{$product.quantity_available}" type="text" value="{$product.quantity}"
|
||||
min="{$product.minimal_quantity}" />
|
||||
{if $enable_button_quantity}
|
||||
<a href="javascript:void(0)" class="leo-bt-product-quantity leo-bt-product-quantity-up"><i
|
||||
class="material-icons"></i></a>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="product-quantity"><span class="lablel">{l s='Quantity' mod='leofeature'}</span>:
|
||||
{$product.quantity}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{* <a class="leo-remove-from-cart" *}
|
||||
<a class="leo-remove-from-cart-own" href="{$product.remove_from_cart_url}"
|
||||
title="{l s='Remove from cart' mod='leofeature'}" data-link-url="{$productNaNpxove_from_cart_url}"
|
||||
data-id-product="{$product.id_product|escape:'javascript'}"
|
||||
data-id-product-attribute="{$product.id_product_attribute|escape:'javascript'}"
|
||||
data-id-customization="{$product.id_customization|escape:'javascript'}">
|
||||
{* <i class="material-icons"></i> *}
|
||||
<img src="/themes/at_movic/assets/img/icons/bucket.svg" alt="">
|
||||
</a>
|
||||
{if ($product.attributes|count && $show_combination) || ($product.customizations|count && $show_customization)}
|
||||
<div class="view-additional">
|
||||
<div class="view-leo-dropdown-additional"></div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="leo-dropdown-overlay">
|
||||
<div class="leo-dropdown-cssload-speeding-wheel"></div>
|
||||
</div>
|
||||
<div class="leo-dropdown-additional">
|
||||
{if $product.attributes|count && $show_combination}
|
||||
<div class="view-combination label">
|
||||
|
||||
</div>
|
||||
<div class="combinations">
|
||||
{foreach from=$product.attributes key="attribute" item="value"}
|
||||
<div class="product-line-info">
|
||||
<span class="label">{$attribute}:</span>
|
||||
<span class="value">{$value}</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{if $product.customizations|count && $show_customization}
|
||||
<div class="view-customization label">
|
||||
|
||||
</div>
|
||||
<div class="customizations">
|
||||
{foreach from=$product.customizations item='customization'}
|
||||
|
||||
<ul>
|
||||
{foreach from=$customization.fields item='field'}
|
||||
<li>
|
||||
<span class="label">{$field.label}</span>
|
||||
{if $field.type == 'text'}
|
||||
: <span class="value">{$field.text nofilter}</span>
|
||||
{else if $field.type == 'image'}
|
||||
<img src="{$field.image.small.url}">
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</li>{/foreach}</ul>
|
||||
</div>
|
||||
<div class="leo-dropdown-bottom">
|
||||
{/if}
|
||||
<div class="leo-dropdown-total" data-cart-total="{$cart.products_count}">
|
||||
<div class="leo-dropdown-cart-subtotals">
|
||||
{foreach from=$cart.subtotals item="subtotal"}
|
||||
{if $subtotal}
|
||||
<div class="{$subtotal.type} clearfix">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
||||
<span class="label">{$subtotal.label}</span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
||||
<span class="value">{$subtotal.value}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="leo-dropdown-cart-total clearfix">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="price-box">
|
||||
<p>ŁĄCZNIE</p>
|
||||
<p>{$cart.totals.total.value}</p>
|
||||
</div>
|
||||
<div class="price-box-btn">
|
||||
<a class="btn" href="{$cart_url}">{l s='PRZEJDZ DO KOSZYKA' mod='leofeature'}</a>
|
||||
</div>
|
||||
<div class="price-box-text">
|
||||
<img src="/themes/at_movic/assets/img/save.svg" alt="" />
|
||||
{l s='Bezpieczne zakupy' d='Shop.Theme.Actions'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{* <div class="row">
|
||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
||||
<span class="label">{$cart.totals.total.label}</span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 col-xl-6">
|
||||
<span class="value">{$cart.totals.total.value}</span>
|
||||
</div>
|
||||
</div> *}
|
||||
</div>
|
||||
<!-- add Spent X to get free ship in checkout page Leotheme -->
|
||||
{assign var='freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')}
|
||||
{if $freeshipping_price}
|
||||
{math equation='a-b' a=$cart.totals.total.amount b=$cart.subtotals.shipping.amount assign='total_without_shipping'}
|
||||
{math equation='a-b' a=$freeshipping_price b=$total_without_shipping assign='remaining_to_spend'}
|
||||
{if $remaining_to_spend > 0}
|
||||
<div class="leo_free_price">
|
||||
{assign var=currency value=Context::getContext()->currency}
|
||||
<p>{l s='Spent' mod='leofeature'} {Tools::displayPrice($remaining_to_spend,$currency)}
|
||||
{l s='To get free ship!' mod='leofeature'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<!-- end -->
|
||||
</div>
|
||||
{if $only_total != 1}
|
||||
{* <div class="leo-cart-dropdown-action clearfix">
|
||||
<a class="cart-dropdow-button cart-dropdow-viewcart btn btn-primary btn-outline"
|
||||
href="{$cart_url}">{l s='PRZEJDZ DO KOSZYKA' mod='leofeature'}</a> *}
|
||||
{* <a class="cart-dropdow-button cart-dropdow-viewcart btn btn-primary btn-outline" href="{$cart_url}">{l s='View Cart' mod='leofeature'}</a> *}
|
||||
{* <a class="cart-dropdow-button cart-dropdow-checkout btn btn-primary btn-outline" href="{$order_url}">{l s='Check Out' mod='leofeature'}</a> *}
|
||||
{* </div> *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
17
modules/leofeature/views/templates/front/fly_cart.tpl
Normal file
17
modules/leofeature/views/templates/front/fly_cart.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<div data-type="{$type_fly_cart}" style="position: {$type_position}; {$vertical_position}; {$horizontal_position}" class="leo-fly-cart solo type-{$type_position}{if $type_fly_cart == 'dropup' || $type_fly_cart == 'dropdown'} enable-dropdown{/if}{if $type_fly_cart == 'slidebar_top' || $type_fly_cart == 'slidebar_bottom' || $type_fly_cart == 'slidebar_right' || $type_fly_cart == 'slidebar_left'} enable-slidebar{/if}">
|
||||
<div class="leo-fly-cart-icon-wrapper">
|
||||
<a href="javascript:void(0)" class="leo-fly-cart-icon" data-type="{$type_fly_cart}"><i class="material-icons"></i></a>
|
||||
<span class="leo-fly-cart-total"></span>
|
||||
</div>
|
||||
{*
|
||||
<div class="leo-fly-cssload-speeding-wheel"></div>
|
||||
*}
|
||||
<div class="leo-fly-cart-cssload-loader"></div>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{if $enable_overlay_background}
|
||||
<div class="leo-fly-cart-mask"></div>
|
||||
{/if}
|
||||
|
||||
<div class="leo-fly-cart-slidebar {$type}">
|
||||
|
||||
<div class="leo-fly-cart disable-dropdown">
|
||||
<div class="leo-fly-cart-wrapper">
|
||||
<div class="leo-fly-cart-icon-wrapper">
|
||||
<a href="javascript:void(0)" class="leo-fly-cart-icon"><i class="material-icons"></i></a>
|
||||
<span class="leo-fly-cart-total"></span>
|
||||
</div>
|
||||
{*
|
||||
<div class="leo-fly-cssload-speeding-wheel"></div>
|
||||
*}
|
||||
<div class="leo-fly-cart-cssload-loader"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
35
modules/leofeature/views/templates/front/index.php
Normal file
35
modules/leofeature/views/templates/front/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
115
modules/leofeature/views/templates/front/leo_my_wishlist.tpl
Normal file
115
modules/leofeature/views/templates/front/leo_my_wishlist.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
<header class="page-header">
|
||||
<h1>
|
||||
{l s='Wishlist' mod='leofeature'}
|
||||
</h1>
|
||||
</header>
|
||||
<div id="mywishlist">
|
||||
<div class="new-wishlist">
|
||||
<div class="form-group-title">
|
||||
<h2>{l s='Make new wishlist' mod='leofeature'}</h2>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="wishlist_name">{l s='Name' mod='leofeature'}</label>
|
||||
|
||||
<div class="form-group-row">
|
||||
<input type="text" class="form-control" id="wishlist_name"
|
||||
placeholder="{l s='Enter name of new wishlist' mod='leofeature'}">
|
||||
<button type="submit" class="btn btn-primary leo-save-wishlist-bt">
|
||||
<span class="leo-save-wishlist-loading cssload-speeding-wheel"></span>
|
||||
<span class="leo-save-wishlist-bt-text">
|
||||
{l s='Save' mod='leofeature'}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-success">
|
||||
<div class="form-control-feedback"></div>
|
||||
</div>
|
||||
<div class="form-group has-danger">
|
||||
<div class="form-control-feedback"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list-wishlist">
|
||||
<table class="table table-striped">
|
||||
<thead class="wishlist-table-head">
|
||||
<tr>
|
||||
<th>{l s='Name' mod='leofeature'}</th>
|
||||
<th>{l s='Quantity' mod='leofeature'}</th>
|
||||
<th>{l s='Viewed' mod='leofeature'}</th>
|
||||
<th class="wishlist-datecreate-head">{l s='Created' mod='leofeature'}</th>
|
||||
<th>{l s='Direct Link' mod='leofeature'}</th>
|
||||
<th>{l s='Default' mod='leofeature'}</th>
|
||||
<th>{l s='Delete' mod='leofeature'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if $wishlists}
|
||||
{foreach from=$wishlists item=wishlists_item name=for_wishlists}
|
||||
<tr>
|
||||
<td><a href="javascript:void(0)" class="view-wishlist-product" data-name-wishlist="{$wishlists_item.name}"
|
||||
data-id-wishlist="{$wishlists_item.id_wishlist}"><i
|
||||
class="material-icons"></i>{$wishlists_item.name}</a>
|
||||
<div
|
||||
class="leo-view-wishlist-product-loading leo-view-wishlist-product-loading-{$wishlists_item.id_wishlist} cssload-speeding-wheel">
|
||||
</div>
|
||||
</td>
|
||||
<td class="wishlist-numberproduct wishlist-numberproduct-{$wishlists_item.id_wishlist}">
|
||||
{$wishlists_item.number_product|intval}</td>
|
||||
<td>{$wishlists_item.counter|intval}</td>
|
||||
<td class="wishlist-datecreate">{$wishlists_item.date_add}</td>
|
||||
<td><a class="view-wishlist" data-token="{$wishlists_item.token}" href="{$view_wishlist_url}{if $leo_is_rewrite_active}?{else}&{/if}token={$wishlists_item.token}"
|
||||
title="{l s='View' mod='leofeature'}">{l s='View' mod='leofeature'}</a></td>
|
||||
<td>
|
||||
|
||||
<label class="form-check-label">
|
||||
<input class="default-wishlist form-check-input" data-id-wishlist="{$wishlists_item.id_wishlist}"
|
||||
type="checkbox" {if $wishlists_item.default == 1}checked="checked" {/if}>
|
||||
</label>
|
||||
|
||||
</td>
|
||||
<td><a class="delete-wishlist" data-id-wishlist="{$wishlists_item.id_wishlist}" href="javascript:void(0)"
|
||||
title="{l s='Delete' mod='leofeature'}">
|
||||
<img src="/themes/at_movic/assets/img/icons/trash-can.svg" alt="">
|
||||
{* <i class="materia-icons"></i> *}
|
||||
</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="send-wishlist">
|
||||
<a class="leo-send-wishlist-button btn btn-info" href="javascript:void(0)"
|
||||
title="{l s='Send this wishlist' mod='leofeature'}">
|
||||
<i class="material-icons"></i>
|
||||
{l s='Send this wishlist' mod='leofeature'}
|
||||
</a>
|
||||
</div>
|
||||
<section id="products">
|
||||
<div class="leo-wishlist-product products row">
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<ul class="footer_links">
|
||||
<li class="pull-xs-left"><a class="btn btn-outline"
|
||||
href="{$link->getPageLink('my-account', true)|escape:'html'}"><i
|
||||
class="material-icons"></i>{l s='Back to Your Account' mod='leofeature'}</a></li>
|
||||
<li class="pull-xs-right"><a class="btn btn-outline" href="{$urls.base_url}"><i
|
||||
class="material-icons"></i>{l s='Home' mod='leofeature'}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
@@ -0,0 +1,79 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{if $products && count($products) >0}
|
||||
{foreach from=$products item=product_item name=for_products}
|
||||
{assign var='product' value=$product_item.product_info}
|
||||
{assign var='wishlist' value=$product_item.wishlist_info}
|
||||
<div class="col-xl-3 col-lg-4 col-md-4 col-sm-6 col-xs-12 product-miniature js-product-miniature leo-wishlistproduct-item leo-wishlistproduct-item-{$wishlist.id_wishlist_product} product-{$product.id_product}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
|
||||
<div class="delete-wishlist-product clearfix">
|
||||
<a class="leo-wishlist-button-delete btn" href="javascript:void(0)" title="{l s='Remove from this wishlist' mod='leofeature'}" data-id-wishlist="{$wishlist.id_wishlist}" data-id-wishlist-product="{$wishlist.id_wishlist_product}" data-id-product="{$product.id_product}"><i class="material-icons"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="thumbnail-container clearfix">
|
||||
{block name='product_thumbnail'}
|
||||
{if $product.cover}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="img-fluid lazyOwl"
|
||||
src="{$product.cover.bySize.home_default.url}"
|
||||
alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
|
||||
data-full-size-image-url="{$product.cover.large.url}"
|
||||
/>
|
||||
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img src="{$urls.no_picture_image.bySize.home_default.url}" />
|
||||
</a>
|
||||
{/if}
|
||||
{/block}
|
||||
<div class="product-description">
|
||||
{block name='product_name'}
|
||||
<h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h1>
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="wishlist-product-info">
|
||||
<div class="form-group">
|
||||
<label>{l s='Quantity' mod='leofeature'}</label>
|
||||
<input class="form-control wishlist-product-quantity wishlist-product-quantity-{$wishlist.id_wishlist_product}" type="number" min=1 value="{$wishlist.quantity}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{l s='Priority' mod='leofeature'}</label>
|
||||
<select class="form-control wishlist-product-priority wishlist-product-priority-{$wishlist.id_wishlist_product}">
|
||||
{for $i=0 to 2}
|
||||
<option value="{$i}"{if $i == $wishlist.priority} selected="selected"{/if}>
|
||||
{if $i == 0}{l s='High' mod='leofeature'}{/if}
|
||||
{if $i == 1}{l s='Medium' mod='leofeature'}{/if}
|
||||
{if $i == 2}{l s='Low' mod='leofeature'}{/if}
|
||||
</option>
|
||||
{/for}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wishlist-product-action">
|
||||
<a class="leo-wishlist-product-save-button btn btn-primary" href="javascript:void(0)" title="{l s='Save' mod='leofeature'}" data-id-wishlist="{$wishlist.id_wishlist}" data-id-wishlist-product="{$wishlist.id_wishlist_product}" data-id-product="{$product.id_product}">{l s='Save' mod='leofeature'}
|
||||
</a>
|
||||
{if isset($wishlists) && count($wishlists) > 0}
|
||||
<div class="dropdown leo-wishlist-button-dropdown">
|
||||
<button class="leo-wishlist-button dropdown-toggle btn btn-primary show-list" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{l s='Move' mod='leofeature'}</button>
|
||||
<div class="dropdown-menu leo-list-wishlist leo-list-wishlist-{$product.id_product}">
|
||||
{foreach from=$wishlists item=wishlists_item}
|
||||
<a href="#" class="dropdown-item list-group-item list-group-item-action move-wishlist-item" data-id-wishlist="{$wishlists_item.id_wishlist}" data-id-wishlist-product="{$wishlist.id_wishlist_product}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" title="{$wishlists_item.name}">{$wishlists_item.name}</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="col-xl-12"><p class="alert alert-warning">{l s='No products' mod='leofeature'}</p></div>
|
||||
{/if}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{capture name=path}{l s='Products Comparison' mod='leofeature'}{/capture}
|
||||
<h1 class="page-heading">{l s='Products Comparison' mod='leofeature'}</h1>
|
||||
{if $hasProduct}
|
||||
<div class="products_block">
|
||||
<table id="product_comparison" class="table table-bordered table-responsive">
|
||||
<tr>
|
||||
<td class="td_empty compare_extra_information">
|
||||
|
||||
<span>{l s='Features:' mod='leofeature'}</span>
|
||||
</td>
|
||||
|
||||
{foreach from=$products item=product name=for_products}
|
||||
{assign var='replace_id' value=$product.id|cat:'|'}
|
||||
<td class="product-miniature js-product-miniature leo-productscompare-item product-{$product.id_product}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
|
||||
<div class="delete-productcompare clearfix">
|
||||
<a class="leo-compare-button btn delete" href="#" title="{l s='Remove from Compare' mod='leofeature'}" data-id-product="{$product.id_product}"><i class="material-icons"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="thumbnail-container clearfix">
|
||||
<div class="product-image">
|
||||
{block name='product_thumbnail'}
|
||||
{if $product.cover}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="img-fluid lazyOwl"
|
||||
src="{$product.cover.bySize.home_default.url}"
|
||||
alt = "{$product.cover.legend}"
|
||||
data-full-size-image-url="{$product.cover.large.url}"
|
||||
/>
|
||||
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img src="{$urls.no_picture_image.bySize.home_default.url}" />
|
||||
</a>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='product_flags'}
|
||||
<ul class="product-flags">
|
||||
{foreach from=$product.flags item=flag}
|
||||
<li class="product-flag {$flag.type}">{$flag.label}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="product-description">
|
||||
{hook h='displayLeoCartAttribute' product=$product}
|
||||
{hook h='displayLeoCartQuantity' product=$product}
|
||||
{hook h='displayLeoCartButton' product=$product}
|
||||
{block name='product_name'}
|
||||
<h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h1>
|
||||
{/block}
|
||||
<div class="product_desc">
|
||||
{$product.description_short|strip_tags|truncate:60:'...'}
|
||||
</div>
|
||||
{block name='product_price_and_shipping'}
|
||||
{if $product.show_price}
|
||||
<div class="product-price-and-shipping">
|
||||
{if $product.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$product type="old_price"}
|
||||
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount-percentage">{$product.discount_percentage}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type="before_price"}
|
||||
|
||||
<span itemprop="price" class="price">{$product.price}</span>
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='weight'}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{if $ordered_features}
|
||||
{foreach from=$ordered_features item=feature}
|
||||
<tr>
|
||||
{cycle values='comparison_feature_odd,comparison_feature_even' assign='classname'}
|
||||
<td class="{$classname} feature-name" >
|
||||
<strong>{$feature.name|escape:'html':'UTF-8'}</strong>
|
||||
</td>
|
||||
{foreach from=$products item=product name=for_products}
|
||||
{assign var='product_id' value=$product.id}
|
||||
{assign var='feature_id' value=$feature.id_feature}
|
||||
{if isset($product_features[$product_id])}
|
||||
{assign var='tab' value=$product_features[$product_id]}
|
||||
<td class="{$classname} comparison_infos product-{$product.id}">{if (isset($tab[$feature_id]))}{$tab[$feature_id] nofilter}{/if}</td>
|
||||
{else}
|
||||
<td class="{$classname} comparison_infos product-{$product.id}"></td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="{$products|@count}" class="text-center">{l s='No features to compare' mod='leofeature'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{hook h='displayLeoProducReviewCompare' list_product=$list_product}
|
||||
</table>
|
||||
</div> <!-- end products_block -->
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='There are no products selected for comparison.' mod='leofeature'}</p>
|
||||
{/if}
|
||||
<ul class="footer_link">
|
||||
<li>
|
||||
<a class="button lnk_view btn btn-outline btn-sm" href="{$urls.base_url}">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Continue Shopping' mod='leofeature'}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<tr class="new">
|
||||
<td>
|
||||
<a href="javascript:void(0)" class="view-wishlist-product" data-name-wishlist="{$wishlist->name}" data-id-wishlist="{$wishlist->id}">
|
||||
<i class="material-icons"></i>
|
||||
{$wishlist->name}
|
||||
</a>
|
||||
<div class="leo-view-wishlist-product-loading leo-view-wishlist-product-loading-{$wishlist->id} cssload-speeding-wheel"></div>
|
||||
</td>
|
||||
<td class="wishlist-numberproduct wishlist-numberproduct-{$wishlist->id}">0</td>
|
||||
<td>0</td>
|
||||
<td class="wishlist-datecreate">{$wishlist->date_add}</td>
|
||||
<td><a class="view-wishlist" data-token="{$wishlist->token}" href="{$url_view_wishlist}" title="{l s='View' mod='leofeature'}">{l s='View' mod='leofeature'}</a></td>
|
||||
<td>
|
||||
<label class="form-check-label">
|
||||
<input class="default-wishlist form-check-input" data-id-wishlist="{$wishlist->id}" type="checkbox" {$checked}>
|
||||
</label>
|
||||
</td>
|
||||
<td><a class="delete-wishlist" data-id-wishlist="{$wishlist->id}" href="javascript:void(0)" title="{l s='Delete' mod='leofeature'}"><i class="material-icons"></i></a></td>
|
||||
</tr>
|
||||
|
||||
103
modules/leofeature/views/templates/front/leo_wishlist_view.tpl
Normal file
103
modules/leofeature/views/templates/front/leo_wishlist_view.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
<div id="view_wishlist">
|
||||
{if isset($current_wishlist)}
|
||||
<h2>{l s='Wishlist' mod='leofeature'} "{$current_wishlist.name}"</h2>
|
||||
{if $wishlists}
|
||||
<p>
|
||||
{l s='Other wishlists of ' mod='leofeature'}{$current_wishlist.firstname} {$current_wishlist.lastname} :
|
||||
{foreach from=$wishlists item=wishlist_item name=i}
|
||||
<a href="{$view_wishlist_url}{if $leo_is_rewrite_active}?{else}&{/if}token={$wishlist_item.token}" title="{$wishlist_item.name}" rel="nofollow">{$wishlist_item.name}</a>
|
||||
{if !$smarty.foreach.i.last}
|
||||
/
|
||||
{/if}
|
||||
{/foreach}
|
||||
</p>
|
||||
{/if}
|
||||
<section id="products">
|
||||
<div class="leo-wishlist-product products row">
|
||||
{if $products && count($products) >0}
|
||||
{foreach from=$products item=product_item name=for_products}
|
||||
{assign var='product' value=$product_item.product_info}
|
||||
{assign var='wishlist' value=$product_item.wishlist_info}
|
||||
<div class="col-xl-3 col-lg-4 col-md-4 col-sm-6 col-xs-12 product-miniature js-product-miniature leo-wishlistproduct-item leo-wishlistproduct-item-{$wishlist.id_wishlist_product} product-{$product.id_product}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
|
||||
<div class="thumbnail-container clearfix">
|
||||
<div class="product-image">
|
||||
{block name='product_thumbnail'}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img class="img-fluid"
|
||||
src = "{$product.cover.bySize.home_default.url}"
|
||||
alt = "{$product.cover.legend}"
|
||||
data-full-size-image-url = "{$product.cover.large.url}"
|
||||
>
|
||||
</a>
|
||||
{/block}
|
||||
|
||||
{block name='product_flags'}
|
||||
<ul class="product-flags">
|
||||
{foreach from=$product.flags item=flag}
|
||||
<li class="product-flag {$flag.type}">{$flag.label}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="product-description">
|
||||
{hook h='displayLeoCartAttribute' product=$product}
|
||||
{hook h='displayLeoCartQuantity' product=$product}
|
||||
{hook h='displayLeoCartButton' product=$product}
|
||||
{block name='product_name'}
|
||||
<h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h1>
|
||||
{/block}
|
||||
{block name='product_price_and_shipping'}
|
||||
{if $product.show_price}
|
||||
<div class="product-price-and-shipping">
|
||||
{if $product.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$product type="old_price"}
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount-percentage">{$product.discount_percentage}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{hook h='displayProductPriceBlock' product=$product type="before_price"}
|
||||
<span itemprop="price" class="price">{$product.price}</span>
|
||||
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
|
||||
{hook h='displayProductPriceBlock' product=$product type='weight'}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
<div class="wishlist-product-info">
|
||||
<input class="form-control wishlist-product-quantity wishlist-product-quantity-{$wishlist.id_wishlist_product}" type="{if $show_button_cart}hidden{else}number{/if}" data-min=1 value="{$wishlist.quantity}">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<strong>{l s='Priority' mod='leofeature'}: </strong>
|
||||
{if $wishlist.priority == 0}{l s='High' mod='leofeature'}{/if}
|
||||
{if $wishlist.priority == 1}{l s='Medium' mod='leofeature'}{/if}
|
||||
{if $wishlist.priority == 2}{l s='Low' mod='leofeature'}{/if}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="alert alert-warning col-xl-12">{l s='No products' mod='leofeature'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
</section>
|
||||
{else}
|
||||
<div class="alert alert-warning col-xl-12">{l s='Wishlist does not exist' mod='leofeature'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
49
modules/leofeature/views/templates/front/modal.tpl
Normal file
49
modules/leofeature/views/templates/front/modal.tpl
Normal file
@@ -0,0 +1,49 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<div class="modal leo-modal leo-modal-cart fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<!--
|
||||
<div class="vertical-alignment-helper">
|
||||
-->
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title h6 text-xs-center leo-warning leo-alert">
|
||||
<i class="material-icons">info_outline</i>
|
||||
{l s='You must enter a quantity' mod='leofeature'}
|
||||
</h4>
|
||||
|
||||
<h4 class="modal-title h6 text-xs-center leo-info leo-alert">
|
||||
<i class="material-icons">info_outline</i>
|
||||
{l s='The minimum purchase order quantity for the product is ' mod='leofeature'}<strong class="alert-min-qty"></strong>
|
||||
</h4>
|
||||
|
||||
<h4 class="modal-title h6 text-xs-center leo-block leo-alert">
|
||||
<i class="material-icons">block</i>
|
||||
{l s='There are not enough products in stock' mod='leofeature'}
|
||||
</h4>
|
||||
</div>
|
||||
<!--
|
||||
<div class="modal-body">
|
||||
...
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary">Save changes</button>
|
||||
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
100
modules/leofeature/views/templates/front/modal_review.tpl
Normal file
100
modules/leofeature/views/templates/front/modal_review.tpl
Normal file
@@ -0,0 +1,100 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<div class="modal leo-modal leo-modal-review fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<!--
|
||||
<div class="vertical-alignment-helper">
|
||||
-->
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title h2 text-xs-center">
|
||||
|
||||
{l s='Write a review' mod='leofeature'}
|
||||
</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
{if isset($product_modal_review) && $product_modal_review}
|
||||
<div class="product-info clearfix col-xs-12 col-sm-6">
|
||||
<img class="img-fluid" src="{$productcomment_cover_image}" alt="{$product_modal_review->name|escape:'html':'UTF-8'}" />
|
||||
<div class="product_desc">
|
||||
<p class="product_name">
|
||||
<strong>{$product_modal_review->name}</strong>
|
||||
</p>
|
||||
{$product_modal_review->description_short nofilter}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="new_review_form_content col-xs-12 col-sm-6">
|
||||
{if $criterions|@count > 0}
|
||||
<ul id="criterions_list">
|
||||
{foreach from=$criterions item='criterion'}
|
||||
<li>
|
||||
{if isset($criterion.name) && $criterion.name != ''}<label>{$criterion.name|escape:'html':'UTF-8'}:</label>{/if}
|
||||
<div class="star_content">
|
||||
<input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_review_criterion|round}]" value="1" />
|
||||
<input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_review_criterion|round}]" value="2" />
|
||||
<input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_review_criterion|round}]" value="3" />
|
||||
<input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_review_criterion|round}]" value="4" checked="checked" />
|
||||
<input class="star not_uniform" type="radio" name="criterion[{$criterion.id_product_review_criterion|round}]" value="5" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
<form class="form-new-review" action="#" method="post">
|
||||
<div class="form-group">
|
||||
<label class="form-control-label" for="new_review_title">{l s='Title' mod='leofeature'} <sup class="required">*</sup></label>
|
||||
<input type="text" class="form-control" id="new_review_title" required="" name="new_review_title">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-control-label" for="new_review_content">{l s='Comment' mod='leofeature'} <sup class="required">*</sup></label>
|
||||
<textarea type="text" class="form-control" id="new_review_content" required="" name="new_review_content"></textarea>
|
||||
</div>
|
||||
{if $allow_guests == true && !$is_logged}
|
||||
<div class="form-group">
|
||||
<label class="form-control-label" for="new_review_customer_name">{l s='Your name' mod='leofeature'} <sup class="required">*</sup></label>
|
||||
<input type="text" class="form-control" id="new_review_customer_name" required="" name="new_review_customer_name">
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label class="form-control-label"><sup>*</sup> {l s='Required fields' mod='leofeature'}</label>
|
||||
<input id="id_product_review" name="id_product_review" type="hidden" value='{$product_modal_review->id}' />
|
||||
</div>
|
||||
<button class="btn btn-primary form-control-submit leo-fake-button pull-xs-right" type="submit">
|
||||
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{l s='Close' mod='leofeature'}</button>
|
||||
<button type="button" class="leo-modal-review-bt btn btn-primary">
|
||||
|
||||
<span class="leo-modal-review-loading cssload-speeding-wheel"></span>
|
||||
<span class="leo-modal-review-bt-text">
|
||||
{l s='Submit' mod='leofeature'}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
67
modules/leofeature/views/templates/front/notification.tpl
Normal file
67
modules/leofeature/views/templates/front/notification.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<div class="leo-notification" style="width: {$width_notification}; {$vertical_position}; {$horizontal_position}">
|
||||
</div>
|
||||
<div class="leo-temp leo-temp-success">
|
||||
<div class="notification-wrapper">
|
||||
<div class="notification notification-success">
|
||||
{*
|
||||
<span class="notification-title"><i class="material-icons"></i></span>
|
||||
*}
|
||||
<strong class="noti product-name"></strong>
|
||||
<span class="noti noti-update">{l s='The product has been updated in your shopping cart' mod='leofeature'}</span>
|
||||
<span class="noti noti-delete">{l s='The product has been removed from your shopping cart' mod='leofeature'}</span>
|
||||
<span class="noti noti-add"><strong class="noti-special"></strong> {l s='Product successfully added to your shopping cart' mod='leofeature'}</span>
|
||||
<span class="notification-close">X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="leo-temp leo-temp-error">
|
||||
<div class="notification-wrapper">
|
||||
<div class="notification notification-error">
|
||||
{*
|
||||
<span class="notification-title"><i class="material-icons"></i></span>
|
||||
*}
|
||||
|
||||
<span class="noti noti-update">{l s='Error updating' mod='leofeature'}</span>
|
||||
<span class="noti noti-delete">{l s='Error deleting' mod='leofeature'}</span>
|
||||
<span class="noti noti-add">{l s='Error adding. Please go to product detail page and try again' mod='leofeature'}</span>
|
||||
|
||||
<span class="notification-close">X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="leo-temp leo-temp-warning">
|
||||
<div class="notification-wrapper">
|
||||
<div class="notification notification-warning">
|
||||
{*
|
||||
<span class="notification-title"><i class="material-icons"></i></span>
|
||||
*}
|
||||
<span class="noti noti-min">{l s='The minimum purchase order quantity for the product is' mod='leofeature'} <strong class="noti-special"></strong></span>
|
||||
<span class="noti noti-max">{l s='There are not enough products in stock' mod='leofeature'}</span>
|
||||
|
||||
<span class="notification-close">X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="leo-temp leo-temp-normal">
|
||||
<div class="notification-wrapper">
|
||||
<div class="notification notification-normal">
|
||||
{*
|
||||
<span class="notification-title"><i class="material-icons"></i></span>
|
||||
*}
|
||||
<span class="noti noti-check">{l s='You must enter a quantity' mod='leofeature'}</span>
|
||||
|
||||
<span class="notification-close">X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
28
modules/leofeature/views/templates/front/price_attribute.tpl
Normal file
28
modules/leofeature/views/templates/front/price_attribute.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright 2007-2018 Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
{if $product_price_attribute.show_price}
|
||||
{if $product_price_attribute.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$product_price_attribute type="old_price"}
|
||||
<span class="sr-only">{l s='Regular price' mod='leofeature'}</span>
|
||||
<span class="regular-price">{$product_price_attribute.regular_price}</span>
|
||||
{if $product_price_attribute.discount_type === 'percentage'}
|
||||
<span class="discount-percentage discount-product">{$product_price_attribute.discount_percentage}</span>
|
||||
{elseif $product_price_attribute.discount_type === 'amount'}
|
||||
<span class="discount-amount discount-product">{$product_price_attribute.discount_amount_to_display}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product_price_attribute type="before_price"}
|
||||
|
||||
<span class="sr-only">{l s='Price' mod='leofeature'}</span>
|
||||
<span itemprop="price" class="price">{$product_price_attribute.price}</span>
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product_price_attribute type='unit_price'}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product_price_attribute type='weight'}
|
||||
{/if}
|
||||
Reference in New Issue
Block a user