<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Properly extending Prestashop Objects</title>
	<atom:link href="http://nemops.com/extending-prestashop-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://nemops.com/extending-prestashop-objects/</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Fri, 10 Mar 2023 23:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>By: NemoPS</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46639</link>
		<dc:creator><![CDATA[NemoPS]]></dc:creator>
		<pubDate>Fri, 13 Oct 2017 03:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46639</guid>
		<description><![CDATA[Hmm I am not sure you can override a module&#039;s controller actually, just the core file. Never tried honestly, nor I read of the syntax it would require]]></description>
		<content:encoded><![CDATA[<p>Hmm I am not sure you can override a module&#8217;s controller actually, just the core file. Never tried honestly, nor I read of the syntax it would require</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Fakhrin Umar</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46637</link>
		<dc:creator><![CDATA[Muhammad Fakhrin Umar]]></dc:creator>
		<pubDate>Wed, 11 Oct 2017 09:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46637</guid>
		<description><![CDATA[Hi Nemo, this is a good introduction to overrides. I have Prestashop-based site which already have an override under override folder called AdminOrdersController.php. Currently, I have created a module with a controller that is displaying from a .tpl file. I would like to extend on the override, to insert carrier filter. I understand that this can be insert in the override directly (I have done it) but I am required to create a module for it as I do not have access to the core files on production, just work requirement. Is this possible?]]></description>
		<content:encoded><![CDATA[<p>Hi Nemo, this is a good introduction to overrides. I have Prestashop-based site which already have an override under override folder called AdminOrdersController.php. Currently, I have created a module with a controller that is displaying from a .tpl file. I would like to extend on the override, to insert carrier filter. I understand that this can be insert in the override directly (I have done it) but I am required to create a module for it as I do not have access to the core files on production, just work requirement. Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Coury</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46626</link>
		<dc:creator><![CDATA[Marco Coury]]></dc:creator>
		<pubDate>Mon, 02 Oct 2017 14:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46626</guid>
		<description><![CDATA[Good Morning
Following your instructions found informations.tpl in folder /themes/default/template/controllers/products but could not locate 


    {$bullet_common_field} {l s=&#039;UPC:&#039;}
    
        upc&#124;escape:html:&#039;UTF-8&#039;}&quot; style=&quot;width: 130px; margin-right: 5px;&quot; /&gt; {l s=&#039;(US, Canada)&#039;}
    

what did I do wrong?
 https://uploads.disquscdn.com/images/cd02ea6973d882d326ca764be9bf63c66664af0373dab260bca59b94ae7b1b69.png]]></description>
		<content:encoded><![CDATA[<p>Good Morning<br />
Following your instructions found informations.tpl in folder /themes/default/template/controllers/products but could not locate </p>
<p>    {$bullet_common_field} {l s=&#8217;UPC:&#8217;}</p>
<p>        upc|escape:html:&#8217;UTF-8&#8242;}&#8221; style=&#8221;width: 130px; margin-right: 5px;&#8221; /&gt; {l s='(US, Canada)&#8217;}</p>
<p>what did I do wrong?<br />
 <a href="https://uploads.disquscdn.com/images/cd02ea6973d882d326ca764be9bf63c66664af0373dab260bca59b94ae7b1b69.png" rel="nofollow">https://uploads.disquscdn.com/images/cd02ea6973d882d326ca764be9bf63c66664af0373dab260bca59b94ae7b1b69.png</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Wallis</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46608</link>
		<dc:creator><![CDATA[Ben Wallis]]></dc:creator>
		<pubDate>Fri, 25 Aug 2017 10:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46608</guid>
		<description><![CDATA[Hi,

I&#039;ve added an extra id field to the Product class, but it&#039;s an array (like a lang field). I can&#039;t work out how to make it an integer instead of an array - any ideas?

ALTER TABLE `ps_product` ADD `id_delivery_tier` INT(10) UNSIGNED DEFAULT NULL

class Product extends ProductCore
{
    public $id_delivery_tier; 
    public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null)
    {
        self::$definition[&#039;fields&#039;][&#039;id_delivery_tier&#039;] = array(&#039;type&#039; =&gt; self::TYPE_INT, &#039;validate&#039; =&gt; &#039;isUnsignedId&#039;);
        parent::__construct($id_product, $full, $id_lang, $id_shop, $context);
    }

Product Object
(
    [id_delivery_tier] =&gt; Array
        (
            [1] =&gt; 
        )]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve added an extra id field to the Product class, but it&#8217;s an array (like a lang field). I can&#8217;t work out how to make it an integer instead of an array &#8211; any ideas?</p>
<p>ALTER TABLE `ps_product` ADD `id_delivery_tier` INT(10) UNSIGNED DEFAULT NULL</p>
<p>class Product extends ProductCore<br />
{<br />
    public $id_delivery_tier;<br />
    public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null)<br />
    {<br />
        self::$definition[&#8216;fields&#8217;][&#8216;id_delivery_tier&#8217;] = array(&#8216;type&#8217; =&gt; self::TYPE_INT, &#8216;validate&#8217; =&gt; &#8216;isUnsignedId&#8217;);<br />
        parent::__construct($id_product, $full, $id_lang, $id_shop, $context);<br />
    }</p>
<p>Product Object<br />
(<br />
    [id_delivery_tier] =&gt; Array<br />
        (<br />
            [1] =&gt;<br />
        )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Becker</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46604</link>
		<dc:creator><![CDATA[Thomas Becker]]></dc:creator>
		<pubDate>Wed, 26 Jul 2017 19:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46604</guid>
		<description><![CDATA[Hey!
Thank you soooo much for posting this article. I feel I&#039;ve turned the web over to find the only (almost complete ;-) ) 

explanations. So many posts out there suggest just editing the class files...

You might consider completing the instructions with a means of making the new field behave properly in a multi-store environment (adding &#039;shop&#039; =&gt; true in the constructor).


Anyway, I was mainly writing to tell you the donate button was broken as I&#039;d like to reward you for all the time you saved me :-)




Cheers,
Tom]]></description>
		<content:encoded><![CDATA[<p>Hey!<br />
Thank you soooo much for posting this article. I feel I&#8217;ve turned the web over to find the only (almost complete <img src="http://nemops.com/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /> ) </p>
<p>explanations. So many posts out there suggest just editing the class files&#8230;</p>
<p>You might consider completing the instructions with a means of making the new field behave properly in a multi-store environment (adding &#8216;shop&#8217; =&gt; true in the constructor).</p>
<p>Anyway, I was mainly writing to tell you the donate button was broken as I&#8217;d like to reward you for all the time you saved me <img src="http://nemops.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /></p>
<p>Cheers,<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert9620</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46603</link>
		<dc:creator><![CDATA[robert9620]]></dc:creator>
		<pubDate>Wed, 19 Jul 2017 07:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46603</guid>
		<description><![CDATA[Hi, Nemo. This guide looks pretty but does it work with newest presta (I have 1.7.1.2) ? Maybe somewhere there is newer guide?]]></description>
		<content:encoded><![CDATA[<p>Hi, Nemo. This guide looks pretty but does it work with newest presta (I have 1.7.1.2) ? Maybe somewhere there is newer guide?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert9620</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-2/#comment-46602</link>
		<dc:creator><![CDATA[robert9620]]></dc:creator>
		<pubDate>Wed, 19 Jul 2017 07:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46602</guid>
		<description><![CDATA[Hi Nemo, this guide looks pretty but does it work with newest presta (I have presta 1.7.1.2)? I really need this functionality. Maybe somewhere is newer guide?]]></description>
		<content:encoded><![CDATA[<p>Hi Nemo, this guide looks pretty but does it work with newest presta (I have presta 1.7.1.2)? I really need this functionality. Maybe somewhere is newer guide?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elise Fety</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-1/#comment-46578</link>
		<dc:creator><![CDATA[Elise Fety]]></dc:creator>
		<pubDate>Mon, 29 May 2017 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46578</guid>
		<description><![CDATA[Hi Nemo, thank you for your quick reply, but it is kind of important for my boss, so could you at least give me something to work with, or point me towards a module that does this kind of things?]]></description>
		<content:encoded><![CDATA[<p>Hi Nemo, thank you for your quick reply, but it is kind of important for my boss, so could you at least give me something to work with, or point me towards a module that does this kind of things?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NemoPS</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-1/#comment-46577</link>
		<dc:creator><![CDATA[NemoPS]]></dc:creator>
		<pubDate>Fri, 26 May 2017 19:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46577</guid>
		<description><![CDATA[Hi Elise, thanks for following!
Well actually that&#039;s something extremely complex, it would require a tutorial, or perhaps more, on its own, so I can&#039;t really explain it step by step in a comment. I might talk about it in a future tut though, thanks for the suggestion!]]></description>
		<content:encoded><![CDATA[<p>Hi Elise, thanks for following!<br />
Well actually that&#8217;s something extremely complex, it would require a tutorial, or perhaps more, on its own, so I can&#8217;t really explain it step by step in a comment. I might talk about it in a future tut though, thanks for the suggestion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elise Fety</title>
		<link>http://nemops.com/extending-prestashop-objects/comment-page-1/#comment-46576</link>
		<dc:creator><![CDATA[Elise Fety]]></dc:creator>
		<pubDate>Fri, 26 May 2017 15:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1334#comment-46576</guid>
		<description><![CDATA[Hi Nemo, I followed your guide step by step, and it works wonders! But I&#039;m stuck : I need to add custom fields to my combinations, but I don&#039;t know how to do it. It doesn&#039;t seem to work like the categories or products. I&#039;ve tried a lot of things, but nothing worked, the info is never send to the database... So, if you could explain to me how to add a custom field to a combination, it would really be great. Please?]]></description>
		<content:encoded><![CDATA[<p>Hi Nemo, I followed your guide step by step, and it works wonders! But I&#8217;m stuck : I need to add custom fields to my combinations, but I don&#8217;t know how to do it. It doesn&#8217;t seem to work like the categories or products. I&#8217;ve tried a lot of things, but nothing worked, the info is never send to the database&#8230; So, if you could explain to me how to add a custom field to a combination, it would really be great. Please?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
