update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<section id="js-active-search-filters" class="{if $activeFilters|count}active_filters{else}hide{/if}">
|
||||
{block name='active_filters_title'}
|
||||
<h1 class="h6 {if $activeFilters|count}active-filter-title{else}hidden-xs-up{/if}">{l s='Active filters' d='Shop.Theme.Global'}</h1>
|
||||
{/block}
|
||||
|
||||
{if $activeFilters|count}
|
||||
<ul>
|
||||
{foreach from=$activeFilters item="filter"}
|
||||
{block name='active_filters_item'}
|
||||
<li class="filter-block">
|
||||
{l s='%1$s: ' d='Shop.Theme.Catalog' sprintf=[$filter.facetLabel]}
|
||||
{$filter.label}
|
||||
<a class="js-search-link" href="{$filter.nextEncodedFacetsURL}"><i class="material-icons close"></i></a>
|
||||
</li>
|
||||
{/block}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</section>
|
||||
@@ -0,0 +1,102 @@
|
||||
<div id="buy-by-phone-popup">
|
||||
<div class="buy-by-phone-popup--wrapper">
|
||||
<div class="popup-header">
|
||||
<div class="popup-header--close">
|
||||
<a href="#" title="close" class="close-popup">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-body">
|
||||
<div class="popup-body--left">
|
||||
<div class="popup-img">
|
||||
<img class="product-cover" src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}"
|
||||
title="{$product.cover.legend}" itemprop="image">
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-body--right">
|
||||
<div class="popup-body-top">
|
||||
<p>ZADZWOŃ <a href="tel:172000035">172000035</a> lub uzupełnij i wyślij poniższy formularz, wówczas to my skontaktujemy się z Tobą.</p>
|
||||
<form id="buy-by-phone-form" action="/buy-by-phone.php" method="post">
|
||||
<input type="hidden" name="buy-by-phone-mail-from" value="Lulandia">
|
||||
<input type="hidden" name="buy-by-phone-product-name" value="{$product.name}">
|
||||
<input type="hidden" name="buy-by-phone-product-uri" value="{$product.link}">
|
||||
<div class="form-cols">
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control form-control-name" name="buy-by-phone-name" placeholder="Twoje imię">
|
||||
</div>
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control form-control-phone" name="buy-by-phone-phone" required="required" placeholder="Numer telefonu *">
|
||||
</div>
|
||||
</div>
|
||||
<span class="popup-input-alert">* pole jest wymagane</span>
|
||||
<br/><br/>
|
||||
<p>Potrzebuję porady odnośnie doboru produktu:</p>
|
||||
<div class="form-group lql-form-content-element form-group-radio">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="buy-by-phone-need-advice" value="tak"> Tak
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="buy-by-phone-need-advice" value="nie"> Nie
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="contact-time" placeholder="Preferowana data/godzina kontaktu">
|
||||
</div>
|
||||
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="product-to-buy" placeholder="Produkt jaki chcę kupić">
|
||||
</div>
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="shipping-address" placeholder="Adres do wysyłki">
|
||||
</div>
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="phone-for-courier"
|
||||
placeholder="Numer telefonu dla kuriera">
|
||||
</div>
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="email" placeholder="Adres e-mail">
|
||||
</div>
|
||||
<div class="form-group lql-form-content-element">
|
||||
<input type="text" class="form-control" name="comments-to-order" placeholder="Uwagi do zamówienia">
|
||||
</div>
|
||||
|
||||
<div class="form-group lql-form-content-element form-group-polityka">
|
||||
<input type="checkbox" class="form-control" name="polityka" id="polityka" required="">
|
||||
<label for="polityka">
|
||||
* Wyrażam zgodę na przetwarzanie przez Dr Materac sp. z o.o. mojego adresu e-mail oraz innych danych osobowych, które dobrowolnie podaję w treści wiadomości w celu udzielenia na nią odpowiedzi i kontaktu. Zapoznałem się z <a href="/content/92-regulamin-sprzedazy-telefonicznej" target="_blank">Regulaminem</a> i <a href="/content/12-polityka-prywatnosci" target="_blank">Polityką prywatności</a>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="g-recaptcha" data-sitekey="6LeEV5YnAAAAAEGp1y2Ci_lkqhQgbJNz67oCk_dU"></div>
|
||||
<br/>
|
||||
|
||||
<button type="submit" class="form-control-submit lql-form-bt lql-register-bt btn btn-primary"
|
||||
id="buy-by-phone-form-btn">
|
||||
<span class="lql-bt-txt">
|
||||
Wyślij
|
||||
</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="popup-alert">
|
||||
<div class="popup-alert-wrapper">
|
||||
<div class="popup-alert-close">
|
||||
<a href="#" title="close" class="close-popup-alert">
|
||||
<i class="fa fa-times" aria-hidden="true"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="popup-alert-data">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
{/literal}
|
||||
@@ -0,0 +1,36 @@
|
||||
{**
|
||||
* 2007-2018 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2018 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div id="js-product-list-header">
|
||||
{if $listing.pagination.items_shown_from == 1}
|
||||
<div class="block-category card card-block">
|
||||
<h1 class="h1">{$category.name}</h1>
|
||||
{if $category.image.large.url}
|
||||
<div class="category-cover">
|
||||
<img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}">
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
163
themes/leo_lulandia/templates/catalog/_partials/facets.tpl
Normal file
163
themes/leo_lulandia/templates/catalog/_partials/facets.tpl
Normal file
@@ -0,0 +1,163 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div id="search_filters" class="block">
|
||||
|
||||
{block name='facets_title'}
|
||||
<p class="text-uppercase h6 hidden-sm-down title_block">{l s='Filter By' d='Shop.Theme.Actions'}</p>
|
||||
{/block}
|
||||
|
||||
{block name='facets_clearall_button'}
|
||||
<div id="_desktop_search_filters_clear_all" class="hidden-sm-down clear-all-wrapper text-xs-center">
|
||||
<button data-search-url="{$clear_all_link}" class="btn btn-tertiary js-search-filters-clear-all">
|
||||
<i class="material-icons"></i>
|
||||
{l s='Clear all' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/block}
|
||||
<div class="block_content">
|
||||
{foreach from=$facets item="facet"}
|
||||
{if $facet.displayed}
|
||||
<section class="facet clearfix {if isset($facet.filters.0.properties.color)} attr-color{/if}">
|
||||
<p class="h6 facet-title hidden-sm-down">{$facet.label}</p>
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
{assign var=_collapse value=true}
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
{if $filter.active}{assign var=_collapse value=false}{/if}
|
||||
{/foreach}
|
||||
<div class="title hidden-md-up" data-target="#facet_{$_expand_id}" data-toggle="collapse"{if !$_collapse} aria-expanded="true"{/if}>
|
||||
<p class="h6 facet-title">{$facet.label}</p>
|
||||
<span class="float-xs-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="material-icons add"></i>
|
||||
<i class="material-icons remove"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{if $facet.widgetType !== 'dropdown'}
|
||||
|
||||
{block name='facet_item_other'}
|
||||
<ul id="facet_{$_expand_id}" class="collapse{if !$_collapse} in{/if}">
|
||||
{foreach from=$facet.filters key=filter_key item="filter"}
|
||||
{if $filter.displayed}
|
||||
<li>
|
||||
<label class="facet-label{if $filter.active} active {/if}" for="facet_input_{$_expand_id}_{$filter_key}">
|
||||
{if $facet.multipleSelectionAllowed}
|
||||
<span class="custom-checkbox">
|
||||
<input
|
||||
id="facet_input_{$_expand_id}_{$filter_key}"
|
||||
data-search-url="{$filter.nextEncodedFacetsURL}"
|
||||
type="checkbox"
|
||||
{if $filter.active } checked {/if}
|
||||
>
|
||||
{if isset($filter.properties.color)}
|
||||
<span class="color" style="background-color:{$filter.properties.color}"></span>
|
||||
{elseif isset($filter.properties.texture)}
|
||||
<span class="color texture" style="background-image:url({$filter.properties.texture})"></span>
|
||||
{else}
|
||||
<span {if !$js_enabled} class="ps-shown-by-js" {/if}><i class="material-icons rtl-no-flip checkbox-checked"></i></span>
|
||||
{/if}
|
||||
</span>
|
||||
{else}
|
||||
<span class="custom-radio">
|
||||
<input
|
||||
id="facet_input_{$_expand_id}_{$filter_key}"
|
||||
data-search-url="{$filter.nextEncodedFacetsURL}"
|
||||
type="radio"
|
||||
name="filter {$facet.label}"
|
||||
{if $filter.active } checked {/if}
|
||||
>
|
||||
<span {if !$js_enabled} class="ps-shown-by-js" {/if}></span>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
<a
|
||||
href="{$filter.nextEncodedFacetsURL}"
|
||||
class="_gray-darker search-link js-search-link"
|
||||
rel="nofollow"
|
||||
>
|
||||
{$filter.label}
|
||||
{if $filter.magnitude}
|
||||
<span class="magnitude">({$filter.magnitude})</span>
|
||||
{/if}
|
||||
</a>
|
||||
</label>
|
||||
</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
|
||||
{block name='facet_item_dropdown'}
|
||||
<ul id="facet_{$_expand_id}" class="collapse{if !$_collapse} in{/if}">
|
||||
<li>
|
||||
<div class="col-sm-12 col-xs-12 col-md-12 facet-dropdown dropdown">
|
||||
<a class="select-title" rel="nofollow" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{$active_found = false}
|
||||
<span>
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
{if $filter.active}
|
||||
{$filter.label}
|
||||
{if $filter.magnitude}
|
||||
({$filter.magnitude})
|
||||
{/if}
|
||||
{$active_found = true}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$active_found}
|
||||
{l s='(no filter)' d='Shop.Theme.Global'}
|
||||
{/if}
|
||||
</span>
|
||||
<i class="material-icons float-xs-right"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
{if !$filter.active}
|
||||
<a
|
||||
rel="nofollow"
|
||||
href="{$filter.nextEncodedFacetsURL}"
|
||||
class="select-list"
|
||||
>
|
||||
{$filter.label}
|
||||
{if $filter.magnitude}
|
||||
({$filter.magnitude})
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
|
||||
{/if}
|
||||
</section>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
35
themes/leo_lulandia/templates/catalog/_partials/index.php
Normal file
35
themes/leo_lulandia/templates/catalog/_partials/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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;
|
||||
@@ -0,0 +1,37 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='brand_miniature_item'}
|
||||
<li class="brand">
|
||||
<div class="brand-img col-xl-3 col-lg-3 col-xs-12"><a href="{$brand.url}"><img src="{$brand.image}" alt="{$brand.name}"></a></div>
|
||||
<div class="brand-infos col-xl-4 col-lg-4 col-xs-12">
|
||||
<p><a href="{$brand.url}">{$brand.name}</a></p>
|
||||
{$brand.text nofilter}
|
||||
</div>
|
||||
<div class="brand-products col-xl-5 col-lg-5 col-xs-12">
|
||||
<a href="{$brand.url}">{$brand.nb_products}</a>
|
||||
<a href="{$brand.url}" class="btn btn-outline float-md-right text-xs-center">{l s='View products' d='Shop.Theme.Actions'}</a>
|
||||
</div>
|
||||
</li>
|
||||
{/block}
|
||||
@@ -0,0 +1,37 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='category_miniature_item'}
|
||||
<section class="category-miniature">
|
||||
<a href="{$category.url}">
|
||||
<img src="{$category.image.medium.url}" alt="{$category.image.legend}">
|
||||
</a>
|
||||
|
||||
<h1 class="h2">
|
||||
<a href="{$category.url}">{$category.name}</a>
|
||||
</h1>
|
||||
|
||||
<div class="category-description">{$category.description nofilter}</div>
|
||||
</section>
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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;
|
||||
@@ -0,0 +1,91 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
{if !isset($LISTING_GRID_MODE) || !isset($LISTING_PRODUCT_COLUMN) || !isset($LISTING_PRODUCT_COLUMN_MODULE) || !isset($LISTING_PRODUCT_TABLET) || !isset($LISTING_PRODUCT_SMALLDEVICE) || !isset($LISTING_PRODUCT_EXTRASMALLDEVICE) || !isset($LISTING_PRODUCT_MOBILE)}
|
||||
{block name="setting"}
|
||||
{include file="layouts/setting.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if !isset($productClassWidget)}
|
||||
{assign var="productClassWidget" value={hook h="pagebuilderConfig" configName="productClass"}}
|
||||
{/if}
|
||||
{if !isset($productProfileDefault)}
|
||||
{assign var="productProfileDefault" value={hook h="pagebuilderConfig" configName="productKey"}}
|
||||
{/if}
|
||||
|
||||
{*define numbers of product per line in other page for desktop*}
|
||||
{if (isset($page.page_name) && $page.page_name == 'category') || (isset($leo_page) && $leo_page=='category')}
|
||||
{assign var='nbItemsPerLine' value=$LISTING_PRODUCT_COLUMN}
|
||||
|
||||
{if $LISTING_PRODUCT_COLUMN=="5"} {assign var="col_cat_product_xl" value="col-xl-2-4"}{else}{assign var="col_cat_product_xl" value="col-xl-{12/$LISTING_PRODUCT_COLUMN}"}{/if}
|
||||
{if $LISTING_PRODUCT_LARGEDEVICE=="5"} {assign var="col_cat_product_lg" value="col-lg-2-4"}{else}{assign var="col_cat_product_lg" value="col-lg-{12/$LISTING_PRODUCT_LARGEDEVICE}"}{/if}
|
||||
{assign var="colValue" value="col-sp-{12/$LISTING_PRODUCT_MOBILE} col-xs-{12/$LISTING_PRODUCT_EXTRASMALLDEVICE} col-sm-{12/$LISTING_PRODUCT_SMALLDEVICE} col-md-{12/$LISTING_PRODUCT_TABLET} {$col_cat_product_lg} {$col_cat_product_xl}" scope="global"}
|
||||
{else}
|
||||
{assign var='nbItemsPerLine' value=$LISTING_PRODUCT_COLUMN_MODULE}
|
||||
|
||||
{if $LISTING_PRODUCT_COLUMN_MODULE=="5"}{assign var="col_cat_product_xl" value="col-xl-2-4"}{else}{assign var="col_cat_product_xl" value="col-xl-{12/$LISTING_PRODUCT_COLUMN_MODULE}"}{/if}
|
||||
{if $LISTING_PRODUCT_LARGEDEVICE=="5"} {assign var="col_cat_product_lg" value="col-lg-2-4"}{else}{assign var="col_cat_product_lg" value="col-lg-{12/$LISTING_PRODUCT_LARGEDEVICE}"}{/if}
|
||||
|
||||
{assign var="colValue" value="col-sp-{12/$LISTING_PRODUCT_MOBILE} col-xs-{12/$LISTING_PRODUCT_EXTRASMALLDEVICE} col-sm-{12/$LISTING_PRODUCT_SMALLDEVICE} col-md-{12/$LISTING_PRODUCT_TABLET} {$col_cat_product_lg} {$col_cat_product_xl}" scope="global"}
|
||||
{/if}
|
||||
|
||||
{assign var='nbItemsPerLineTablet' value=$LISTING_PRODUCT_TABLET}
|
||||
{assign var='nbItemsPerLineMobile' value=$LISTING_PRODUCT_EXTRASMALLDEVICE}
|
||||
{*define numbers of product per line in other page for tablet*}
|
||||
{assign var='nbLi' value=$products|count}
|
||||
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
|
||||
{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
|
||||
<!-- Products list -->
|
||||
|
||||
{assign var="categoryLayout" value={hook h="pagebuilderConfig" configName="categoryLayout"}}
|
||||
{assign var="classCategoryLayout" value={hook h="pagebuilderConfig" configName="classCategoryLayout"}}
|
||||
|
||||
<div {if isset($id) && $id} id="{$id}"{/if} class="product_list {if isset($leo_page) && $leo_page=='category'}{$LISTING_GRID_MODE}{/if} {if isset($classCategoryLayout) && $classCategoryLayout != ""}{$classCategoryLayout} {elseif isset($productClassWidget)} {$productClassWidget}{/if} ">
|
||||
<div class="row">
|
||||
{foreach from=$products item=product name=products}
|
||||
{math equation="(total%perLine)" total=$products|count perLine=$nbItemsPerLine assign=totModulo}
|
||||
{math equation="(total%perLineT)" total=$products|count perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
|
||||
{math equation="(total%perLineT)" total=$products|count perLineT=$nbItemsPerLineMobile assign=totModuloMobile}
|
||||
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
|
||||
{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
|
||||
{if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
|
||||
<div class="ajax_block_product {$colValue}
|
||||
{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line
|
||||
{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}
|
||||
{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}
|
||||
{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line
|
||||
{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}
|
||||
{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line
|
||||
{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}
|
||||
{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}
|
||||
">
|
||||
{block name='product_miniature'}
|
||||
{if isset($productProfileDefault) && $productProfileDefault}
|
||||
{* exits THEME_NAME/profiles/profile_name.tpl -> load template*}
|
||||
{if isset($categoryLayout) && $categoryLayout != ""}
|
||||
{hook h='displayLeoProfileProduct' product=$product profile=$categoryLayout}
|
||||
{else}
|
||||
{hook h='displayLeoProfileProduct' product=$product profile=$productProfileDefault}
|
||||
{/if}
|
||||
{else}
|
||||
{include file='catalog/_partials/miniatures/product.tpl' product=$product}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
if (window.jQuery) {
|
||||
$(document).ready(function(){
|
||||
if (prestashop.page.page_name == 'category'){
|
||||
setDefaultListGrid();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,54 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='pack_miniature_item'}
|
||||
<article>
|
||||
<div class="card">
|
||||
<div class="pack-product-container">
|
||||
<div class="thumb-mask">
|
||||
<div class="mask">
|
||||
<a href="{$product.url}" title="{$product.name}">
|
||||
<img
|
||||
src="{$product.cover.medium.url}"
|
||||
alt="{$product.cover.legend}"
|
||||
data-full-size-image-url="{$product.cover.large.url}"
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pack-product-name">
|
||||
<a href="{$product.url}" title="{$product.name}">
|
||||
{$product.name}
|
||||
</a>
|
||||
</div>
|
||||
<div class="pack-product-price">
|
||||
<strong>{$product.price}</strong>
|
||||
</div>
|
||||
<div class="pack-product-quantity">
|
||||
<span>x {$product.pack_quantity}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{/block}
|
||||
@@ -0,0 +1,157 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='product_miniature_item'}
|
||||
<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}">
|
||||
<div class="thumbnail-container">
|
||||
<div class="product-image">
|
||||
{block name='product_thumbnail'}
|
||||
{if isset($cfg_product_list_image) && $cfg_product_list_image}
|
||||
<div class="leo-more-info" data-idproduct="{$product.id_product}"></div>
|
||||
{/if}
|
||||
{if $product.cover}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
{hook h='displayProductListStickers' pro=$product}
|
||||
<img
|
||||
class="img-fluid"
|
||||
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}"
|
||||
>
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{$product.id_product}"></span>
|
||||
{/if}
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
src = "{$urls.no_picture_image.bySize.home_default.url}"
|
||||
>
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{$product.id_product}"></span>
|
||||
{/if}
|
||||
</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 class="functional-buttons clearfix">
|
||||
{block name='quick_view'}
|
||||
<div class="quickview{if !$product.main_variants} no-variants{/if} hidden-sm-down">
|
||||
<a
|
||||
href="#"
|
||||
class="quick-view btn-product btn btn-primary"
|
||||
data-link-action="quickview"
|
||||
data-source=".thumb-gallery-{$product.id}-{$product.id_product_attribute}"
|
||||
title="{l s='Quick view' d='Shop.Theme.Actions'}"
|
||||
>
|
||||
<span class="leo-quickview-bt-loading cssload-speeding-wheel"></span>
|
||||
<span class="leo-quickview-bt-content">
|
||||
<i class="icon-btn-product icon-quick-view material-icons"></i>
|
||||
<span class="name-btn-product">{l s='Quick view' d='Shop.Theme.Actions'}</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
{hook h='displayLeoCompareButton' product=$product}
|
||||
{hook h='displayLeoWishlistButton' product=$product}
|
||||
{hook h='displayLeoCartButton' product=$product}
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-meta">
|
||||
<div class="product-description">
|
||||
|
||||
{block name='product_name'}
|
||||
{if $page.page_name == 'index'}
|
||||
<h3 class="h3 product-title"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
|
||||
{else}
|
||||
<h2 class="h3 product-title"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{hook h='displayLeoProductListReview' product=$product}
|
||||
{block name='product_reviews'}
|
||||
{hook h='displayProductListReviews' product=$product}
|
||||
{/block}
|
||||
|
||||
{block name='product_price_and_shipping'}
|
||||
{if $product.show_price}
|
||||
<div class="product-price-and-shipping {if $product.has_discount}has_discount{/if}">
|
||||
|
||||
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="price">{$product.price}</span>
|
||||
|
||||
{if $product.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$product type="old_price"}
|
||||
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount-percentage discount-product">{$product.discount_percentage}</span>
|
||||
{elseif $product.discount_type === 'amount'}
|
||||
<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type="before_price"}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='weight'}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="button_container">
|
||||
<a href="{$product.url}">
|
||||
{if $product.id_manufacturer != 20}
|
||||
<span>Zobacz</span>
|
||||
{else}
|
||||
<span style="font-size:12px">Zapytaj i zamów przez czat</span>
|
||||
{/if}
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='product_description_short'}
|
||||
<div class="product-description-short">{$product.description_short|strip_tags:true|truncate:150:'...' nofilter}</div>
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
<div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">
|
||||
{block name='product_variants'}
|
||||
{if $product.main_variants}
|
||||
{include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{hook h='displayLeoCartAttribute' product=$product}
|
||||
{hook h='displayLeoCartQuantity' product=$product}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{/block}
|
||||
@@ -0,0 +1,38 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if $page.admin_notifications}
|
||||
<div class="alert alert-warning row" role="alert">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{foreach $page.admin_notifications as $notif}
|
||||
<div class="col-sm-12">
|
||||
<i class="material-icons float-xs-left"></i>
|
||||
<p class="alert-text">{$notif.message}</p>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,115 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="product-add-to-cart">
|
||||
{if !$configuration.is_catalog}
|
||||
|
||||
{block name='product_quantity'}
|
||||
<div class="product-quantity clearfix">
|
||||
<div class="qty clearfix">
|
||||
<span class="control-label">{l s='Quantity' d='Shop.Theme.Catalog'}</span>
|
||||
<select
|
||||
name="qty"
|
||||
id="quantity_wanted"
|
||||
value="{$product.quantity_wanted}"
|
||||
class="input-group"
|
||||
min="{$product.minimal_quantity}"
|
||||
aria-label="{l s='Quantity' d='Shop.Theme.Actions'}">
|
||||
<option value="1">1 szt.</option>
|
||||
<option value="2">2 szt.</option>
|
||||
<option value="3">3 szt.</option>
|
||||
<option value="4">4 szt.</option>
|
||||
<option value="5">5 szt.</option>
|
||||
<option value="6">6 szt.</option>
|
||||
<option value="7">7 szt.</option>
|
||||
<option value="8">8 szt.</option>
|
||||
<option value="9">9 szt.</option>
|
||||
<option value="10">10 szt.</option>
|
||||
</select>
|
||||
<!-- <input
|
||||
type="text"
|
||||
name="qty"
|
||||
id="quantity_wanted"
|
||||
value="{$product.quantity_wanted}"
|
||||
class="input-group"
|
||||
min="{$product.minimal_quantity}"
|
||||
aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
|
||||
> -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{block name='product_prices'}
|
||||
<div class="price_container">{include file='catalog/_partials/product-prices.tpl'}</div>
|
||||
{/block}
|
||||
|
||||
|
||||
<div class="add">
|
||||
<button
|
||||
class="btn btn-primary add-to-cart"
|
||||
data-button-action="add-to-cart"
|
||||
type="submit"
|
||||
{if !$product.add_to_cart_url}
|
||||
disabled
|
||||
{/if}
|
||||
>
|
||||
<i class="material-icons shopping-cart"></i>
|
||||
{l s='Add to cart' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
<!-- <div class="leo-compare-wishlist-button">
|
||||
{hook h='displayLeoWishlistButton' product=$product}
|
||||
{hook h='displayLeoCompareButton' product=$product}
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<!-- {block name='product_availability'}
|
||||
<span id="product-availability">
|
||||
{if $product.show_availability && $product.availability_message}
|
||||
{if $product.availability == 'available'}
|
||||
<i class="material-icons rtl-no-flip product-available"></i>
|
||||
{elseif $product.availability == 'last_remaining_items'}
|
||||
<i class="material-icons product-last-items"></i>
|
||||
{else}
|
||||
<i class="material-icons product-unavailable"></i>
|
||||
{/if}
|
||||
{$product.availability_message}
|
||||
{/if}
|
||||
</span>
|
||||
{/block} -->
|
||||
|
||||
{block name='product_minimal_quantity'}
|
||||
<p class="product-minimal-quantity">
|
||||
{if $product.minimal_quantity > 1}
|
||||
{l
|
||||
s='The minimum purchase order quantity for the product is %quantity%.'
|
||||
d='Shop.Theme.Checkout'
|
||||
sprintf=['%quantity%' => $product.minimal_quantity]
|
||||
}
|
||||
{/if}
|
||||
</p>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="product-additional-info">
|
||||
{hook h='displayProductAdditionalInfo' product=$product}
|
||||
</div>
|
||||
@@ -0,0 +1,73 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="images-container">
|
||||
{block name='product_cover_thumbnails'}
|
||||
|
||||
{block name='product_cover'}
|
||||
<div class="product-cover">
|
||||
{hook h='displayProductStickers'}
|
||||
{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}
|
||||
<img id="zoom_product" data-type-zoom="" class="js-qv-product-cover img-fluid" src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" itemprop="image">
|
||||
<div class="layer hidden-sm-down" data-toggle="modal" data-target="#product-modal">
|
||||
<i class="material-icons zoom-in"></i>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='product_images'}
|
||||
<div id="thumb-gallery" class="product-thumb-images">
|
||||
{foreach from=$product.images item=image}
|
||||
<div class="thumb-container {if $image.id_image == $product.cover.id_image} active {/if}">
|
||||
<a href="javascript:void(0)" data-image="{$image.bySize.large_default.url}" data-zoom-image="{$image.bySize.large_default.url}">
|
||||
<img
|
||||
class="thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}"
|
||||
data-image-medium-src="{$image.bySize.medium_default.url}"
|
||||
data-image-large-src="{$image.bySize.large_default.url}"
|
||||
src="{$image.bySize.home_default.url}"
|
||||
alt="{$image.legend}"
|
||||
title="{$image.legend}"
|
||||
itemprop="image"
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{if $product.images|@count > 1}
|
||||
<div class="arrows-product-fake slick-arrows">
|
||||
<button class="slick-prev slick-arrow" aria-label="Previous" type="button" >{l s='Previous' d='Shop.Theme.Catalog'}</button>
|
||||
<button class="slick-next slick-arrow" aria-label="Next" type="button">{l s='Next' d='Shop.Theme.Catalog'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{hook h='displayAfterProductThumbs'}
|
||||
</div>
|
||||
@@ -0,0 +1,69 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<section class="product-customization">
|
||||
{if !$configuration.is_catalog}
|
||||
<div class="card card-block">
|
||||
<p class="h4 card-title">{l s='Product customization' d='Shop.Theme.Catalog'}</p>
|
||||
{l s='Don\'t forget to save your customization to be able to add to cart' d='Shop.Forms.Help'}
|
||||
|
||||
{block name='product_customization_form'}
|
||||
<form method="post" action="{$product.url}" enctype="multipart/form-data">
|
||||
<ul class="clearfix">
|
||||
{foreach from=$customizations.fields item="field"}
|
||||
<li class="product-customization-item">
|
||||
<label> {$field.label}</label>
|
||||
{if $field.type == 'text'}
|
||||
<textarea placeholder="{l s='Your message here' d='Shop.Forms.Help'}" class="product-message" maxlength="250" {if $field.required} required {/if} name="{$field.input_name}"></textarea>
|
||||
<small class="float-xs-right">{l s='250 char. max' d='Shop.Forms.Help'}</small>
|
||||
{if $field.text !== ''}
|
||||
<h6 class="customization-message">{l s='Your customization:' d='Shop.Theme.Catalog'}
|
||||
<label>{$field.text}</label>
|
||||
</h6>
|
||||
{/if}
|
||||
{elseif $field.type == 'image'}
|
||||
{if $field.is_customized}
|
||||
<br>
|
||||
<img src="{$field.image.small.url}">
|
||||
<a class="remove-image" href="{$field.remove_image_url}" rel="nofollow">{l s='Remove Image' d='Shop.Theme.Actions'}</a>
|
||||
{/if}
|
||||
<span class="custom-file">
|
||||
<span class="js-file-name">{l s='No selected file' d='Shop.Forms.Help'}</span>
|
||||
<input class="file-input js-file-input" {if $field.required} required {/if} type="file" name="{$field.input_name}">
|
||||
<button class="btn btn-primary">{l s='Choose file' d='Shop.Theme.Actions'}</button>
|
||||
</span>
|
||||
<small class="float-xs-right">{l s='.png .jpg .gif' d='Shop.Forms.Help'}</small>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="clearfix">
|
||||
<button class="btn btn-primary float-xs-right" type="submit" name="submitCustomizedData">{l s='Save Customization' d='Shop.Theme.Actions'}</button>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
@@ -0,0 +1,88 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="tab-pane fade{if !$product.description} in active{/if}"
|
||||
id="product-details"
|
||||
data-product="{$product.embedded_attributes|json_encode}"
|
||||
role="tabpanel"
|
||||
>
|
||||
{block name='product_reference'}
|
||||
{if isset($product_manufacturer->id)}
|
||||
<div class="product-manufacturer">
|
||||
{if isset($manufacturer_image_url)}
|
||||
<a href="{$product_brand_url}">
|
||||
<img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}">
|
||||
</a>
|
||||
{else}
|
||||
<label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label>
|
||||
<span>
|
||||
<a href="{$product_brand_url}">{$product_manufacturer->name}</a>
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($product.reference_to_display) && $product.reference_to_display neq ''}
|
||||
<div class="product-reference">
|
||||
<label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
|
||||
<span itemprop="sku">{$product.reference_to_display}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
<!-- {block name='product_quantities'}
|
||||
{if $product.show_quantities}
|
||||
<div class="product-quantities">
|
||||
<label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label>
|
||||
<span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block} -->
|
||||
|
||||
<!-- {block name='product_availability_date'}
|
||||
{if $product.availability_date}
|
||||
<div class="product-availability-date">
|
||||
<label>{l s='Availability date:' d='Shop.Theme.Catalog'} </label>
|
||||
<span>{$product.availability_date}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='product_out_of_stock'}
|
||||
<div class="product-out-of-stock">
|
||||
{hook h='actionProductOutOfStock' product=$product}
|
||||
</div>
|
||||
{/block} -->
|
||||
|
||||
{block name='product_features'}
|
||||
{if $product.grouped_features}
|
||||
<section class="product-features">
|
||||
<p class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</p>
|
||||
<dl class="data-sheet">
|
||||
{foreach from=$product.grouped_features item=feature}
|
||||
<dt class="name">{$feature.name}</dt>
|
||||
<dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>
|
||||
{/foreach}
|
||||
</dl>
|
||||
</section>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* if product have specific references, a table will be added to product details section *}
|
||||
{block name='product_specific_references'}
|
||||
{if !empty($product.specific_references)}
|
||||
<section class="product-features">
|
||||
<p class="h6">{l s='Specific References' d='Shop.Theme.Catalog'}</p>
|
||||
<dl class="data-sheet">
|
||||
{foreach from=$product.specific_references item=reference key=key}
|
||||
<dt class="name">{$key}</dt>
|
||||
<dd class="value">{$reference}</dd>
|
||||
{/foreach}
|
||||
</dl>
|
||||
</section>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<section class="product-discounts">
|
||||
{if $product.quantity_discounts}
|
||||
<p class="h6 product-discounts-title">{l s='Volume discounts' d='Shop.Theme.Catalog'}</p>
|
||||
{block name='product_discount_table'}
|
||||
<table class="table-product-discounts">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Quantity' d='Shop.Theme.Catalog'}</th>
|
||||
<th>{$configuration.quantity_discount.label}</th>
|
||||
<th>{l s='You Save' d='Shop.Theme.Catalog'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$product.quantity_discounts item='quantity_discount' name='quantity_discounts'}
|
||||
<tr data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value}" data-discount-quantity="{$quantity_discount.quantity}">
|
||||
<td>{$quantity_discount.quantity}</td>
|
||||
<td>{$quantity_discount.discount}</td>
|
||||
<td>{l s='Up to %discount%' d='Shop.Theme.Catalog' sprintf=['%discount%' => $quantity_discount.save]}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{/block}
|
||||
{/if}
|
||||
</section>
|
||||
@@ -0,0 +1,52 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="modal fade js-product-images-modal leo-product-modal" id="product-modal" data-thumbnails=".product-images-{$product.id_product}">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
{assign var=imagesCount value=$product.images|count}
|
||||
<figure>
|
||||
<img class="js-modal-product-cover product-cover-modal" width="{$product.cover.large.width}" src="{$product.cover.large.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" itemprop="image">
|
||||
<figcaption class="image-caption">
|
||||
{block name='product_description_short'}
|
||||
<div id="product-description-short" itemprop="description">{$product.description_short nofilter}</div>
|
||||
{/block}
|
||||
</figcaption>
|
||||
</figure>
|
||||
<aside id="thumbnails" class="thumbnails text-sm-center">
|
||||
{block name='product_images'}
|
||||
<div class="product-images product-images-{$product.id_product}">
|
||||
{foreach from=$product.images item=image}
|
||||
<div class="thumb-container">
|
||||
<img data-image-large-src="{$image.large.url}" class="thumb img-fluid js-modal-thumb{if $image.id_image == $product.cover.id_image} selected {/if}" src="{$image.medium.url}" alt="{$image.legend}" title="{$image.legend}" width="{$image.medium.width}" itemprop="image">
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
</aside>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
@@ -0,0 +1,92 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if $product.show_price}
|
||||
<div class="product-prices">
|
||||
|
||||
{block name='product_price'}
|
||||
<div
|
||||
class="product-price h5 {if $product.has_discount}has-discount{/if}"
|
||||
itemprop="offers"
|
||||
itemscope
|
||||
itemtype="https://schema.org/Offer"
|
||||
>
|
||||
<link itemprop="availability" href="{$product.seo_availability}"/>
|
||||
<meta itemprop="priceCurrency" content="{$currency.iso_code}">
|
||||
|
||||
<div class="current-price">
|
||||
<span itemprop="price" content="{$product.price_amount}">{$product.price}</span>
|
||||
|
||||
{if $product.has_discount}
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
|
||||
{else}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{block name='product_unit_price'}
|
||||
{if $displayUnitPrice}
|
||||
<p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>
|
||||
{/if}
|
||||
{/block}
|
||||
{/block}
|
||||
{block name='product_discount'}
|
||||
{if $product.has_discount}
|
||||
<div class="product-discount">
|
||||
{hook h='displayProductPriceBlock' product=$product type="old_price"}
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='product_without_taxes'}
|
||||
{if $priceDisplay == 2}
|
||||
<p class="product-without-taxes">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='product_pack_price'}
|
||||
{if $displayPackPrice}
|
||||
<p class="product-pack-price"><span>{l s='Instead of %price%' d='Shop.Theme.Catalog' sprintf=['%price%' => $noPackPrice]}</span></p>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='product_ecotax'}
|
||||
{if $product.ecotax.amount > 0}
|
||||
<p class="price-ecotax">{l s='Including %amount% for ecotax' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.ecotax.value]}
|
||||
{if $product.has_discount}
|
||||
{l s='(not impacted by the discount)' d='Shop.Theme.Catalog'}
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type="weight" hook_origin='product_sheet'}
|
||||
{hook h='displayProductPriceBlock' product=$product type="after_price"}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,69 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="product-variants">
|
||||
{foreach from=$groups key=id_attribute_group item=group}
|
||||
{if !empty($group.attributes)}
|
||||
<div class="clearfix product-variants-item">
|
||||
<span class="control-label">{$group.name}</span>
|
||||
{if $group.group_type == 'select'}
|
||||
<select
|
||||
class="form-control form-control-select"
|
||||
id="group_{$id_attribute_group}"
|
||||
data-product-attribute="{$id_attribute_group}"
|
||||
name="group[{$id_attribute_group}]">
|
||||
{foreach from=$group.attributes key=id_attribute item=group_attribute}
|
||||
<option value="{$id_attribute}" title="{$group_attribute.name}"{if $group_attribute.selected} selected="selected"{/if}>{$group_attribute.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{elseif $group.group_type == 'color'}
|
||||
<ul id="group_{$id_attribute_group}">
|
||||
{foreach from=$group.attributes key=id_attribute item=group_attribute}
|
||||
<li class="float-xs-left input-container">
|
||||
<label>
|
||||
<input class="input-color" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
|
||||
<span
|
||||
{if $group_attribute.html_color_code}class="color" style="background-color: {$group_attribute.html_color_code}" {/if}
|
||||
{if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if}
|
||||
><span class="sr-only">{$group_attribute.name}</span></span>
|
||||
</label>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{elseif $group.group_type == 'radio'}
|
||||
<ul id="group_{$id_attribute_group}">
|
||||
{foreach from=$group.attributes key=id_attribute item=group_attribute}
|
||||
<li class="input-container float-xs-left">
|
||||
<label>
|
||||
<input class="input-radio" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
|
||||
<span class="radio-label">{$group_attribute.name}</span>
|
||||
</label>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
{*
|
||||
* Classic theme doesn't use this subtemplate, feel free to do whatever you need here.
|
||||
* This template is generated at each ajax calls.
|
||||
* See ProductListingFrontController::getAjaxProductSearchVariables()
|
||||
*}
|
||||
<div id="js-product-list-bottom"></div>
|
||||
@@ -0,0 +1,71 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if !isset($LISTING_GRID_MODE) || !isset($LISTING_PRODUCT_COLUMN) || !isset($LISTING_PRODUCT_COLUMN_MODULE) || !isset($LISTING_PRODUCT_TABLET) || !isset($LISTING_PRODUCT_SMALLDEVICE) || !isset($LISTING_PRODUCT_EXTRASMALLDEVICE) || !isset($LISTING_PRODUCT_MOBILE)}
|
||||
{block name="setting"}
|
||||
{include file="layouts/setting.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
<div id="js-product-list-top" class="products-selection">
|
||||
<div class="row">
|
||||
<!-- <div class="col-lg-6 col-md-3 hidden-sm-down total-products">
|
||||
{block name='leo_gird_list'}
|
||||
<div class="display">
|
||||
<div id="grid" class="leo_grid {if isset($LISTING_GRID_MODE) && $LISTING_GRID_MODE =='grid'}selected{/if}"><a rel="nofollow" href="#" title="{l s='Grid' d='Shop.Theme.Global'}"><img src="{$urls.base_url}/img/cms/layout/grid_ico.svg" alt="Grid"></a></div>
|
||||
<div id="list" class="leo_list {if isset($LISTING_GRID_MODE) && $LISTING_GRID_MODE =='list'}selected{/if}"><a rel="nofollow" href="#" title="{l s='List' d='Shop.Theme.Global'}"><img src="{$urls.base_url}/img/cms/layout/list_ico.svg" alt="Lista"></a></div>
|
||||
</div>
|
||||
{/block}
|
||||
{if $listing.pagination.total_items > 1}
|
||||
<p>{l s='There are %product_count% products.' d='Shop.Theme.Catalog' sprintf=['%product_count%' => $listing.pagination.total_items]}</p>
|
||||
{else if $listing.pagination.total_items > 0}
|
||||
<p>{l s='There is 1 product.' d='Shop.Theme.Catalog'}</p>
|
||||
{/if}
|
||||
</div> -->
|
||||
<div class="col-lg-6 col-md-9">
|
||||
<div class="row sort-by-row">
|
||||
<span class="sort_border">
|
||||
{block name='sort_by'}
|
||||
{include file='catalog/_partials/sort-orders.tpl' sort_orders=$listing.sort_orders}
|
||||
{/block}
|
||||
|
||||
{if !empty($listing.rendered_facets)}
|
||||
<div class="col-sm-4 col-xs-4 col-sp-12 hidden-md-up filter-button">
|
||||
<button id="search_filter_toggler" class="btn btn-outline">
|
||||
{l s='Filter' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 hidden-md-up text-sm-center showing">
|
||||
{l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=[
|
||||
'%from%' => $listing.pagination.items_shown_from ,
|
||||
'%to%' => $listing.pagination.items_shown_to,
|
||||
'%total%' => $listing.pagination.total_items
|
||||
]}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
62
themes/leo_lulandia/templates/catalog/_partials/products.tpl
Normal file
62
themes/leo_lulandia/templates/catalog/_partials/products.tpl
Normal file
@@ -0,0 +1,62 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div id="js-product-list">
|
||||
<div class="products">
|
||||
{assign var="leo_page" value='category'}
|
||||
{include file='catalog/_partials/miniatures/leo_col_products.tpl' products=$listing.products}
|
||||
</div>
|
||||
|
||||
{block name='pagination'}
|
||||
{include file='_partials/pagination.tpl' pagination=$listing.pagination}
|
||||
{/block}
|
||||
|
||||
<div class="hidden-md-up text-xs-right up">
|
||||
<a href="#header" class="btn btn-secondary">
|
||||
{l s='Back to top' d='Shop.Theme.Actions'}
|
||||
<i class="material-icons"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{* TODO: Fix this problem. *}
|
||||
{php}
|
||||
/*
|
||||
$currentPath = $_SERVER['REQUEST_URI'];
|
||||
$parsedUrl = parse_url($currentPath);
|
||||
$pathWithoutQuery = $parsedUrl['path'];
|
||||
$pathWithoutQueryString = str_replace( '/', '-', $pathWithoutQuery );
|
||||
$filePath = '/producer_descriptions/' . $pathWithoutQueryString . '.html';
|
||||
$absoluteFilePath = $_SERVER['DOCUMENT_ROOT'] . $filePath;
|
||||
|
||||
$page = isset($_GET['page']) ? $_GET['page'] : '1';
|
||||
|
||||
if($page <= 1) {
|
||||
if ($absoluteFilePath) {
|
||||
$fileContent = file_get_contents($absoluteFilePath);
|
||||
echo $fileContent;
|
||||
}
|
||||
}
|
||||
*/
|
||||
{/php}
|
||||
@@ -0,0 +1,77 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div id="quickview-modal-{$product.id}-{$product.id_product_attribute}" class="modal fade quickview leo-quickview" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<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>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 hidden-xs-down">
|
||||
|
||||
{block name='product_cover_thumbnails'}
|
||||
{include file='catalog/_partials/product-cover-thumbnails.tpl'}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-6">
|
||||
<h1 class="h1">{$product.name}</h1>
|
||||
{block name='product_prices'}
|
||||
{include file='catalog/_partials/product-prices.tpl'}
|
||||
{/block}
|
||||
{block name='product_description_short'}
|
||||
<div id="product-description-short" class="description-short" itemprop="description">{$product.description_short nofilter}</div>
|
||||
{/block}
|
||||
{block name='product_buy'}
|
||||
<div class="product-actions">
|
||||
<form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh">
|
||||
<input type="hidden" name="token" value="{$static_token}">
|
||||
<input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id">
|
||||
<input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id">
|
||||
{block name='product_variants'}
|
||||
{include file='catalog/_partials/product-variants.tpl'}
|
||||
{/block}
|
||||
|
||||
{block name='product_add_to_cart'}
|
||||
{include file='catalog/_partials/product-add-to-cart.tpl'}
|
||||
{/block}
|
||||
|
||||
{* Input to refresh product HTML removed, block kept for compatibility with themes *}
|
||||
{block name='product_refresh'}{/block}
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{hook h='displayProductAdditionalInfo' product=$product}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,60 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<span class="col-sm-3 col-md-3 sort-by">{l s='Sort by:' d='Shop.Theme.Global'}</span>
|
||||
<div class="{if !empty($listing.rendered_facets)}col-sm-9 col-xs-8 col-sp-12 {else}col-sm-12 col-xs-12{/if} col-md-9 products-sort-order dropdown">
|
||||
<button
|
||||
class="btn-unstyle select-title"
|
||||
rel="nofollow"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
{if isset($listing.sort_selected)}{$listing.sort_selected}{else}{l s='Select' d='Shop.Theme.Actions'}{/if}
|
||||
<span class="chevron_sort_container"><img src="{$urls.base_url}/img/cms/layout/chevron_green.svg" alt="Chevron"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
{foreach from=$listing.sort_orders item=sort_order}
|
||||
|
||||
{if ({$sort_order.label}=="Relevance (reverse)" || {$sort_order.label}=="Nazwa, A do Z" || {$sort_order.label} == "Nazwa, Z do A" || {$sort_order.label} == 'Dostępne')}
|
||||
|
||||
{else}
|
||||
<a
|
||||
rel="nofollow"
|
||||
href="{$sort_order.url}"
|
||||
class="select-list {['current' => $sort_order.current, 'js-search-link' => true]|classnames}"
|
||||
>
|
||||
{$sort_order.label}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
<a
|
||||
rel="nofollow"
|
||||
href="{$listing.sort_orders[1].url}"
|
||||
class="select-list {['current' => $sort_order.current, 'js-search-link' => true]|classnames}"
|
||||
>
|
||||
Nowości
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
{*
|
||||
* @Module Name: AP Page Builder
|
||||
* @Website: apollotheme.com - prestashop template provider
|
||||
* @author Apollotheme <apollotheme@gmail.com>
|
||||
* @copyright Apollotheme
|
||||
* @description: ApPageBuilder is module help you can build content for your shop
|
||||
*}
|
||||
<div class="variant-links">
|
||||
{foreach from=$variants item=variant}
|
||||
<a href="{$variant.url}"
|
||||
class="{$variant.type}"
|
||||
title="{$variant.name}"
|
||||
{*
|
||||
TODO:
|
||||
put color in a data attribute for use with attr() as soon as browsers support it,
|
||||
see https://developer.mozilla.org/en/docs/Web/CSS/attr
|
||||
*}
|
||||
{if $variant.html_color_code} style="background-color: {$variant.html_color_code}" {/if}
|
||||
{if $variant.texture} style="background-image: url({$variant.texture})" {/if}
|
||||
><span class="sr-only">{$variant.name}</span></a>
|
||||
{/foreach}
|
||||
<span class="js-count count"></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user