Files
wyczarujprezent.pl/themes/EZE-249/templates/catalog/product.tpl
2024-10-28 22:14:22 +01:00

279 lines
12 KiB
Smarty

{**
* 2007-2019 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-2019 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
*}
{extends file=$layout}
{block name='head_seo' prepend}
<link rel="canonical" href="{$product.canonical_url}">
{/block}
{block name='head' append}
<meta property="og:type" content="product">
<meta property="og:url" content="{$urls.current_url}">
<meta property="og:title" content="{$page.meta.title}">
<meta property="og:site_name" content="{$shop.name}">
<meta property="og:description" content="{$page.meta.description}">
<meta property="og:image" content="{$product.cover.large.url}">
{if $product.show_price}
<meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
<meta property="product:pretax_price:currency" content="{$currency.iso_code}">
<meta property="product:price:amount" content="{$product.price_amount}">
<meta property="product:price:currency" content="{$currency.iso_code}">
{/if}
{if isset($product.weight) && ($product.weight != 0)}
<meta property="product:weight:value" content="{$product.weight}">
<meta property="product:weight:units" content="{$product.weight_unit}">
{/if}
{/block}
{block name='content'}
<section id="main" itemscope itemtype="https://schema.org/Product">
<meta itemprop="url" content="{$product.url}">
<div id="product-card" class="row">
<div class="col-12 col-sm-8 col-lg-6 col-xl-7 offset-sm-2 offset-lg-0 mb-5 pb-5 mb-lg-0">
{block name='page_content_container'}
<section class="page-content" id="content">
{block name='page_content'}
{block name='product_cover_thumbnails'}
{include file='catalog/_partials/product-cover-thumbnails.tpl'}
{/block}
{/block}
</section>
{/block}
</div>
<div class="col-12 col-lg-6 col-xl-5">
{block name='page_header_container'}
{block name='page_header'}
<h1 class="product-name mb-2" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1>
{/block}
{/block}
{block name='product_prices'}
{include file='catalog/_partials/product-prices.tpl'}
{/block}
{block name='product_description_short'}
<div id="product-description-short-{$product.id}" class="product-description-short mt-2 d-none" itemprop="description">{$product.description_short nofilter}</div>
{/block}
{block name='product_reviews'}
{hook h='displayProductListReviews' product=$product}
{/block}
<div class="product-information">
{if $product.is_customizable && count($product.customizations.fields)}
{block name='product_customization'}
{include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations}
{/block}
{/if}
<div class="product-actions">
{block name='product_buy'}
<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_pack'}
{if $packItems}
<section class="product-pack mb-3">
<h3 class="subpage-title mb-2">{l s='This pack contains' d='Shop.Theme.Catalog'}</h3>
<div class="row">
{foreach from=$packItems item="product_pack"}
{block name='product_miniature'}
{include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack}
{/block}
{/foreach}
</div>
</section>
{/if}
{/block}
{block name='product_discounts'}
{include file='catalog/_partials/product-discounts.tpl'}
{/block}
{block name='product_add_to_cart'}
{include file='catalog/_partials/product-add-to-cart.tpl'}
{/block}
{block name='product_additional_info'}
{include file='catalog/_partials/product-additional-info.tpl'}
{/block}
{* Input to refresh product HTML removed, block kept for compatibility with themes *}
{block name='product_refresh'}{/block}
</form>
{/block}
</div>
</div>
{if $product.description}
<div class="description-product">
{block name='product_description'}
<a class="d-flex justify-content-between align-items-center d-md-none" data-toggle="collapse" href="#description-collapse" role="button" aria-expanded="true">
{l s='Description' d='Shop.Theme.Catalog'}
<i class="fa fa-angle-down" aria-hidden="true"></i>
</a>
<div id="description-collapse" class="product-description collapse show">{$product.description nofilter}</div>
{/block}
</div>
{/if}
</div>
</div>
{block name='product_tabs'}
<div class="product-tabs tabs my-5 my-md-10">
<ul class="nav nav-tabs d-none d-md-flex" role="tablist">
<li class="nav-item ">
<a
class="nav-link active"
data-toggle="tab"
href="#other-products"
role="tab"
aria-controls="extra-{$extraKey}">Często wybierane z tym produktem
</a>
</li>
<li class="nav-item">
<a
class="nav-link{if !$product.description} active{/if}"
data-toggle="tab"
href="#product-details"
role="tab"
aria-controls="product-details"
{if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}
</a>
</li>
{if $product.attachments}
<li class="nav-item">
<a
class="nav-link"
data-toggle="tab"
href="#attachments"
role="tab"
aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}
</a>
</li>
{/if}
{foreach from=$product.extraContent item=extra key=extraKey}
<li class="nav-item">
<a
class="nav-link"
data-toggle="tab"
href="#extra-{$extraKey}"
role="tab"
aria-controls="extra-{$extraKey}">{$extra.title}
</a>
</li>
{/foreach}
</ul>
<div class="tab-content" id="tab-content">
{block name='product_details'}
{include file='catalog/_partials/product-details.tpl'}
{/block}
{block name='product_attachments'}
{if $product.attachments}
<div class="tab-pane fade in" id="attachments" role="tabpanel">
<a class="d-flex justify-content-between align-items-center d-md-none collapsed" data-toggle="collapse" href="#attachments-collapse" role="button" aria-expanded="false">
{l s='Attachments' d='Shop.Theme.Catalog'}
<i class="fa fa-angle-down" aria-hidden="true"></i>
</a>
<section id="attachments-collapse" class="product-attachments collapse d-md-block text-center">
<h3 class="h4">{l s='Download' d='Shop.Theme.Actions'}</h3>
{foreach from=$product.attachments item=attachment}
<div class="attachment mb-2">
<h4 class="h6"><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4>
<p>{$attachment.description}</p>
<a class="btn btn-default btn-md" href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">
{l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted})
</a>
</div>
{/foreach}
</section>
</div>
{/if}
{/block}
{foreach from=$product.extraContent item=extra key=extraKey}
<div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}>
<a class="d-flex justify-content-between align-items-center d-md-none collapsed" data-toggle="collapse" href="#extra-{$extraKey}-collapse" role="button" aria-expanded="false">
{$extra.title}
<i class="fa fa-angle-down" aria-hidden="true"></i>
</a>
<div id="extra-{$extraKey}-collapse" class="collapse d-md-block">
{$extra.content nofilter}
</div>
</div>
{/foreach}
<div class="tab-pane active show fade in" id="other-products" role="tabpanel">
{block name='product_accessories'}
{if $accessories}
<section class="product-accessories grid u-carousel uc-el-product-miniature uc-nav mb-5">
<h2 class="h2 products-section-title text-center">{l s='You might also like' d='Shop.Theme.Catalog'}</h2>
<div class="products">
{foreach from=$accessories item="product_accessory"}
{include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory}
{/foreach}
</div>
</section>
{/if}
{/block}
</div>
</div>
</div>
{/block}
{block name='product_footer'}
{assign var='displayMegaProductFooter' value={hook h='jxMegaLayoutProductFooter' product=$product category=$category}}
{if $displayMegaProductFooter}
{$displayMegaProductFooter nofilter}
{else}
{hook h='displayFooterProduct' product=$product category=$category}
{/if}
{/block}
{block name='product_images_modal'}
{include file='catalog/_partials/product-images-modal.tpl' productZoom=true}
{/block}
{block name='page_footer_container'}
<footer class="page-footer">
{block name='page_footer'}
<!-- Footer content -->
{/block}
</footer>
{/block}
</section>
{/block}