Showing posts with label prestashop. Show all posts
Showing posts with label prestashop. Show all posts

Thursday, February 5, 2015

prestashop upload image: undefined error

my latest update on cpanel, were installing modsecurity with extra vendor from owasp.
it seems that 1 rule have caused prestashop to unable to upload image to product through the admin control panel. The rule effecting the upload is:


rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf 
For example, these rules block GET requests with a body.
Basically it means it stop all post data if the url contains GET querystring...

hope it help you guys. You may disable this rule in the vendor - edit and off this line.

Wednesday, May 15, 2013

Prestashop form field type

Adminisration notes:

the template for default form helper is located @
[path-to-project]/[admin-path]/themes/default/template/helper/form/form.tpl

the template for default listing helper is located @
[path-to-project]/[admin-path]/themes/default/template/helper/list/list.tpl

if you want to override the form template,
create the file or copy a pre-made template to:
[path-to-project]/[admin-path]/themes/default/template/controllers/[yourcontrollername]/helpers/form/form.tpl

eg:
AdminMyAdminController form helper in

[path-to-project]/[admin-path]/themes/default/template/controllers/my_admin/helpers/form/form.tpl


If you want to know all other supported form type, locate the smarty form functions @
[path-to-project]/tools/smarty/plugins/function.[name].php

Sunday, March 3, 2013

prestashop disable right column via hook?

need to disable right or left column via hook?
do these:

create a module,
makesure to hook onto displayFooter


$this->context->smarty->assign("HOOK_LEFT_COLUMN", "");
$this->context->smarty->assign("HOOK_RIGHT_COLUMN", "");


Alternative way is to go into Modules > Positions And edit the module, and add in exception page name onto the exception box. It's separated by comma.