{"id":372,"date":"2017-01-13T09:39:11","date_gmt":"2017-01-13T09:39:11","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=372"},"modified":"2017-01-13T09:39:11","modified_gmt":"2017-01-13T09:39:11","slug":"prestashop-add-editable-product-date-added-field-in-admin-prestashop-1-6","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/prestashop-add-editable-product-date-added-field-in-admin-prestashop-1-6\/","title":{"rendered":"Prestashop: Add editable product date added field in admin (prestashop 1.6)"},"content":{"rendered":"<p>Source: https:\/\/www.prestashop.com\/forums\/topic\/126518-change-date-for-products-in-bo-date-add\/?p=1947106<\/p>\n<p>Add it to line 134 of: admin folder\\themes\\default\\template\\controllers\\products\\informations.tlp<\/p>\n<p>The if is added in case this is a new product and there is no existing date added data<\/p>\n<p>{if $product-&gt;date_add}<br \/>\n&lt;div class=&#8221;form-group&#8221;&gt;<br \/>\n&lt;label class=&#8221;control-label col-lg-3&#8243;&gt;&lt;\/td&gt;<br \/>\n&lt;span class=&#8221;label-tooltip&#8221; data-toggle=&#8221;tooltip&#8221;<br \/>\ntitle=&#8221;{l s=&#8217;Change date for &#8220;product new from&#8221;.&#8217;}&#8221;&gt;<br \/>\n{$bullet_common_field} {l s=&#8217;New from&#8217;}<br \/>\n&lt;\/span&gt;<br \/>\n&lt;\/label&gt;<br \/>\n&lt;div class=&#8221;col-lg-3&#8243;&gt;<br \/>\n&lt;input type=&#8221;text&#8221; id=&#8221;date_add&#8221; name=&#8221;date_add&#8221; value=&#8221;{$product-&gt;date_add|escape:html:&#8217;UTF-8&#8242;}&#8221; \/&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n{\/if}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/www.prestashop.com\/forums\/topic\/126518-change-date-for-products-in-bo-date-add\/?p=1947106 Add it to line 134 of: admin folder\\themes\\default\\template\\controllers\\products\\informations.tlp The if is added in case this is a new product and there is no existing date added data {if $product-&gt;date_add} &lt;div class=&#8221;form-group&#8221;&gt; &lt;label class=&#8221;control-label col-lg-3&#8243;&gt;&lt;\/td&gt; &lt;span class=&#8221;label-tooltip&#8221; data-toggle=&#8221;tooltip&#8221; title=&#8221;{l s=&#8217;Change date for &#8220;product new from&#8221;.&#8217;}&#8221;&gt; {$bullet_common_field} {l s=&#8217;New from&#8217;} &lt;\/span&gt; &lt;\/label&gt; &lt;div class=&#8221;col-lg-3&#8243;&gt; &lt;input [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[103,105],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-ecommerce","tag-prestashop","tag-prestashop-1-6"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}