diff --git a/config/theme.yml b/config/theme.yml index 1e431de82..5a967e9e7 100644 --- a/config/theme.yml +++ b/config/theme.yml @@ -55,6 +55,12 @@ global_settings: - ps_linklist hooks: modules_to_hook: + displayAdminCustomers: + - blockwishlist + displayCustomerAccount: + - blockwishlist + displayMyAccountBlock: + - blockwishlist displayNav1: - ps_contactinfo displayNav2: @@ -97,6 +103,8 @@ global_settings: - ps_featuredproducts displayCrossSellingShoppingCart: - ps_featuredproducts + displayProductActions: + - blockwishlist image_types: cart_default: diff --git a/templates/_partials/header.tpl b/templates/_partials/header.tpl index 300bcab61..7e4f28cd5 100644 --- a/templates/_partials/header.tpl +++ b/templates/_partials/header.tpl @@ -51,11 +51,11 @@
{hook h='displayTop'} diff --git a/templates/_partials/helpers.tpl b/templates/_partials/helpers.tpl new file mode 100644 index 000000000..ed0cd488d --- /dev/null +++ b/templates/_partials/helpers.tpl @@ -0,0 +1,16 @@ +{** + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + *} + +{function renderLogo} + + + +{/function} diff --git a/templates/_partials/microdata/head-jsonld.tpl b/templates/_partials/microdata/head-jsonld.tpl index 3c722b9db..80f8df257 100644 --- a/templates/_partials/microdata/head-jsonld.tpl +++ b/templates/_partials/microdata/head-jsonld.tpl @@ -8,10 +8,12 @@ "@type": "Organization", "name" : "{$shop.name}", "url" : "{$urls.pages.index}", - "logo": { - "@type": "ImageObject", - "url":"{$shop.logo_details.src}" - } + {if $shop.logo_details} + "logo": { + "@type": "ImageObject", + "url":"{$shop.logo_details.src}" + } + {/if} } @@ -54,14 +56,14 @@ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ - {foreach from=$breadcrumb.links item=path name=breadcrumb} - { - "@type": "ListItem", - "position": {$smarty.foreach.breadcrumb.iteration}, - "name": "{$path.title}", - "item": "{$path.url}" - }{if !$smarty.foreach.breadcrumb.last},{/if} - {/foreach}] - } + {foreach from=$breadcrumb.links item=path name=breadcrumb} + { + "@type": "ListItem", + "position": {$smarty.foreach.breadcrumb.iteration}, + "name": "{$path.title}", + "item": "{$path.url}" + }{if !$smarty.foreach.breadcrumb.last},{/if} + {/foreach}] + } {/if} diff --git a/templates/_partials/microdata/product-jsonld.tpl b/templates/_partials/microdata/product-jsonld.tpl index e84789ffd..ffbfdeac9 100644 --- a/templates/_partials/microdata/product-jsonld.tpl +++ b/templates/_partials/microdata/product-jsonld.tpl @@ -2,6 +2,22 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. *} +{assign var=hasAggregateRating value=false} +{if !empty($product.productComments.averageRating) && !empty($product.productComments.nbComments)} + {assign var=hasAggregateRating value=true} + {assign var=ratingValue value=$product.productComments.averageRating} + {assign var=ratingReviewCount value=$product.productComments.nbComments} +{/if} +{if !empty($ratings.avg) && !empty($nbComments)} + {assign var=hasAggregateRating value=true} + {assign var=ratingValue value=$ratings.avg} + {assign var=ratingReviewCount value=$nbComments} +{/if} +{assign var=hasWeight value=false} +{if isset($product.weight) && ($product.weight != 0)} + {assign var=hasWeight value=true} +{/if} +{assign var=hasOffers value=$product.show_price} diff --git a/templates/_partials/microdata/product-list-jsonld.tpl b/templates/_partials/microdata/product-list-jsonld.tpl index 17791ebfe..4ed2bfdea 100644 --- a/templates/_partials/microdata/product-list-jsonld.tpl +++ b/templates/_partials/microdata/product-list-jsonld.tpl @@ -7,13 +7,14 @@ "@context": "https://schema.org", "@type": "ItemList", "itemListElement": [ - {foreach from=$listing.products item=item key="position" name=productsForJsonLd} - { - "@type": "ListItem", - "position": {$position}, - "name": "{$item.name}", - "url": "{$item.url}" - }{if !$smarty.foreach.productsForJsonLd.last},{/if} - {/foreach}] - } + {foreach from=$listing.products item=item name=productsForJsonLd} + { + "@type": "ListItem", + "position": {$smarty.foreach.productsForJsonLd.iteration}, + "name": "{$item.name}", + "url": "{$item.url}" + }{if !$smarty.foreach.productsForJsonLd.last},{/if} + {/foreach} + ] + } diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index 8fa377de5..59dd3ebc9 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -75,6 +75,12 @@ {hook h='displayAfterProductThumbs' product=$product} {else} - + {/if}
diff --git a/templates/catalog/_partials/product-prices.tpl b/templates/catalog/_partials/product-prices.tpl index 5020aec45..025150710 100644 --- a/templates/catalog/_partials/product-prices.tpl +++ b/templates/catalog/_partials/product-prices.tpl @@ -56,7 +56,7 @@ {block name='product_ecotax'} {if $product.ecotax.amount> 0} -

{l s='Including %amount% for ecotax' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.ecotax_tax_inc]} +

{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} diff --git a/templates/catalog/listing/product-list.tpl b/templates/catalog/listing/product-list.tpl index 2a483a6ea..ef4ed9b65 100644 --- a/templates/catalog/listing/product-list.tpl +++ b/templates/catalog/listing/product-list.tpl @@ -19,27 +19,21 @@

{if $listing.products|count} -
- {block name='product_list_top'} - {include file='catalog/_partials/products-top.tpl' listing=$listing} - {/block} -
+ {block name='product_list_top'} + {include file='catalog/_partials/products-top.tpl' listing=$listing} + {/block} {block name='product_list_active_filters'} {$listing.rendered_active_filters nofilter} {/block} -
- {block name='product_list'} - {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-6 col-xl-4"} - {/block} -
+ {block name='product_list'} + {include file='catalog/_partials/products.tpl' listing=$listing productClass="col-6 col-xl-4"} + {/block} -
- {block name='product_list_bottom'} - {include file='catalog/_partials/products-bottom.tpl' listing=$listing} - {/block} -
+ {block name='product_list_bottom'} + {include file='catalog/_partials/products-bottom.tpl' listing=$listing} + {/block} {else}
diff --git a/templates/customer/_partials/my-account-links.tpl b/templates/customer/_partials/my-account-links.tpl index bdfbdb5cd..0d44e430f 100644 --- a/templates/customer/_partials/my-account-links.tpl +++ b/templates/customer/_partials/my-account-links.tpl @@ -3,11 +3,11 @@ * file that was distributed with this source code. *} {block name='my_account_links'} - - diff --git a/templates/errors/410.tpl b/templates/errors/410.tpl new file mode 100644 index 000000000..d554e9bad --- /dev/null +++ b/templates/errors/410.tpl @@ -0,0 +1,35 @@ +{** + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + *} +{extends file='page.tpl'} + +{block name="breadcrumb"}{/block} + +{block name="container_class"}container container--limited-md text-center{/block} + +{block name='page_header_container'} + {block name='page_title'} + + {/block} +{/block} + +{capture assign="errorContent"} +

{$page.title}

+

+ {l + s='If this is a recurring problem, please [1]contact us[/1]' + d='Shop.Theme.Catalog' + sprintf=[ + '[1]' => "", + '[/1]' => "" + ] + } +

+{/capture} + +{block name='page_content_container'} + {include file='errors/not-found.tpl' errorContent=$errorContent} +{/block} diff --git a/templates/layouts/layout-both-columns.tpl b/templates/layouts/layout-both-columns.tpl index 037d60897..d70fdcb4b 100644 --- a/templates/layouts/layout-both-columns.tpl +++ b/templates/layouts/layout-both-columns.tpl @@ -2,6 +2,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. *} + +{include file='_partials/helpers.tpl'} +