first commit

This commit is contained in:
2025-05-30 15:12:20 +02:00
commit 326a834e98
1764 changed files with 325325 additions and 0 deletions

View File

@@ -0,0 +1,107 @@
{if $product_combinations}
<div id="pdproductattributeslist" class="products">
{if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if}
<table id="pdproductattributeslist_table" class="table table-striped table-bordered table-labeled tablesorter" width="100%">
<thead>
<tr>
<th class="product_image sorter-false filter-false">{l s='Image' mod='pdproductattributeslist'}</th>
<th class="product_variant">{l s='Variant' mod='pdproductattributeslist'}</th>
<th class="product_infos sorter-false filter-false">{l s='Product informations' mod='pdproductattributeslist'}</th>
{if $show_prices}
<th class="product_price">{l s='Price (tax incl.)' mod='pdproductattributeslist'}</th>
<th class="product_price">{l s='Price (tax excl.)' mod='pdproductattributeslist'}</th>
{/if}
<th class="product_qty">{l s='Quantity in stock' mod='pdproductattributeslist'}</th>
{if !$is_catalog}
<th class="product_btn sorter-false filter-false">{l s='Select quantity' mod='pdproductattributeslist'}</th>
{/if}
</tr>
</thead>
<tbody>
{foreach from=$product_combinations item=$combination}
<tr class="product_combination_{if ($combination@index % 2)}alternate_{/if}item">
<td data-column="{l s='Image' mod='pdproductattributeslist'}" class="option_image">
{foreach from=$combination.images item=$img}
<a href="{$img.large_default}" rel="group_{$combination.id_product_attribute}" class="{if ($img@index > 0)}hidden {/if}fancybox">
<img width="{$cartSize.width}" height="{$cartSize.height}" class="img img-fluid img-responsive" src="{$img.home_default}" alt="{$combination.attribute_name}" title="{$combination.attribute_name}" />
</a>
{/foreach}
</td>
<td data-column="{l s='Product variant' mod='pdproductattributeslist'}" class="option_variant">
{$combination.attribute_name_html nofilter}
</td>
<td data-column="{l s='Informations' mod='pdproductattributeslist'}" class="option_infos text-xs-left">
{if isset($combination.reference) AND $combination.reference}
{l s='Reference' mod='pdproductattributeslist'}: <b>{$combination.reference}</b>
{/if}
{if !empty($combination.ean13)}
<br />{l s='Ean' mod='pdproductattributeslist'}: <b>{$combination.ean13}</b>
{/if}
</td>
{if $show_prices}
<td data-column="{l s='Price tax incl.' mod='pdproductattributeslist'}" class="option_price">
<span class="price product-price">
{Tools::displayPrice($combination.price)}
</span>
{if $combination.price != $combination.price_old}
<br />
<span class="old_price">
{Tools::displayPrice($combination.price_old)}
</span>
{/if}
</td>
<td data-column="{l s='Price tax excl.' mod='pdproductattributeslist'}" class="option_price">
<span class="price product-price">
{Tools::displayPrice($combination.price_tax_excl)}
</span>
<br />
{if $combination.price_tax_excl != $combination.price_old_tax_excl}
<span class="old_price">
{Tools::displayPrice($combination.price_old_tax_excl)}
</span>
{/if}
</td>
{/if}
<td data-column="{l s='Quantity on stock' mod='pdproductattributeslist'}" class="option_price">
<b>{$combination.quantity}</b> {l s='pcs' mod='pdproductattributeslist'}
</td>
{if !$is_catalog}
<td data-id-product="{$combination.id_product|intval}" data-id-product-attribute="{$combination.id_product_attribute|intval}" data-column="{l s='Select quantity' mod='pdproductattributeslist'}" class="option_gty">
<div class="row extra-small-gutters product-quantity">
<input type="number" name="qty" inputmode="numeric" pattern="[0-9]*" class="quantity input-group form-control" min="0" value="0"/>
</div>
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
<div class="footer_actions">
<button
class="btn btn-lg btn-primary add-to-cart-pdproductattributeslist pull-right"
type="button">
{l s='Add selected to cart' mod='pdproductattributeslist'}
</button>
</div>
</div>
{/if}

View File

@@ -0,0 +1,3 @@
<li><a href="#idTabPdProductAttributesList" class="idTabHrefShort">{l s='Delivery cost' mod='pdproductshipping'}</a></li>

View File

@@ -0,0 +1,105 @@
{if $product_combinations}
<div id="pdproductattributeslist" class="products">
{if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if}
<table id="pdproductattributeslist_table" class="table table-striped table-bordered table-labeled tablesorter" width="100%">
<thead>
<tr>
<th class="product_image sorter-false filter-false">{l s='Image' mod='pdproductattributeslist'}</th>
<th class="product_variant">{l s='Variant' mod='pdproductattributeslist'}</th>
<th class="product_infos sorter-false filter-false">{l s='Product informations' mod='pdproductattributeslist'}</th>
{if $show_prices}
<th class="product_price">{l s='Price (tax incl.)' mod='pdproductattributeslist'}</th>
<th class="product_price">{l s='Price (tax excl.)' mod='pdproductattributeslist'}</th>
{/if}
<th class="product_qty">{l s='Quantity in stock' mod='pdproductattributeslist'}</th>
{if !$is_catalog}
<th class="product_btn sorter-false filter-false">{l s='Select quantity' mod='pdproductattributeslist'}</th>
{/if}
</tr>
</thead>
<tbody>
{foreach from=$product_combinations item=$combination}
<tr class="product_combination_{if ($combination@index % 2)}alternate_{/if}item">
<td data-column="{l s='Image' mod='pdproductattributeslist'}" class="option_image">
{foreach from=$combination.images item=$img}
<a href="{$img.large_default}" rel="group_{$combination.id_product_attribute}" class="{if ($img@index > 0)}hidden {/if}fancybox">
<img width="{$cartSize.width}" height="{$cartSize.height}" class="img img-fluid img-responsive" src="{$img.home_default}" alt="{$combination.attribute_name}" title="{$combination.attribute_name}" />
</a>
{/foreach}
</td>
<td data-column="{l s='Product variant' mod='pdproductattributeslist'}" class="option_variant">
{$combination.attribute_name_html nofilter}
</td>
<td data-column="{l s='Informations' mod='pdproductattributeslist'}" class="option_infos text-xs-left">
{if isset($combination.reference) AND $combination.reference}
{l s='Reference' mod='pdproductattributeslist'}: <b>{$combination.reference}</b>
{/if}
{if !empty($combination.ean13)}
<br />{l s='Ean' mod='pdproductattributeslist'}: <b>{$combination.ean13}</b>
{/if}
</td>
{if $show_prices}
<td data-column="{l s='Price tax incl.' mod='pdproductattributeslist'}" class="option_price">
<span class="price product-price">
{Tools::displayPrice($combination.price)}
</span>
{if $combination.price != $combination.price_old}
<br />
<span class="old_price">
{Tools::displayPrice($combination.price_old)}
</span>
{/if}
</td>
<td data-column="{l s='Price tax excl.' mod='pdproductattributeslist'}" class="option_price">
<span class="price product-price">
{Tools::displayPrice($combination.price_tax_excl)}
</span>
<br />
{if $combination.price_tax_excl != $combination.price_old_tax_excl}
<span class="old_price">
{Tools::displayPrice($combination.price_old_tax_excl)}
</span>
{/if}
</td>
{/if}
<td data-column="{l s='Quantity on stock' mod='pdproductattributeslist'}" class="option_price">
<b>{$combination.quantity}</b> {l s='pcs' mod='pdproductattributeslist'}
</td>
{if !$is_catalog}
<td data-id-product="{$combination.id_product|intval}" data-id-product-attribute="{$combination.id_product_attribute|intval}" data-column="{l s='Select quantity' mod='pdproductattributeslist'}" class="option_gty">
<div class="row extra-small-gutters product-quantity">
<input type="number" name="qty" inputmode="numeric" pattern="[0-9]*" class="quantity input-group form-control" min="0" value="0"/>
</div>
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
<div class="footer_actions">
<button
class="btn btn-lg btn-primary add-to-cart-pdproductattributeslist pull-right"
type="button">
{l s='Add selected to cart' mod='pdproductattributeslist'}
</button>
</div>
</div>
{/if}

View File

@@ -0,0 +1,79 @@
{if isset($placement) AND $placement == 2}
<section class="page-product-box pdproductattributeslist">
{/if}
{if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if}
<div id="pdproductattributeslist_grid">
{if $product_combinations}
<section id="products-list" class="clearfix mt-3">
<div class="products product_content grid">
{foreach from=$product_combinations item=combination}
<div class="product-miniature js-product-miniature col-xs-12 col-sm-6 col-md-4 col-lg-4">
<article class="product-miniature js-product-miniature" data-id-product="{$combination.id_product}" data-id-product-attribute="{$combination.id_product_attribute}" >
<div class="thumbnail-container">
<div class="thumbnail-top option_image">
{foreach from=$combination.images item=$img}
<a href="{$img.large_default}" rel="group_{$combination.id_product_attribute}" class="thumbnail product-thumbnail {if ($img@index > 0)}hidden {/if}fancybox">
<img width="{$homeSize.width}" height="{$homeSize.height}" class="img img-fluid img-responsive" src="{$img.home_default}" alt="{$combination.attribute_name}" title="{$combination.attribute_name}" />
</a>
{/foreach}
<div class="highlighted-informations no-variants">
<a class="quick-view js-quick-view" href="#" data-link-action="quickview">
<i class="material-icons search"></i> Szybki podgląd
</a>
</div>
</div>
<div class="product-description">
<h1 class="h3 product-title">
<a href="{$combination.combination_link}" title="{$combination.attribute_name}" class="product_name">{$combination.attribute_name}</a>
</h1>
{if $configuration.show_prices}
<div class="product-price-and-shipping">
<span class="price">{Tools::displayPrice($combination.price)}</span>
{if $combination.price != $combination.price_old}
<span class="regular-price">
{Tools::displayPrice($combination.price_old)}
</span>
{/if}
</div>
{/if}
</div>
{if !$configuration.is_catalog}
<form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh">
<input type="hidden" name="token" value="{$static_token}">
<input type="hidden" name="id_product" value="{$combination.id_product|intval}">
<input type="hidden" name="id_product_attribute" value="{$combination.id_product_attribute|intval}">
<div class="extra-small-gutters product-quantity">
<input type="number" name="qty" inputmode="numeric" pattern="[0-9]*" class="quantity qtyfield input-group form-control" min="{if isset($combination.minimal_quantity) && $combination.minimal_quantity > 1}{$combination.minimal_quantity|intval}{else}{if isset($combination.minimal_quantity)}{$combination.minimal_quantity|intval}{else}1{/if}{/if}" value="{if isset($combination.minimal_quantity) && $combination.minimal_quantity > 1}{$combination.minimal_quantity|intval}{else}{if isset($combination.minimal_quantity)}{$combination.minimal_quantity|intval}{else}1{/if}{/if}" max="{$combination.quantity}"/>
</div>
<div class="add">
<button class="btn btn-primary add-to-cart"
type="submit"
data-button-action="add-to-cart">
{l s='Add to cart' mod='pdproductattributeslist'}
</button>
</div>
</form>
{/if}
{include file='catalog/_partials/product-flags.tpl'}
</div>
</article>
</div>
{/foreach}
</div>
</section>
{/if}
</div>
{if isset($placement) AND $placement == 2}
</section>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2013 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-2013 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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;