Jump to content

Customizing prestashop generated website


Recommended Posts

Hi,

My website is being administrated by prestashop 1.4.4.1 and has been created under "theme150".

The whole website has been generated by prestashop. (www.waterfilterforfridge.com.au)

I need to customize few pages on my website, but when I look at the codes of the pages (including index.php), it comes up with nothing much, only 2-3 script lines but the notice of prestashop in yellow font, which I put down below.

It won't allow me to edit the code to customize the website.
Even if I change the codes, it will not effect on the front-office.
 
Does anyone know how to get around this?
 
Please advice, your help is much appreciated.
 
Thanks in advance.
 
So, here is the notice that I get when I open the page file. (including index.php, and many other pages)
"/*
* 2007-2011 PrestaShop 
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 6594 $
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/"
Link to comment
Share on other sites

 

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.

It only says that you should not modify that file if you wish to upgrade later on.

 

The reason is quite simple: during an upgrade that file will be overwritten with a newer version and you will lose your changes. Of course this won't be a problem if you would like to re-implement your changes.

 

However, Prestashop offers ways to implement changes in a way that you still can upgrade your code. For that you need to use the templates - as DH42 explained - or - if you want to modify the logic - use overrides. Most logic is in the classes and controllers.

Link to comment
Share on other sites

×
×
  • Create New...