Prestashop 1.6 - edit site in code - php

I am using PRESTASHOP 1.6 and i am trying to edit some page content like class in header. I try edit or delete all TPL files in directory /themes/default-bootstrap and no one make changes on my web page?
How i can edit header or any other part of my page with code?

As mentioned by ébewè in the comment section, first check that you are using the right theme in Preferences > Themes in your backoffice. Then check in Advanced Parameters > Performance that in Smarty section Never recompile template files isn't checked or use the clear cache option.

Related

Unable to add header for the website in header.tpl using OpenCart

I tried adding header in header.tpl and it is not reflecting in the front end where i did the same for my test website and it was coming fine,can you please suggest a way to edit and tell me if something is required to change in any other header.php files
In your admin panel, go to Extensions > Modifications and hit "Refresh" (the blue icon in the top right corner of your page).
This process must be done every time you change something in a core file.
Changing OpenCart's core files is not a great idea, though.
I highly recommend using OCMOD to write your modifications.

My Concrete5 Page Types Will Only Use Default.php

For some reason, my theme will not use any of the .php templates that I have built. For instance, in my theme file, there is a template called "gridLayout.php" In Page Types I have created a "Grid Layout" page type with handle "gridLayout"—shouldn't that be all I need to do? I cannot see the template in the Defaults mode, or when I create a specific page of that type. I also tried de-activating and re-activating the theme, thinking that would refresh things; still nothing. I must be missing something simple.
page types ought to follow concrete5 naming rules, grid_layout.php is preferred to gridLayout.php also concrete5 will only ask you to register a new page type upon theme installation or using the inspect button.
There are a couple of options here. One, de-activating the theme is not enough. Uninstalling and installing the theme will restart the process of identifying page types. Even easer though is the "Inspect" button for the custom theme. It will identify page templates that are not being used and ask you to create said page type.
Check your cache settings in Concrete5. Make sure you turn off all caching while developing.

Magento Theme CSS not Loading

I installed Magento Gala Bigshop theme here: http://www.mobilsokak.com
When I make a change on theme (Gala Bigshop) settings on admin panel, site's CSS starts to not loading. You can see it on http://www.mobilsokak.com now.
Theme's original look: _store=default">http://demo.galathemes.com/gala-bigshop/index.php/?_store=default
Should I do something after theme setting update?
Thank you.
Log into your Magento Admin Panel and navigate to System -> Configuration -> Advanced -> Developer.
Under Javascript Settings and CSS Settings, set Merge JavaScript Files and Merge CSS Files to Yes.
Now save config.
Check if the problem solved.
try recaching your magento cache.. from your mangento admin..
admin->system->cache management.. and select all and select refresh from rightside dropdown..
also push flush javascript/css cache button from bottom...
let me know if you want further guidance..
Have you changed the colors in the theme through backend?
Because its applying FFFFFF color everywhere in the site which is giving error as there is no # applied infront of FFFFFF if you check in debugger.
Also there is a missing css file at /skin/frontend/default/galabigshop/em_blog/css/styles.css.
Check if adding this file could make any change and also check colors in backend.
You can get the css if not there from
http://demo.galathemes.com/gala-bigshop/skin/frontend/default/galabigshop/em_blog/css/styles.css

How to add a block in magento

I am working on a magento theme but stuck with adding social links in header.
I just want to put three Social links on to my site in header section of every page.
It will depend on the template your using.
The file you'll need to edit will more than likely be in /APP/DESIGN/Somehwere . The somewhere will depend on you the theme you're using.
To see which file you need to edit, turn on template hints: From your admin panel, go to System >> Configuration >> Developer
Depending on your setup, you may have to set it for your default view or a specific store view.
A quick tutorial of template hints is here : http://www.westwideweb.com/wp/2009/08/04/magento-how-to-turn-on-template-path-hints-and-inline-translation/
The base header template is located in:
/app/design/frontend/base/default/template/page/html/header.phtml
But it's not good practice to directly edit this file, while you can do so.
The proper way would be to make a new theme folder, setup your store to use the right theme within admin then to edit the header.phtml file from that theme, which will override the default base theme - eg:
/app/design/frontend/base/yourtheme/template/page/html/header.phtml
make template path hints on for your store view. System->Configuration->Developer. (You can use your specific IP in allowed IPs not to effect the view)
Disable the cache.
Refresh the home page.
You can view the file there, go to that file.
You can directly add it there or you can create a static block and use that in your phtml file according to your wish.

Socialengine - How to add custom module to layout editor

I've made a few modules within my socialengine application however I was wondering how do I add these to the layout editor (root/admin/content) so that I can add widgets to these pages?
You can add the widget in layout editor by adding setting in content.php file.
We recommend adding your widget via the Package Manager which should help take care of the rest. For more information, please see in the Developer SDK section: http://support.socialengine.com/questions/180/Admin-Panel-Manage-Packages-Plugins
You should create a page first from layout editor.DO NOT GIVE any page URL in edit page info section.Leave the page without URL.Most important, add the content widget to your page and save it.
Now, you have a fresh page which does n't have url set.Create a module and either install it or paste it in your application/modules directory. Now, open your database and find the table
"engine4_core_pages" and click on insert and set the name field with your modulename_controller_action.
Comeback to your module and open index controller and put whatever code you want to in index action and just add a simple code to view this in your page,"
$this->_helper->content
// ->setNoRender()
->setEnabled()
You are done.You can set the route from your modules manifest.php inside settings
folder.
Hope this will help.
http://bloffin.blogspot.in/ for more...

Categories