{"id":537566,"date":"2026-05-06T14:04:20","date_gmt":"2026-05-06T14:04:20","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=537566"},"modified":"2026-05-06T14:10:10","modified_gmt":"2026-05-06T14:10:10","slug":"how-to-override-the-objectmodel-in-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/","title":{"rendered":"How to Override the ObjectModel in PrestaShop"},"content":{"rendered":"\n<p>In PrestaShop, overriding the ObjectModel is a common way to extend core entities like Customer, Product, or Order without modifying core files. <\/p>\n\n\n\n<p>In this guide, we\u2019ll walk through a <strong>real-world implementation<\/strong>:<br>Adding a <em>blacklist flag<\/em> to customers by overriding the <code>Customer<\/code> ObjectModel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What You\u2019ll Build<\/h2>\n\n\n\n<p>By the end of this tutorial, you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a new field <code>is_black_listed<\/code> in the customer table<\/li>\n\n\n\n<li>Extend the <code>Customer<\/code> ObjectModel<\/li>\n\n\n\n<li>Set a default value for new customers<\/li>\n\n\n\n<li>Keep everything upgrade-safe inside a module<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Create Module Structure<\/h2>\n\n\n\n<p>Create the following folder structure:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">modules\/\n\u2514\u2500\u2500 customerblacklist\/\n    \u251c\u2500\u2500 customerblacklist.php\n    \u251c\u2500\u2500 classes\/\n    \u2502   \u2514\u2500\u2500 CustomerBlackListInstall.php\n    \u2514\u2500\u2500 override\/\n        \u2514\u2500\u2500 classes\/\n            \u2514\u2500\u2500 Customer.php<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Add a New Column to the Customer Table<\/h2>\n\n\n\n<p>We first extend the database schema by adding a new column.<\/p>\n\n\n\n<p><code>classes\/CustomerBlackListInstall.php<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">class CustomerBlackListInstall\n{\n    public function addColumn()\n    {\n        return Db::getInstance()-&gt;execute(\n            &#039;ALTER TABLE `&#039; . _DB_PREFIX_ . &#039;customer`\n             ADD COLUMN `is_black_listed` TINYINT(1) NOT NULL DEFAULT 0&#039;\n        );\n    }\n\n    public function removeColumn()\n    {\n        return Db::getInstance()-&gt;execute(\n            &#039;ALTER TABLE `&#039; . _DB_PREFIX_ . &#039;customer`\n             DROP COLUMN `is_black_listed`&#039;\n        );\n    }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Override the Customer ObjectModel<\/h2>\n\n\n\n<p>Now we extend the core <code>Customer<\/code> model.<\/p>\n\n\n\n<p><code>override\/classes\/Customer.php<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">class Customer extends CustomerCore\n{\n    public $is_black_listed;\n\n    public function __construct($id = null)\n    {\n        self::$definition&#091;&#039;fields&#039;]&#091;&#039;is_black_listed&#039;] = &#091;\n            &#039;type&#039; =&gt; self::TYPE_BOOL,\n            &#039;validate&#039; =&gt; &#039;isBool&#039;,\n            &#039;default&#039; =&gt; 1,\n        ];\n\n        parent::__construct($id);\n\n        if (!$this-&gt;id) {\n            $this-&gt;is_black_listed = 1;\n        }\n    }\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">What\u2019s happening here?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We extend <code>CustomerCore<\/code><\/li>\n\n\n\n<li>Add a new field to <code>$definition<\/code><\/li>\n\n\n\n<li>Set a default value for new customers<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create the Main Module File<\/h2>\n\n\n\n<p>customerblacklist.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">class Customerblacklist extends Module\n{\n    public function __construct()\n    {\n        $this-&gt;name = &#039;customerblacklist&#039;;\n        $this-&gt;version = &#039;1.0.0&#039;;\n        $this-&gt;author = &#039;Webkul&#039;;\n        $this-&gt;bootstrap = true;\n\n        parent::__construct();\n\n        $this-&gt;displayName = &#039;Customer Blacklist&#039;;\n        $this-&gt;description = &#039;Adds blacklist flag to customers&#039;;\n    }\n\n    public function install()\n    {\n        require_once __DIR__ . &#039;\/classes\/CustomerBlackListInstall.php&#039;;\n        $installer = new CustomerBlackListInstall();\n\n        return parent::install() &amp;&amp; $installer-&gt;addColumn();\n    }\n\n    public function uninstall()\n    {\n        require_once __DIR__ . &#039;\/classes\/CustomerBlackListInstall.php&#039;;\n        $installer = new CustomerBlackListInstall();\n\n        return parent::uninstall() &amp;&amp; $installer-&gt;removeColumn();\n    }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Install and Enable Override<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Module Manager<\/strong><\/li>\n\n\n\n<li>Upload and install the module<\/li>\n\n\n\n<li>Clear cache:\n<ul class=\"wp-block-list\">\n<li>Advanced Parameters \u2192 Performance<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Make sure:\n<ul class=\"wp-block-list\">\n<li><strong>Disable Overrides = NO<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the Implementation<\/h2>\n\n\n\n<p>After installing the module, you can verify that the new field has been added and is working correctly.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Register a new customer from the storefront or back office.<\/li>\n\n\n\n<li>Navigate to:<br><strong>Advanced Parameters \u2192 Database \u2192 SQL Manager<\/strong><\/li>\n\n\n\n<li>Click on <strong>\u201cAdd new SQL query\u201d<\/strong> and use the following query:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SELECT id_customer, firstname, lastname, email, is_black_listed FROM ps_customer;<\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Execute the query.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"602\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp\" alt=\"SQL Query\" class=\"wp-image-537788\" title=\"SQL Query\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-300x151.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-250x125.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-768x385.webp 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo.webp 1291w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>In the results, you will see the newly added column <strong><code>is_black_listed<\/code><\/strong>.<br>For newly created customers, its value will be set automatically based on the default defined in the override.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1134\" height=\"317\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbthree.webp\" alt=\"SQL Table\" class=\"wp-image-537792\" title=\"SQL_Table\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbthree.webp 1134w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbthree-300x84.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbthree-250x70.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbthree-768x215.webp 768w\" sizes=\"(max-width: 1134px) 100vw, 1134px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Result<\/h2>\n\n\n\n<p>Now:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A new field <code>is_black_listed<\/code> is added to customers<\/li>\n\n\n\n<li>Default value = <code>1<\/code><\/li>\n\n\n\n<li>Accessible via <code>$customer-&gt;is_black_listed<\/code><\/li>\n\n\n\n<li>When a new customer is created, the is_black_listed field is populated with the desired data as per the override.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Overriding ObjectModel in PrestaShop allows you to extend core entities in a clean and upgrade-safe way.<\/p>\n\n\n\n<p>In this example, we successfully:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Extended the <code>Customer<\/code> model<\/li>\n\n\n\n<li>Added a custom database field<\/li>\n\n\n\n<li>Controlled default behavior<\/li>\n<\/ul>\n\n\n\n<p>This same approach can be used for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Adding custom product attributes<\/li>\n\n\n\n<li>Extending order logic<\/li>\n\n\n\n<li>Enhancing customer data<\/li>\n<\/ul>\n\n\n\n<p>That\u2019s all about this blog. Hope it will help you.<\/p>\n\n\n\n<p>If you are facing any issues or have any doubts about the above process, please feel free to contact us through the comment section.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\">Prestashop Development Services<\/a>&nbsp;and a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">Prestashop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt, contact us at&nbsp;support@webkul.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In PrestaShop, overriding the ObjectModel is a common way to extend core entities like Customer, Product, or Order without modifying core files. In this guide, we\u2019ll walk through a real-world implementation:Adding a blacklist flag to customers by overriding the Customer ObjectModel. What You\u2019ll Build By the end of this tutorial, you will: Step 1: Create <a href=\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":743,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[318,4193,2065],"class_list":["post-537566","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-database","tag-override","tag-prestashop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Override the ObjectModel in PrestaShop - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.\" \/>\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\/how-to-override-the-objectmodel-in-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Override the ObjectModel in PrestaShop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\" \/>\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=\"2026-05-06T14:04:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-06T14:10:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp\" \/>\n<meta name=\"author\" content=\"Jain Arpit Ashok\" \/>\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=\"Jain Arpit Ashok\" \/>\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\/how-to-override-the-objectmodel-in-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\"},\"author\":{\"name\":\"Jain Arpit Ashok\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e0bc5938cce917e3a249c441fa7d167\"},\"headline\":\"How to Override the ObjectModel in PrestaShop\",\"datePublished\":\"2026-05-06T14:04:20+00:00\",\"dateModified\":\"2026-05-06T14:10:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\"},\"wordCount\":403,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp\",\"keywords\":[\"database\",\"Override\",\"prestashop\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\",\"name\":\"How to Override the ObjectModel in PrestaShop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp\",\"datePublished\":\"2026-05-06T14:04:20+00:00\",\"dateModified\":\"2026-05-06T14:10:10+00:00\",\"description\":\"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo.webp\",\"width\":1291,\"height\":648},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Override the ObjectModel in PrestaShop\"}]},{\"@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\/8e0bc5938cce917e3a249c441fa7d167\",\"name\":\"Jain Arpit Ashok\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18ad1b72ac03dc5a1e26466b33f7db5191c4f7f08bd5800f393bbc45d7e85e0b?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\/18ad1b72ac03dc5a1e26466b33f7db5191c4f7f08bd5800f393bbc45d7e85e0b?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Jain Arpit Ashok\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/jainarpitashok-presta366\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Override the ObjectModel in PrestaShop - Webkul Blog","description":"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.","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\/how-to-override-the-objectmodel-in-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"How to Override the ObjectModel in PrestaShop - Webkul Blog","og_description":"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.","og_url":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2026-05-06T14:04:20+00:00","article_modified_time":"2026-05-06T14:10:10+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp","type":"","width":"","height":""}],"author":"Jain Arpit Ashok","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Jain Arpit Ashok","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/"},"author":{"name":"Jain Arpit Ashok","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e0bc5938cce917e3a249c441fa7d167"},"headline":"How to Override the ObjectModel in PrestaShop","datePublished":"2026-05-06T14:04:20+00:00","dateModified":"2026-05-06T14:10:10+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/"},"wordCount":403,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp","keywords":["database","Override","prestashop"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/","url":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/","name":"How to Override the ObjectModel in PrestaShop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo-1200x602.webp","datePublished":"2026-05-06T14:04:20+00:00","dateModified":"2026-05-06T14:10:10+00:00","description":"Discover how to override ObjectModel in PrestaShop. Add custom fields, extend core models, and follow best practices with this easy tutorial.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2026\/05\/dbtwo.webp","width":1291,"height":648},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-override-the-objectmodel-in-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Override the ObjectModel in PrestaShop"}]},{"@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\/8e0bc5938cce917e3a249c441fa7d167","name":"Jain Arpit Ashok","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18ad1b72ac03dc5a1e26466b33f7db5191c4f7f08bd5800f393bbc45d7e85e0b?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\/18ad1b72ac03dc5a1e26466b33f7db5191c4f7f08bd5800f393bbc45d7e85e0b?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Jain Arpit Ashok"},"url":"https:\/\/webkul.com\/blog\/author\/jainarpitashok-presta366\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/537566","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\/743"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=537566"}],"version-history":[{"count":7,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/537566\/revisions"}],"predecessor-version":[{"id":537793,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/537566\/revisions\/537793"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=537566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=537566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=537566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}