{"id":5014,"date":"2013-06-10T14:45:06","date_gmt":"2013-06-10T11:45:06","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=5014"},"modified":"2025-07-02T21:31:30","modified_gmt":"2025-07-02T19:31:30","slug":"new-products-in-prestashop","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html","title":{"rendered":"New Products In Prestashop"},"content":{"rendered":"\n<p>New Products page in Prestashop helps introduce and promote fresh offerings. How does it work from inside? Find out more about the controller, the main Product:: getNewPr&#1086;du&#1089;ts method that returns the list of goods, considered by the system as new, new-products.tpl template and many more.<!--more--><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8798 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/06\/12-850x575.jpg\" alt=\"12 850x575\" width=\"850\" height=\"575\" title=\"New Products In Prestashop\"><\/p>\n<p>There is a special controller which is responsible for generating a new products page: controllers\/front\/NewProductsController.php.&nbsp; This controller implements only 2 methods: initContent and setMedia and it is inherited from the FrontController class. Let&rsquo;s take a look at each of them:<\/p>\n<pre class=\"lang:php decode:true\">    public function initContent()\r\n    {\r\n        parent::initContent();\r\n\r\n        $this-&gt;productSort(); \/\/set $this-&gt;orderBy and $this-&gt;orderWay variables\r\n        $nbProducts = (int)Product::getNewProducts(\r\n\t\t$this-&gt;context-&gt;language-&gt;id,\r\n\t\t (isset($this-&gt;p) ? (int)($this-&gt;p) - 1 : null),\r\n\t\t (isset($this-&gt;n) ? (int)($this-&gt;n) : null),\r\n\t\ttrue\r\n        ); \/\/Get new products\r\n\r\n        $this-&gt;context-&gt;smarty-&gt;assign(array(\r\n            'products' =&gt; Product::getNewProducts($this-&gt;context-&gt;language-&gt;id, (int)($this-&gt;p) - 1, (int)($this-&gt;n), false, $this-&gt;orderBy, $this-&gt;orderWay), \/\/collection of products\r\n            'add_prod_display' =&gt; Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), \/\/There is an option in the admin panel which allows you to hide the 'Add to cart' button for those items, which have been modified. Looks like it has been done to make customers view all variants of modifications, since the list displays the 'original' variant only. So the value of this option is not transmitted to the template. That is why it does not output the button for modified items (by default).\r\n            'nbProducts' =&gt; $nbProducts, \/\/number of products\r\n            'homeSize' =&gt; Image::getSize(ImageType::getFormatedName('home')),  \/\/sets the image size\r\n            'comparator_max_item' =&gt; Configuration::get('PS_COMPARATOR_MAX_ITEM') \/\/flag responsible for the maximum amount of items to compare.\r\n        ));\r\n\r\n        $this-&gt;setTemplate(_PS_THEME_DIR_.'new-products'); \/\/template responsible for displaying the goods.\r\n    }\r\n\r\npublic function setMedia()\r\n    {\r\n        parent::setMedia();\r\n        $this-&gt;addCSS(_THEME_CSS_DIR_.'product_list.css'); \/\/adding styles \r\n\r\n        if (Configuration::get('PS_COMPARATOR_MAX_ITEM'))\r\n            $this-&gt;addJS(_THEME_JS_DIR_.'products-comparison.js'); \/\/if the configuration flag PS_COMPARATOR_MAX_ITEM is set, then connects the js file 'products-comparison.js\r\n    }<\/pre>\n<p>The method Product:: getNewPr&#1086;du&#1089;ts takes a special place in this controller. The method returns the list of goods, considered by the system as new.&nbsp; Let&rsquo;s take a closer look at the method, which returns the collection of new products.<\/p>\n<pre class=\"lang:php decode:true\">\/**\r\n* Get new products\r\n*\r\n* @param integer $id_lang Language id\r\n* @param integer $pageNumber Start from (optional)\r\n* @param integer $nbProducts Number of products to return (optional)\r\n* @return array New products\r\n*\/\r\npublic static function getNewProducts($id_lang, $page_number = 0, $nb_products = 10,\r\n    $count = false, $order_by = null, $order_way = null, Context $context = null)\r\n{\r\n    if (!$context)\r\n        $Context = Context: :getC&#1086;ntext( ); \/\/getting the object Context. If you are not yet familiar with this Singleton, you should consider this class more carefully. It is used everywhere and is quite useful for customizations.\r\n\r\n    $front = true; \/\/the flag which is responsible for the type of the controller\r\n    if (!in_array($context-&gt;controller-&gt;controller_type, array('front', 'modulefront')))\r\n        $front = false; \r\n\r\n    if ($page_number &lt; 0) $page_number = 0; \/\/page number\r\n    if ($nb_products &lt; 1) $nb_products = 10; \/\/number of products on the page\r\n    if (empty($order_by) || $order_by == 'position') $order_by = 'date_add'; \/\/sort order\r\n    If (empty( $&#1086;rder_w&#1072;y)) $&#1086;rder_w&#1072;y = 'DESC'; \/\/sorting direction\r\n    if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add'  || $order_by == 'date_upd')\r\n        $order_by_prefix = 'p'; \/\/sorting prefix p, for the fields from the table &lsquo;product&rsquo;\r\n    else if ($order_by == 'name')\r\n        $order_by_prefix = 'pl'; \/\/sorting prefix pl, for the fields from the table &lsquo;product_lang&rsquo;\r\n    if (!Validate::isOrderBy($order_by) || !Validate::isOrderWay($order_way))\r\n        die(Tools::displayError());\r\n\r\n    $Groups = Fr&#1086;ntC&#1086;ntr&#1086;ller: :getCurrentCust&#1086;merGr&#1086;ups( ); \/\/user groups. They are required when you need to limit the number of goods to be displayed for certain user groups.\r\n    $sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1');\r\n    if (strpos($order_by, '.') &gt; 0)\r\n    {\r\n        $order_by = explode('.', $order_by);\r\n        $order_by_prefix = $order_by[0];\r\n        $order_by = $order_by[1];\r\n    }\r\n   \/\/if this flag is available, number of products will be returned, not the collection \r\n    if ($count)\r\n    {\r\n        $sql = 'SELECT COUNT(p.`id_product`) AS nb\r\n                FROM `'._DB_PREFIX_.'product` p\r\n                '.Shop::addSqlAssociation('product', 'p').'\r\n                WHERE product_shop.`active` = 1\r\n                AND DATEDIFF(\r\n                    product_shop.`date_add`,\r\n                    DATE_SUB(\r\n                        NOW(),\r\n                        INTERVAL '.(Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20).' DAY\r\n                    )\r\n                ) &gt; 0\r\n                '.($front ? ' AND product_shop.`visibility` IN (\"both\", \"catalog\")' : '').'\r\n                AND p.`id_product` IN (\r\n                    SELECT cp.`id_product`\r\n                    FROM `'._DB_PREFIX_.'category_group` cg\r\n                    LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_category` = cg.`id_category`)\r\n                    WHERE cg.`id_group` '.$sql_groups.'\r\n                )';\r\n        return (int)Db::getInstance(_PS_USE_SQL_SLAVE_)-&gt;getValue($sql);\r\n    }\r\n\r\n    $sql = new DbQuery(); \/\/the query to database is made via the DbQuery class\r\n    $sql-&gt;select(\r\n        'p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`,\r\n        pl.`meta_keywords`, pl.`meta_title`, pl.`name`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` AS manufacturer_name,\r\n        DATEDIFF(\r\n            product_shop.`date_add`,\r\n            DATE_SUB(\r\n                NOW(),\r\n                INTERVAL '.(Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20).' DAY\r\n            )\r\n        ) &gt; 0 AS new'\r\n    );\r\n\r\n    $sql-&gt;from('product', 'p');\r\n    $sql-&gt;join(Shop::addSqlAssociation('product', 'p'));\r\n    $sql-&gt;leftJoin('product_lang', 'pl', '\r\n        p.`id_product` = pl.`id_product`\r\n        AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl')\r\n    );\r\n    $sql-&gt;leftJoin('image', 'i', 'i.`id_product` = p.`id_product`');\r\n    $sql-&gt;join(Shop::addSqlAssociation('image', 'i', false, 'image_shop.cover=1'));\r\n    $sql-&gt;leftJoin('image_lang', 'il', 'i.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)$id_lang);\r\n    $sql-&gt;leftJoin('manufacturer', 'm', 'm.`id_manufacturer` = p.`id_manufacturer`');\r\n\r\n    $sql-&gt;where('product_shop.`active` = 1');\r\n\r\n    if ($front)\r\n        $sql-&gt;where('product_shop.`visibility` IN (\"both\", \"catalog\")');\r\n    $sql-&gt;where('\r\n        DATEDIFF(\r\n            product_shop.`date_add`,\r\n            DATE_SUB(\r\n                NOW(),\r\n                INTERVAL '.(Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20).' DAY\r\n            )\r\n        ) &gt; 0'\r\n    );\r\n\r\n    $sql-&gt;where('p.`id_product` IN (\r\n        SELECT cp.`id_product`\r\n        FROM `'._DB_PREFIX_.'category_group` cg\r\n        LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_category` = cg.`id_category`)\r\n        WHERE cg.`id_group` '.$sql_groups.')'\r\n    );\r\n    $sql-&gt;groupBy('product_shop.id_product');\r\n\r\n    $sql-&gt;orderBy((isset($order_by_prefix) ? pSQL($order_by_prefix).'.' : '').'`'.pSQL($order_by).'` '.pSQL($order_way));\r\n    $sql-&gt;limit($nb_products, $page_number * $nb_products);\r\n\r\n    \/\/Adding table data with attributes\r\n    if (Combination::isFeatureActive())\r\n    {\r\n        $sql-&gt;select('MAX(product_attribute_shop.id_product_attribute) id_product_attribute');\r\n        $sql-&gt;leftOuterJoin('product_attribute', 'pa', 'p.`id_product` = pa.`id_product`');\r\n        $sql-&gt;join(Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.default_on = 1'));\r\n    }\r\n    $sql-&gt;join(Product::sqlStock('p', Combination::isFeatureActive() ? 'product_attribute_shop' : 0));\r\n\r\n    $result = Db::getInstance(_PS_USE_SQL_SLAVE_)-&gt;executeS($sql);\r\n\r\n    if ($order_by == 'price')\r\n        Tools::orderbyPrice($result, $order_way);\r\n    if (!$result)\r\n        return false;\r\n\r\n    $products_ids = array();\r\n    foreach ($result as $row)\r\n        $products_ids[] = $row['id_product'];\r\n    \/\/ You can thus avoid one query per product, because there will be only one query for all the products of the cart\r\n    Product::cacheFrontFeatures($products_ids, $id_lang);\r\n\r\n    return Product::getProductsProperties((int)$id_lang, $result); \/\/returns modified array $result. For example, this method adds data id_im&#1072;ge<\/pre>\n<p>To finish with this controller we need to see what is inside the template new-products.tpl:<\/p>\n<pre class=\"lang:php decode:true\">{capture name=path}{l s='New products'}{\/capture}\r\n{include file=\"$tpl_dir.\/breadcrumb.tpl\"} {*adds the bread-crump file*}\r\n\r\n&lt;h1&gt;{l s='New products'}&lt;\/h1&gt;\r\n\r\n{if $products}\r\n\t&lt;div class=\"content_sortPagiBar\"&gt;\r\n\t\t{include file=\"$tpl_dir.\/pagination.tpl\"} {*The file responsible for navigation between pages*}\r\n\r\n\t\t&lt;div class=\"sortPagiBar clearfix\"&gt;\r\n\t\t\t{include file=\".\/product-sort.tpl\"}  {*sorting*}\r\n\t\t\t{include file=\".\/product-compare.tpl\"} {*product comparison*}\r\n\t\t\t{include file=\".\/nbr-product-page.tpl\"} {*number of items on the page*}\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/div&gt;\r\n\r\n\t{include file=\".\/product-list.tpl\" products=$products} {*the same file as on the catalog page*}\r\n\r\n\t&lt;div class=\"content_sortPagiBar\"&gt;\r\n\t\t&lt;div class=\"sortPagiBar clearfix\"&gt;\r\n\t\t\t{include file=\".\/product-sort.tpl\"}  {*sorting*}\r\n\t\t\t{include file=\".\/product-compare.tpl\"} {*product comparison*}\r\n\t\t\t{include file=\".\/nbr-product-page.tpl\"} {*number of items on the page*}\r\n\r\n\t\t&lt;\/div&gt;\r\n\t\t{include file=\".\/pagination.tpl\"}\"} {*The file responsible for navigation between pages*}\r\n\r\n\t&lt;\/div&gt;\r\n\t{else}\r\n\t&lt;p class=\"warning\"&gt;{l s= No new products.'}&lt;\/p&gt;\r\n{\/if}<\/pre>\n<p>The content of the template shows that this is just a compilation of other templates, which we saw on the catalog page. Such an approach makes the markup of the page much easier: you just need to properly markup the category template.&nbsp; This template, as well as the controller, is very similar to the Bestseller template and controller.<\/p>\n<p>The constant PS_NB_DAYS_NEW_PRODUCT is responsible for the number of days which a product is considered as new. It can be configured in the back office under Preferences &ndash; &gt; Products.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8799 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/06\/22-850x509.jpg\" alt=\"22 850x509\" width=\"850\" height=\"509\" title=\"New Products In Prestashop\"><\/p>\n\n","protected":false},"excerpt":{"rendered":"New Products page in Prestashop helps introduce and promote fresh offerings. How does it work &#8230;","protected":false},"author":12,"featured_media":8797,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,300],"tags":[445],"class_list":["post-5014","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-guide","tag-prestashop","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"New Products page in Prestashop helps introduce fresh deals. Find out more about the controller, the main Product:: getNewPr\u043edu\u0441ts method\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#article\",\"name\":\"New Products In Prestashop | BelVG Blog\",\"headline\":\"New Products In Prestashop\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/06\\\/presta-12.jpg\",\"width\":682,\"height\":170},\"datePublished\":\"2013-06-10T14:45:06+02:00\",\"dateModified\":\"2025-07-02T21:31:30+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":11,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop Guide, Prestashop, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"position\":3,\"name\":\"Prestashop Guide\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#listItem\",\"name\":\"New Products In Prestashop\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#listItem\",\"position\":4,\"name\":\"New Products In Prestashop\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html\",\"name\":\"New Products In Prestashop | BelVG Blog\",\"description\":\"New Products page in Prestashop helps introduce fresh deals. Find out more about the controller, the main Product:: getNewPr\\u043edu\\u0441ts method\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/06\\\/presta-12.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html\\\/#mainImage\",\"width\":682,\"height\":170},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/new-products-in-prestashop.html#mainImage\"},\"datePublished\":\"2013-06-10T14:45:06+02:00\",\"dateModified\":\"2025-07-02T21:31:30+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"New Products In Prestashop | BelVG Blog","description":"New Products page in Prestashop helps introduce fresh deals. Find out more about the controller, the main Product:: getNewPr\u043edu\u0441ts method","canonical_url":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#article","name":"New Products In Prestashop | BelVG Blog","headline":"New Products In Prestashop","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/06\/presta-12.jpg","width":682,"height":170},"datePublished":"2013-06-10T14:45:06+02:00","dateModified":"2025-07-02T21:31:30+02:00","inLanguage":"en-US","commentCount":11,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#webpage"},"articleSection":"Prestashop, Prestashop Guide, Prestashop, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","position":3,"name":"Prestashop Guide","item":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#listItem","name":"New Products In Prestashop"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#listItem","position":4,"name":"New Products In Prestashop","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#webpage","url":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html","name":"New Products In Prestashop | BelVG Blog","description":"New Products page in Prestashop helps introduce fresh deals. Find out more about the controller, the main Product:: getNewPr\u043edu\u0441ts method","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/06\/presta-12.jpg","@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html\/#mainImage","width":682,"height":170},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html#mainImage"},"datePublished":"2013-06-10T14:45:06+02:00","dateModified":"2025-07-02T21:31:30+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"5014","title":"New Products In Prestashop | #site_title","description":"New Products page in Prestashop helps introduce fresh deals. Find out more about the controller, the main Product:: getNewPr\u043edu\u0441ts method","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:11","updated":"2026-11-03 18:38:11"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide\" title=\"Prestashop Guide\">Prestashop Guide<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNew Products In Prestashop\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Prestashop Guide","link":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide"},{"label":"New Products In Prestashop","link":"https:\/\/belvg.com\/blog\/new-products-in-prestashop.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/5014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=5014"}],"version-history":[{"count":-1,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/5014\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8797"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=5014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=5014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=5014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}