Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name" : "{$shop.name}",
"url" : "{$urls.pages.index}",
{if $shop.logo_details}
"logo": {
"@type": "ImageObject",
"url":"{$shop.logo_details.src}"
}
{/if}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"isPartOf": {
"@type": "WebSite",
"url": "{$urls.pages.index}",
"name": "{$shop.name}"
},
"name": "{$page.meta.title}",
"url": "{$urls.current_url}"
}
</script>
{if $page.page_name == 'index'}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url" : "{$urls.pages.index}",
"image": {
"@type": "ImageObject",
"url":"{$shop.logo_details.src}"
},
"potentialAction": {
"@type": "SearchAction",
"target": "{'--search_term_string--'|str_replace:'{search_term_string}':$link->getPageLink('search',true,null,['search_query'=>'--search_term_string--'])}",
"query-input": "required name=search_term_string"
}
}
</script>
{/if}
{if isset($breadcrumb.links[1])}
<script type="application/ld+json">
{
"@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}]
}
</script>
{/if}

View File

@@ -0,0 +1,88 @@
{**
* 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}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "{$product.name}",
"description": "{$page.meta.description|regex_replace:"/[\r\n]/" : " "}",
"category": "{$product.category_name}",
{if !empty($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if}
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}"
{if $product.ean13},"gtin": "{$product.ean13}"{/if}
{if $product.upc},"gtin12": "{$product.upc}"{/if}
{if isset($product_manufacturer) && $product_manufacturer->name},
"brand": {
"@type": "Brand",
"name": "{$product_manufacturer->name|escape:'html':'UTF-8'}"
}
{elseif $shop.name},
"brand": {
"@type": "Organization",
"name": "{$shop.name}"
}
{/if}
{if $hasAggregateRating},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{$ratingValue|round:1|escape:'html':'UTF-8'}",
"reviewCount": "{$ratingReviewCount|escape:'html':'UTF-8'}"
}
{/if}
{if $hasWeight},
"weight": {
"@context": "https://schema.org",
"@type": "QuantitativeValue",
"value": "{$product.weight}",
"unitCode": "{$product.weight_unit}"
}
{/if}
{if $hasOffers},
"offers": {
"@type": "Offer",
"priceCurrency": "{$currency.iso_code}",
"price": "{$product.price_amount}",
"url": "{$product.url}",
"priceValidUntil": "{($smarty.now + (int) (60*60*24*15))|date_format:"%Y-%m-%d"}",
{if $product.images|count > 0}
"image": {strip}[
{foreach from=$product.images item=p_img name="p_img_list"}
"{$p_img.large.url}"{if not $smarty.foreach.p_img_list.last},{/if}
{/foreach}
]{/strip},
{/if}
{if !empty($product.show_condition) && !empty($product.condition)}"itemCondition": "{$product.condition.schema_url}",{/if}
"availability": "{$product.seo_availability}",
"seller": {
"@type": "Organization",
"name": "{$shop.name}"
}
}
{/if}
}
</script>

View File

@@ -0,0 +1,20 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"itemListElement": [
{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}
]
}
</script>