Popular Post rocky Posted May 27, 2011 Popular Post Share Posted May 27, 2011 I've now finished my PrestaShop v1.4 Development Guide here, which provides information on the structure of PrestaShop, how to override classes, controllers, modules and tabs and how to write a basic module. Any feedback is appreciated. 17 Link to comment Share on other sites More sharing options...
Asenar Posted May 27, 2011 Share Posted May 27, 2011 Wow !Thanks you very much, I'm sure I will learn some tips !Edit : I will read it later and give you a feedback Link to comment Share on other sites More sharing options...
uddhava Posted May 27, 2011 Share Posted May 27, 2011 Amazing Rocky. This is just what everybody needs and should have been made by the Prestateam. Any change on publishing this in a pdf so i can print it easily ? 1 Link to comment Share on other sites More sharing options...
Bruno Leveque Posted May 27, 2011 Share Posted May 27, 2011 Really impressive, you guyz on the forum are doing a huge work for the whole community!Congratulations 1 Link to comment Share on other sites More sharing options...
Rhobur Posted May 28, 2011 Share Posted May 28, 2011 Just great! Thank you Rocky for the continuous work you're doing for the community! Link to comment Share on other sites More sharing options...
rocky Posted May 28, 2011 Author Share Posted May 28, 2011 Thanks everyone. I'll try to create a PDF version of the manual when I have time. The "Module Hooks" section is incomplete at the moment. I'll try to update it too.EDIT: I've now finished the "Module Hooks" section and added a "Cookie Structure" section too. 2 Link to comment Share on other sites More sharing options...
Selwyn Orren Posted May 28, 2011 Share Posted May 28, 2011 Really nice work there. Well done. I am excited about the PDF version Link to comment Share on other sites More sharing options...
chrisxm Posted May 29, 2011 Share Posted May 29, 2011 Very impressive! I have found plenty of usefull informations ! Link to comment Share on other sites More sharing options...
Xavier Borderie Posted May 30, 2011 Share Posted May 30, 2011 Incredible work, Rocky! Thanks for such a gift to the community! 1 Link to comment Share on other sites More sharing options...
midiman Posted May 30, 2011 Share Posted May 30, 2011 Thanks for this Rocky, this is vital for new prestashop developers like me Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 Sorry but for overriding module: Overriding ModulesPrestaShop allows you to override a module's template files inside a theme, so that different themes can display modules differently. You cannot override a module's PHP files though, so you must use the same module code for all themes. It is just the view that can be changed. To override a module's template file, mirror the file's path inside the theme. For example, to make a Web 2.0-style footer, copy modules/blockcms/blockcms.tpl to themes//modules/blockcms/blockcms.tpl, then edit the footer code at the bottom. Your theme will use the new code, while the default PrestaShop theme will continue to use the original PrestaShop code. I don't understand this line: then edit the footer code at the bottom. What i'm supposed to edit ?And if a module contains more than one .tpl, what should I copy ? edit ?Regards,Nadine Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2011 Author Share Posted May 31, 2011 It's the code after the {else} you should edit: > {else} <!-- MODULE Block footer --> </pre> <ul> {if !$PS_CATALOG_MODE}getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}{/if} getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'} {if !$PS_CATALOG_MODE}getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}{/if} {if $display_stores_footer}getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}{/if} getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'} {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} {$cmslink.meta_title|escape:'htmlall':'UTF-8'} {/if} {/foreach} {l s='Powered by' mod='blockcms'} PrestaShop™ </ul> <br> <!-- /MODULE Block footer --><br>{/if From here, you can add or remove links, or add multiple floated s to create a web 2.0-style footer. 1 Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 And if the module has many .tpl ? What we must put on the folder theme/mytheme/modules/ ? all .tpl with all edition of them ?Second point: if I have 30 modules in my main theme and only 25 in my theme named "mytheme", only the 25 will be running if I activate "mytheme" ? Because all (30) are activated in the BO...Third point: if in my module folder named "toto" and I have titi.tpl, in the toto folder it is wrong ?Example with bankwire: the folder is "bankwire" and inside I have three .TPL: payment.tpl, paymentexecution.tpl and paymentreturn.tplThx for answer of this three point !And for all module, what is the line to be modified ? Link to .php ? link to .css ? both ? Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2011 Author Share Posted May 31, 2011 There is no need to copy over all module TPL files. You should just copy over just the TPL files you want to override. If you have 30 modules, but you've only overridden 25 of them, the remaining 5 will still work fine. They will just use the default TPL files.If you want to override modules/bankwire/payment.tpl, modules/bankwire/payment_execution.tpl and modules/bankwire/payment_return.tpl, then you must copy these files to themes//modules/bankwire/payment.tpl, themes//modules/bankwire/payment_execution.tpl and themes//modules/bankwire/payment_return.tpl. Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 And if I want only hide them (the 5 !), how must I proceed ? With CSS display none ? If yes, how ?For example I have the theme2 and mydefaulttheme, I would like activate all module (30) in my default theme but only 25 in my theme2 (hide the last 5), how to do that ? Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2011 Author Share Posted May 31, 2011 I don't understand why you'd want to hide all of a module's TPL files. Why not just disable the module on the "Modules" tab? Yes, you could override all the TPL files with blank files to remove all the HTML, or if you want the HTML code there, but just have it hidden, then you will have to edit the CSS code and use display: none to hide it. Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 I don't understand why you'd want to hide all of a module's TPL files. Why not just disable the module on the "Modules" tab? Yes, you could override all the TPL files with blank files to remove all the HTML, or if you want the HTML code there, but just have it hidden, then you will have to edit the CSS code and use display: none to hide it. Because I want 30 modules on my first theme and 25 only on my second theme, if I disable, i will have 25 too on my first theme...you understand ?For the css solution, where to insert the display none ? Witch file must I edit ? Where ? Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2011 Author Share Posted May 31, 2011 It's not possible to disable modules on a per-theme basis, at least not in PrestaShop v1.3.1. If you were using PrestaShop v1.4, you could use the "Import/export a theme" module, which lets you export your current theme and modules to a ZIP file that includes a config.xml file that specifies which modules should be enabled and disabled. Once you'd exported your two themes with the modules in the right state, you could simply import one of the themes and your modules will automatically be enabled or disabled as necessary. Unfortunately, PrestaShop v1.3.1 doesn't have this feature, so you are stuck manually enabling and disabling modules. I suppose overriding with blank TPL files is your only option. Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 Ok thanks !And if the theme has the option "override" disabled !Is it possible or all is configured in the core files ? Link to comment Share on other sites More sharing options...
rocky Posted May 31, 2011 Author Share Posted May 31, 2011 I don't understand. It's not possible to disable the "override" in PrestaShop. It's hardcoded in the core files on lines 616-625 of classes/Module.php (in PrestaShop v1.3.2): if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.basename($file, '.php').'/'.$template)) { $smarty->assign('module_template_dir', _THEME_DIR_.'modules/'.basename($file, '.php').'/'); $result = $smarty->fetch(_PS_THEME_DIR_.'modules/'.basename($file, '.php').'/'.$template); } elseif (Tools::file_exists_cache(dirname($file).'/'.$template)) { $smarty->assign('module_template_dir', __PS_BASE_URI__.'modules/'.basename($file, '.php').'/'); $result = $smarty->fetch(dirname($file).'/'.$template); } The first if statement checks whether the module's TPL file has been overridden in the theme. If it has, then it reads it. If it hasn't, then it goes to the elseif statement and reads the original TPL file. Link to comment Share on other sites More sharing options...
botmez Posted May 31, 2011 Share Posted May 31, 2011 Thanks, you are the best ! Link to comment Share on other sites More sharing options...
Asenar Posted May 31, 2011 Share Posted May 31, 2011 In future version you will be allowed to have several themes at the same times, with appropriates modules activated or not, but it's not available for now. Link to comment Share on other sites More sharing options...
bonbontamura Posted June 4, 2011 Share Posted June 4, 2011 thanks rocky! it helps me more to understand presta system Link to comment Share on other sites More sharing options...
maximus___ Posted June 5, 2011 Share Posted June 5, 2011 rocky, you are a great man… this is wonderful guideI want to ask a question;is this development guide valid for ps 1.3.x? I mean, what is the differences between ver1.3 and ver1.4 for development? if you write shortly, I will be wery happy…thank you Link to comment Share on other sites More sharing options...
rocky Posted June 6, 2011 Author Share Posted June 6, 2011 This guide is for PrestaShop v1.4.2, not for PrestaShop v1.3.7 and earlier. PrestaShop v1.3.7 doesn't use controllers like PrestaShop v1.4 does. It has all the controller code in the files in the root directory, and it doesn't use config.xml files in its modules, or let you specify an author name. Otherwise, the guide should still apply. Link to comment Share on other sites More sharing options...
uddhava Posted June 7, 2011 Share Posted June 7, 2011 I am trying to figure out the correct way to override a class file. When i look into your guide you seem to use this code for overriding the controllers: class CategoryController extends CategoryControllerCore { public function process() { parent::process(); $this->smarty->assign('HOOK_CATEGORY', Module::hookExec('category')); } } I have created a class override file for the frontcontroller core file : class FrontController extends FrontControllerCore { public function displayHeader() { self::$smarty->assign(array( 'HOOK_HOMEBLOCKLEFT' => Module::hookExec('homeblockleft'), 'HOOK_HOMEBLOCKMID' => Module::hookExec('homeblockmid'), 'HOOK_HOMEBLOCKRIGHT' => Module::hookExec('homeblockright'), 'HOOK_VANISEARCHBAR' => Module::hookExec('searchbar'), 'HOOK_FOOTER1' => Module::hookExec('footer1'), 'HOOK_FOOTER2' => Module::hookExec('footer2'), 'HOOK_FOOTER3' => Module::hookExec('footer3'), 'HOOK_FOOTER4' => Module::hookExec('footer4') )); parent::displayHeader(); } The difference is the order of the parent call. But when i put the parent call above the smarty assign then it does not work. So whats happening here? With the override code above the correct hooks are created and can be used. But when i select a payment method in the cart if gives a nasty error :Fatal error: Call to a member function assign() on a non-object in D:\websites\142fin-afterupgrade\override\classes\FrontController.php on line 13So obviously something is wrong, but what? Link to comment Share on other sites More sharing options...
Asenar Posted June 7, 2011 Share Posted June 7, 2011 Hi,Try to add this at the beginning of your method displayHeader : if (!self::$initialized) $this->init(); Link to comment Share on other sites More sharing options...
uddhava Posted June 8, 2011 Share Posted June 8, 2011 great that helped.Now why do you need this piece of code ? Link to comment Share on other sites More sharing options...
Asenar Posted June 8, 2011 Share Posted June 8, 2011 If you see the original code, you can see theses lines at the beginning.the method FrontController->init() will set some properties and var (like FrontControoler::smarty), checking if the ip is allowed, the cookie, if user is a customer, and that kind of thing.As the displayHeader() method uses self::$smarty, we need to initialize it. Link to comment Share on other sites More sharing options...
aqian Posted June 10, 2011 Share Posted June 10, 2011 Error in function displayErrors()Hi i got this error caused by the foreach-loop and can´t fix it.Warning: Invalid argument supplied for foreach() in J:\Web ... my.php on line 68So what´s wrong there? public function displayErrors(){ $errors ='' .sizeof($this->_errors).' '.(sizeof($this->_errors) > 1 ? $this->l('errors') : $this->l('error')) .''; foreach ($this->_errors AS $error){ $errors .= ''.$error.''; } $errors .= ''; return $errors; } Link to comment Share on other sites More sharing options...
rocky Posted June 11, 2011 Author Share Posted June 11, 2011 That error means that the variable $this->_errors hasn't been initialised. Make sure you have the following at the start of the getContent() function: $this->_errors = array(); Link to comment Share on other sites More sharing options...
aqian Posted June 11, 2011 Share Posted June 11, 2011 Thank you rocky, that was the problem. Link to comment Share on other sites More sharing options...
cortsenc Posted June 14, 2011 Share Posted June 14, 2011 I apreciate this guide for developers.I used Prestashop 1.2, and it helps me to understand the new estructure of PrestaShop. Thanks for your time, Rocky.An offline version it will be greate.Thanks. Link to comment Share on other sites More sharing options...
aioannidis Posted June 22, 2011 Share Posted June 22, 2011 Rocky thanks a lot for your great guide to prestashop developers. I' ve been searching something like that for a year, since version 1.3.x... You have done a great job there. Thanks again Link to comment Share on other sites More sharing options...
surzygyy Posted June 28, 2011 Share Posted June 28, 2011 Great stuff thanks! Link to comment Share on other sites More sharing options...
rocky Posted July 3, 2011 Author Share Posted July 3, 2011 I've now finished the offline version of the PrestaShop Development Guide. It also includes a ZIP file of the "Hello World" module. I decided to charge a small amount, since I've put a lot of effort into the guide. You can purchase it here. As a bonus, I've included an offline version of the PrestaShop Performance Guide too. Of course, you can still read the guides online version for free. Link to comment Share on other sites More sharing options...
webindiainfotech Posted July 15, 2011 Share Posted July 15, 2011 thanks i learn more from this Link to comment Share on other sites More sharing options...
mediatama Posted July 18, 2011 Share Posted July 18, 2011 Hello RockyI want to ask how to hide the display module from the content page?eg. http://content.com/content/1-contenton the module position exception only explain to hide the display module in the main directory homepageeg. Identity.phpbecause I want to create a table that extends laterally to the content.Thank you. Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2011 Author Share Posted July 29, 2011 I don't understand. Do you mean you want to hide a module from all CMS pages or a specific one? You can add cms.php to hide the module from all CMS pages. If you want to hide it from a specific CMS page, you'll need to override the module's TPL file and add code like {if $page_name != 'cms' OR ($page_name == 'cms' AND $smarty.get.id_cms != 1)} at the top and {/if} at the bottom so hide the module from CMS page 1 only. Link to comment Share on other sites More sharing options...
Lapo Bartolini Posted August 21, 2011 Share Posted August 21, 2011 I think it would be very useful if you should add also the sample Module used in the text - helloworldnc. Anyway, congratulations, great job !!!!!! Link to comment Share on other sites More sharing options...
rocky Posted August 22, 2011 Author Share Posted August 22, 2011 That sample module is available if you purchase the PDF/DOCX version of the guide. I haven't made it available for download for free. Link to comment Share on other sites More sharing options...
newcat Posted September 20, 2011 Share Posted September 20, 2011 Hi All, I'm very new in prestashop and I'm trying to find where exactly the order details are saved in the database. I need to make additional actions at the same time the detail is saved. Can anyone help me? Thanks in advance Link to comment Share on other sites More sharing options...
ladyred Posted October 17, 2011 Share Posted October 17, 2011 Excellent and very well thought out and put together! Link to comment Share on other sites More sharing options...
jesusruiz Posted October 18, 2011 Share Posted October 18, 2011 Great work, rocky The guide is perfect for developers. Link to comment Share on other sites More sharing options...
Dharmendra Rao Posted October 31, 2011 Share Posted October 31, 2011 Hi all, I am a web developer and now work on prestashop but not have enough knowledge of prestashop.If any body know that there are feature for changing expiration date in admin area because i did not found. Else please help to how create new function to changing expiration date for product in prestashop. Link to comment Share on other sites More sharing options...
Axari Posted November 13, 2011 Share Posted November 13, 2011 Rocky, Excellent guide! It really helps getting started on creating your own module [edit] Moved my questions to it's own thread, and hoping someone experienced can take a few minutes to help me out. Link to comment Share on other sites More sharing options...
prestamax Posted November 15, 2011 Share Posted November 15, 2011 Thanks Rocky, this is very helpful. One thing I couldn't find anywhere (tried google as well): how to include a conditional style sheet in header.tpl using a variable such as $tpl_dir? I have tried <!--[if lt IE 9]> <link href="{$tpl_dir}css/ie.css" rel="stylesheet" type="text/css" media="{$media}" /> <![endif]--> but it doesn't work. Any tip how to achieve this? And I have another question. In the guide there is an explanation "In PrestaShop, it is convention to put CSS blocks containing only one line on a single line, and the last line of a CSS block doesn't have a semicolon." Why is this so? I find the missing semicolon at the end a bit irritating. It looks wrong somehow ... Anyway thanks for this great guide. It helps a lot. Link to comment Share on other sites More sharing options...
guest* Posted November 16, 2011 Share Posted November 16, 2011 Hi Rocky, Thxs for your great tutorials. See you Conny Link to comment Share on other sites More sharing options...
ezakimak Posted November 23, 2011 Share Posted November 23, 2011 Hi, May I ask here, what IDE are you people using to develop , debug etc Prestashop ? Thanks Hugo Link to comment Share on other sites More sharing options...
radus Posted December 3, 2011 Share Posted December 3, 2011 Very good rocky. ( too good for me ). I just wanted to replace header("Cache-Control: no-store, no-cache, must-revalidate"); with header("Cache-Control: private, must-revalidate"); and do not understand where. I'm @ bottom of the learning curve. thanks for Guide and guidance Link to comment Share on other sites More sharing options...
EQ10000 Posted December 8, 2011 Share Posted December 8, 2011 Many thanks on the docs... very useful in understanding the framework especially overriding classes and controllers. However, when I try to override a controller AuthController.php, I got a problem on how to place. I raise the problem in the new topic. Link to comment Share on other sites More sharing options...
alex32 Posted January 3, 2012 Share Posted January 3, 2012 Hi Amazon has published a full Developer's guide for PrestaShop , look here : http://www.amazon.com/dp/B006O64FM8 Link to comment Share on other sites More sharing options...
EricGardien Posted January 8, 2012 Share Posted January 8, 2012 Thank you. Very nice help. I have a question: Administration, module page, if a module is installed, activate or deactivate appears. Do you know which function is called with the link activate and deactivate ? I would like to add code when these links are called. Thank you very much Link to comment Share on other sites More sharing options...
sees Posted January 10, 2012 Share Posted January 10, 2012 Rocky thanks a lot for your great guide to prestashop developers. I' ve been searchingr4 something like that for a year, since version 1.3.x... You have done a great job there. Thanks again In future version you will be allowed to have several themes at the same times, with appropriates modules activated or not, but it's not available for now. Link to comment Share on other sites More sharing options...
PrestaMagic Posted February 15, 2012 Share Posted February 15, 2012 You da man! Thank you for this excellent work. Link to comment Share on other sites More sharing options...
shellxie Posted February 24, 2012 Share Posted February 24, 2012 Thanks Rocky. I am trying to locate each file in my default theme 1.4.7.0. But many of the files can not be found. I know you write about 1.4.2 version. So many files changed with the version, is it right? who can tell me a way to search each file in my computer which is installed version 1.4.7.0 default theme? I am a newbie, for me the first thing to do is to locate the files in my prestashop application. Thanks, Link to comment Share on other sites More sharing options...
shellxie Posted February 24, 2012 Share Posted February 24, 2012 I know the way in my win7 to search files. sorry to disturb you here. Link to comment Share on other sites More sharing options...
shellxie Posted February 24, 2012 Share Posted February 24, 2012 I ask a basic question. Can I think each of Prestashop module is a class which is extended from a parent class named ObjectModel? Maybe it is a silly question. I am too new to ask a proper question. I just want to clarify some questions in my mind after I read some of this post. Actually I don't know what is ObjectModel and how to get the definition of it in PHP manual. Thanks for help. Link to comment Share on other sites More sharing options...
shellxie Posted February 24, 2012 Share Posted February 24, 2012 O, I want to locate the files of the ObjectModel members and functions in my prestashop folder of version 1.4.7.0. How to do the search? Thanks Link to comment Share on other sites More sharing options...
shellxie Posted February 24, 2012 Share Posted February 24, 2012 I am quite confused with the concepts of HOOK. There are php scripts, hook names with hook id, modules and smarty tpl files. I noticed one hook name can hook several modules and one module can be hooked with several hook names. And hook name can be inserted in any place of a tpl file. Who can tell the relations of above 4 concepts in simple words? Thank you for guide. Link to comment Share on other sites More sharing options...
BWT Posted April 10, 2012 Share Posted April 10, 2012 Wow! thats great, thank you for putting in the time for everyone! Link to comment Share on other sites More sharing options...
numeric69 Posted May 3, 2012 Share Posted May 3, 2012 which is and how to insert product class? Link to comment Share on other sites More sharing options...
galactic Posted May 27, 2012 Share Posted May 27, 2012 (edited) It will be better and easier to follow if separate code snippets from chapters will be assembled into the complete sample files in the end (module.php, module.tpl, etc) Edited May 27, 2012 by galactic (see edit history) Link to comment Share on other sites More sharing options...
bernardopiresfernandes Posted June 1, 2012 Share Posted June 1, 2012 Hello. I have an issue on my guest check out form. My product is downloadable it means that many fields on the check out form are useless to me. My question is. How can I switch off the validation for the required fields? For example, the Guest Check out form is: Instant check out Email: 1º name: Last name: (I could manage to remove successfully the non-required fields) Delivery address: Again 1º name Again last name The issue is if I remove the 1º and last name from the instant check out form, I m able to make the purchased but when I go to the back office I got 1º/last name undefined. When I receive the confirmation email was “Hi, undefined ….” This is not professional. And if I remove the name fields from the delivery address I can’t proceed, once the validation error comes in “First name and last name are required fields”. I did the changes on themes/prestashop/order-opc-new-account.tpl My prestashop is 1.4.8.2 Thanks Link to comment Share on other sites More sharing options...
Kalimera.com.br Posted June 4, 2012 Share Posted June 4, 2012 I don't understand. Do you mean you want to hide a module from all CMS pages or a specific one? You can add cms.php to hide the module from all CMS pages. If you want to hide it from a specific CMS page, you'll need to override the module's TPL file and add code like {if $page_name != 'cms' OR ($page_name == 'cms' AND $smarty.get.id_cms != 1)} at the top and {/if} at the bottom so hide the module from CMS page 1 only. Hi, I want to hide the right lateral hook from all the CMS pages, I did not quite understand what do you mean by "add cms.php to hide the module from all CMS page", could you be a little more specific please. Thank you. Link to comment Share on other sites More sharing options...
SuperCharlie Posted June 5, 2012 Share Posted June 5, 2012 This is much more useful than the official documentation. The official tutorial is great up to the part where you need to configure the module and save data to the database. It starts off explaining each line creating the module and then towards the end looks like they got tired and threw up some code for an admin tab and called it a day. In any case, thanks for the info, it is very appreciated. Link to comment Share on other sites More sharing options...
galactic Posted June 6, 2012 Share Posted June 6, 2012 (edited) rocky, can you add to guide an example showing resulting module code, from separate snippets for several module creation steps? Edited June 6, 2012 by galactic (see edit history) Link to comment Share on other sites More sharing options...
kurniawan.beni Posted June 14, 2012 Share Posted June 14, 2012 hy, i'm new in prestashop i try to adding module to link such as information like how to, guide for my shop i've already successfull create some basic module, and hook it in the left coloumn, my question is, how to make controller, for add link in my module to show my file php? example my file php is "abc.php" in left colomn, already 3 li for each information sorry for my bad english Link to comment Share on other sites More sharing options...
ember1205 Posted July 31, 2012 Share Posted July 31, 2012 Here's some constructive feedback of your development documentation... It's grossly incomplete. There is zero documentation in any of the files that are part of the core as to exactly what they do, and there is NO documentation dedicated to the data flows, logic, or structure of the product as a whole. While you believe it's useful to document how you *want* people to extend the product, sometimes that can not be done correctly (or at all) without understand what the pieces "around it" do and how they do it. I need to make a change to the product that I do not know if I can do with a module because I have absolutely no idea what pieces get called at what point to do what at any point in the rendering of a page or movement through the product. So, if what I need can be done with a module, I have no idea. And, if it can't, I also have no idea where in the original code to go to possibly code a change. I am not a "developer" by trade, but I am capable of writing code and understanding code written by others. With PrestaShop, however, I don't even know where to start in order to trace a process through the product. PS appeared to be the perfect replacement to the much more complex (and slower) Magento. But, with the complete lack of documented knowledge around what was coded by the development team, it is no more useful to me. 3 Link to comment Share on other sites More sharing options...
BigZ Posted October 10, 2012 Share Posted October 10, 2012 Hi guys I use 2 things to help me out discover the prestashop structure when i need it : the file dbmodel, locacte in /docs/dev, wich you can open with mysql workbench Also, most usefull, a doxygen generated doc, that i hosted at http://www.templeofdeejays.com/docs/doxygen/ But this, along as a lot of other stuff around documenting prestashop, should either be done by the team - or by the community on an official community developping site (drupal manages it very well, take some experience from it !) 1 Link to comment Share on other sites More sharing options...
admin_webs Posted October 13, 2012 Share Posted October 13, 2012 Can any body give this documentation? link is broken Link to comment Share on other sites More sharing options...
cheshire-cat Posted October 29, 2012 Share Posted October 29, 2012 Promising topic title but alas I got only "We have shut down our PrestaShop development"-kind of 404. Was this guide really so unusable for ver. 1.5? Link to comment Share on other sites More sharing options...
zim Posted November 14, 2012 Share Posted November 14, 2012 Would be nice to see the guide reposted Link to comment Share on other sites More sharing options...
portal7 Posted November 27, 2012 Share Posted November 27, 2012 YES!, please, repost!!!! the post are pined and sounds so promise Link to comment Share on other sites More sharing options...
nuchie1 Posted December 6, 2012 Share Posted December 6, 2012 (edited) I am trying to edit the index.php. It goes to config/config.php. How can i edit it and the css file. I want to add a different background. Edited December 6, 2012 by nuchie1 (see edit history) Link to comment Share on other sites More sharing options...
portal7 Posted December 6, 2012 Share Posted December 6, 2012 I am trying to edit the index.php. It goes to config/config.php. How can i edit it and the css file. I want to add a different background. I think that is not to discuss this topic, you should open another. On the other hand, what questions you answer, and it must modify all you should modify the template instead of directly editing the index.php to change the background color, Link to comment Share on other sites More sharing options...
superprg Posted December 15, 2012 Share Posted December 15, 2012 The link doesnt work anymore? http://www.nethercottconstructions.com/index.php?controller=404 Anyone has the zip file? Link to comment Share on other sites More sharing options...
jwzumwalt Posted December 22, 2012 Share Posted December 22, 2012 Your link to the developer guide is broken Link to comment Share on other sites More sharing options...
gray303 Posted January 6, 2013 Share Posted January 6, 2013 I found it here: https://docs.google.com/gview?url=http://www.central-manuals.com/downloads/downloads_softwares/prestashop/PrestaShop-1.4_Developer-Guide.pdf&chrome=true 1 Link to comment Share on other sites More sharing options...
jwzumwalt Posted January 7, 2013 Share Posted January 7, 2013 Wonderful! Thanks! I found a alpha version of the doc and it was so full of errors I could not see why everyone was praising it... Now that I see the finished doc, it does look very helpful. Thanks again for the link. Link to comment Share on other sites More sharing options...
patrickvbw Posted January 31, 2013 Share Posted January 31, 2013 Not available anymore? Link to comment Share on other sites More sharing options...
jwzumwalt Posted January 31, 2013 Share Posted January 31, 2013 Not available anymore? It is at http://doc.prestashop.com/download/attachments/1409083/PrestaShop-Developer-Guide.pdf Link to comment Share on other sites More sharing options...
infinityl Posted February 5, 2013 Share Posted February 5, 2013 Is this for 1.4 or 1.5??? Link to comment Share on other sites More sharing options...
jwzumwalt Posted February 5, 2013 Share Posted February 5, 2013 It is for 1.4 I have not updated to 1.5 and probably won't for about 2yrs until it stabilizes. There are reportedly lots of problems with 1.5 and I have 1.4 working quite smoothly. Link to comment Share on other sites More sharing options...
qoeme Posted February 12, 2013 Share Posted February 12, 2013 Great help for those running in 1.4 still Link to comment Share on other sites More sharing options...
Runan Posted March 6, 2013 Share Posted March 6, 2013 It will be interesting in the futur to add a section for c# and webservice ... Thanks for this guide ! Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted April 20, 2013 Share Posted April 20, 2013 I have not updated to 1.5 and probably won't for about 2yrs until it stabilizes Really??? In 2 years, I get Prestashop 1.6 will be released. Link to comment Share on other sites More sharing options...
axiom525 Posted June 3, 2013 Share Posted June 3, 2013 hi i m going to translate a prestashop template to persian,& i need some help.i dont know which files have to be set as rtl ?since my language ie right to left...do i have to make changes to xml file too? tanx for ur attention Link to comment Share on other sites More sharing options...
timmyraynor Posted July 8, 2013 Share Posted July 8, 2013 The Prestashop 1.5 is very different from 1.4, e.g. Using Dispatcher&Controllers instead of individual pages. Please anyone do an extra guide for new version? Link to comment Share on other sites More sharing options...
Normal Posted August 5, 2013 Share Posted August 5, 2013 The Prestashop 1.5 is very different from 1.4, e.g. Using Dispatcher&Controllers instead of individual pages. Please anyone do an extra guide for new version? Yes, anybody got for V1.5? Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2013 Share Posted August 5, 2013 Normal what exactly you're looking for? Link to comment Share on other sites More sharing options...
Normal Posted August 5, 2013 Share Posted August 5, 2013 Normal what exactly you're looking for? Prestashop development guide for version 1.5 Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2013 Share Posted August 5, 2013 what about official dev guide: http://doc.prestashop.com/display/PS15/Developer+Guide ? Link to comment Share on other sites More sharing options...
Normal Posted August 5, 2013 Share Posted August 5, 2013 i have read them thorougly...need different approaches for the same thing.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now