{"id":421273,"date":"2024-02-09T06:48:32","date_gmt":"2024-02-09T06:48:32","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=421273"},"modified":"2024-07-10T07:27:03","modified_gmt":"2024-07-10T07:27:03","slug":"locale-and-entity-based-layouts-in-the-prestashop-theme","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/","title":{"rendered":"Locale and entity based layouts in the PrestaShop theme"},"content":{"rendered":"\n<p>In this blog, we will learn how to change <a href=\"https:\/\/webkul.com\/blog\/create-custom-layouts-in-the-prestashop-theme\/\">PrestaShop theme layout<\/a> based on locale and entity ID. Suppose, you are running a store in multiple languages (ie: English &amp; French).<\/p>\n\n\n\n<p>You want to display the different layouts for each language. The customer can see different theme looks when they switch the languages.<\/p>\n\n\n\n<p>While rendering any template, PrestaShop finds the template in multiple locations in the currently active theme. For example, when the product page is loaded, PrestaShop looks for the <code>product.tpl<\/code> file under the theme <code>&lt;Theme&gt;\/templates\/catalog\/<\/code> folder.<\/p>\n\n\n\n<p>To know in detail what PrestaShop performs the checks during the template rending, check the <code><a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/8.1.3\/classes\/Smarty\/TemplateFinder.php\" target=\"_blank\" rel=\"noreferrer noopener\">TemplateFinder.php<\/a><\/code> class&#8217; below methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/8.1.3\/classes\/Smarty\/TemplateFinder.php#L48\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getTemplate<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/8.1.3\/classes\/Smarty\/TemplateFinder.php#L71\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getTemplateHierarchy<\/code><\/a><\/li>\n<\/ul>\n\n\n\n<p>You can see how PrestaShop checks the template location entity-wise (in getTemplateHierarchy method) and then locale-wise (in <code>getTemplate<\/code> method). <\/p>\n\n\n\n<p>Let&#8217;s see this process in the graphical representation to understand this process easily with an example.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"product-page-example\">Product page example<a href=\"https:\/\/devdocs.prestashop-project.org\/8\/themes\/reference\/templates\/templates-layouts\/#product-page-example\"><\/a><\/h4>\n\n\n\n<p>With the product page, the PrestaShop will check the following locations (in order) and return the first template found:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"400\" data-id=\"421880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\" alt=\"locale-and-entity-based-layouts-in-the-prestashop-theme\" class=\"wp-image-421880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme-300x150.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme-250x125.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Example for the product with ID = 1 and locale = en-US:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>en-US\/catalog\/product-1.tpl<\/code><\/li>\n\n\n\n<li><code>catalog\/product-1.tpl<\/code><\/li>\n\n\n\n<li><code>en-US\/catalog\/product.tpl<\/code><\/li>\n\n\n\n<li><code>catalog\/product.tpl<\/code><\/li>\n<\/ol>\n\n\n\n<p>Let&#8217;s see this example in practice. We are going to modify the product page layout for the product ID 1. We just interchange the product information and product image positions. <\/p>\n\n\n\n<p>To do this, we will create a file <code>product-1.tpl<\/code> in the <code>&lt;Theme>\/templates\/catalog\/<\/code> folder and copy the code of the existing <code>product.tpl<\/code> file and made some minor changes in the code to interchange positions.<\/p>\n\n\n\n<p>After making all these changes, when we browse product ID 1, it will look like the below image:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1152\" height=\"619\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/image-23.png\" alt=\"PrestaShop product changed layout\" class=\"wp-image-421312\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/image-23.png 1152w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/image-23-300x161.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/image-23-250x134.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/image-23-768x413.png 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>You can also create a folder for locale (ie: en-US) under the <code>&lt;Theme&gt;\/templates\/<\/code> folder and create a new <code>product.tpl<\/code> file. <\/p>\n\n\n\n<p>A new file path will be  <code>&lt;Theme&gt;\/templates\/en-US\/catalog\/product.tpl<\/code><\/p>\n\n\n\n<p>Now, you can make changes as per your need and save it. When you change your language to English (en-US) then this template will be rendered.<\/p>\n\n\n\n<figure class=\"wp-block-gallery aligncenter has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"303\" data-id=\"421325\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/screencast-192.168.10.230-2024.02.09-12_07_25-ezgif.com-repair.gif\" alt=\"Locale base prestashop layout\" class=\"wp-image-421325\" loading=\"lazy\" \/><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You can do the same with the other pages like category, CMS, brands, etc.<\/p>\n\n\n\n<p>For more information, please check the below link:<\/p>\n\n\n\n<p><a href=\"https:\/\/devdocs.prestashop-project.org\/8\/themes\/reference\/templates\/templates-layouts\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/devdocs.prestashop-project.org\/8\/themes\/reference\/templates\/templates-layouts\/<\/a><\/p>\n\n\n\n<p>That\u2019s all about this blog.<\/p>\n\n\n\n<p>If any issue or doubt please feel free to mention it in the comment section.<\/p>\n\n\n\n<p>I would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">PrestaShop Development Services<\/a>&nbsp;&amp; a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\" target=\"_blank\" rel=\"noreferrer noopener\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at&nbsp;<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will learn how to change PrestaShop theme layout based on locale and entity ID. Suppose, you are running a store in multiple languages (ie: English &amp; French). You want to display the different layouts for each language. The customer can see different theme looks when they switch the languages. While rendering <a href=\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":384,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[4193,2065,1179],"class_list":["post-421273","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-override","tag-prestashop","tag-theme-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Locale and entity based layouts in the PrestaShop theme - Webkul Blog<\/title>\n<meta name=\"description\" content=\"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Locale and entity based layouts in the PrestaShop theme - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-09T06:48:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-10T07:27:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\" \/>\n<meta name=\"author\" content=\"Ajeet Chauhan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajeet Chauhan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\"},\"author\":{\"name\":\"Ajeet Chauhan\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357\"},\"headline\":\"Locale and entity based layouts in the PrestaShop theme\",\"datePublished\":\"2024-02-09T06:48:32+00:00\",\"dateModified\":\"2024-07-10T07:27:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\",\"keywords\":[\"Override\",\"prestashop\",\"theme\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\",\"url\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\",\"name\":\"Locale and entity based layouts in the PrestaShop theme - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\",\"datePublished\":\"2024-02-09T06:48:32+00:00\",\"dateModified\":\"2024-07-10T07:27:03+00:00\",\"description\":\"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png\",\"width\":800,\"height\":400,\"caption\":\"locale-and-entity-based-layouts-in-the-prestashop-theme\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Locale and entity based layouts in the PrestaShop theme\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357\",\"name\":\"Ajeet Chauhan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ajeet Chauhan\"},\"description\":\"Ajeet is a talented Software Engineer specializing in the PrestaShop platform. With expertise in PrestaShop Shipping &amp; Payments Integration, Marketplace Development, and Headless services, he delivers innovative solutions that enhance eCommerce functionality, driving seamless operations for businesses and their customers.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/ajeetchauhan-symfony143\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Locale and entity based layouts in the PrestaShop theme - Webkul Blog","description":"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/","og_locale":"en_US","og_type":"article","og_title":"Locale and entity based layouts in the PrestaShop theme - Webkul Blog","og_description":"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.","og_url":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2024-02-09T06:48:32+00:00","article_modified_time":"2024-07-10T07:27:03+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png","type":"","width":"","height":""}],"author":"Ajeet Chauhan","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ajeet Chauhan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/"},"author":{"name":"Ajeet Chauhan","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357"},"headline":"Locale and entity based layouts in the PrestaShop theme","datePublished":"2024-02-09T06:48:32+00:00","dateModified":"2024-07-10T07:27:03+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png","keywords":["Override","prestashop","theme"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/","url":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/","name":"Locale and entity based layouts in the PrestaShop theme - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png","datePublished":"2024-02-09T06:48:32+00:00","dateModified":"2024-07-10T07:27:03+00:00","description":"This blog explain about how to override PrestaShop theme layouts based on the current language and entity ID.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2024\/02\/locale-and-entity-based-layouts-in-the-prestashop-theme.png","width":800,"height":400,"caption":"locale-and-entity-based-layouts-in-the-prestashop-theme"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/locale-and-entity-based-layouts-in-the-prestashop-theme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Locale and entity based layouts in the PrestaShop theme"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357","name":"Ajeet Chauhan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ajeet Chauhan"},"description":"Ajeet is a talented Software Engineer specializing in the PrestaShop platform. With expertise in PrestaShop Shipping &amp; Payments Integration, Marketplace Development, and Headless services, he delivers innovative solutions that enhance eCommerce functionality, driving seamless operations for businesses and their customers.","url":"https:\/\/webkul.com\/blog\/author\/ajeetchauhan-symfony143\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/421273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/384"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=421273"}],"version-history":[{"count":25,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/421273\/revisions"}],"predecessor-version":[{"id":452239,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/421273\/revisions\/452239"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=421273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=421273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=421273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}