prestashop

I cannot get .htaccess rewrite rule to work with my Prestashop site

泄露秘密 提交于 2019-12-24 04:30:17
问题 Okay, I used an automated generator to generate a custom URL for my prestashop site in the .htaccess file, but it does not work. Any ideas? the original URL is: http://www.example.com/de/suche?controller=search&orderby=position&orderway=desc&search_query=mutter&submit_search=OK the rewritten url should be: http://www.example.com/search/position/desc/mutter/OK.html and the rewrite rule I have in the .htaccess file is: RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$ /de/suche

SSL exception for single folder

我们两清 提交于 2019-12-24 01:15:40
问题 I would like to remove my SSL only for one folder. My url is https://www.example.com and I would like to remove https for my interactive PDF https://www.example.com/catalog2017 because https does not work with my interactive PDF. I tried with .htaccess but not work. 回答1: You can use the following rules in your .htaccess file. What this does is first check if HTTPs is not on, if not, then it will forward everything to HTTPs except for the directory catalog2017 . The second rule checks if HTTPs

PrestaShop: allow customers to upload PDF, AI and EPS files as product customization

懵懂的女人 提交于 2019-12-24 01:05:24
问题 I am running Prestashop 1.6.1.7 and I have the following pictureUpload() method that allows users to upload files of their choosing. By default Prestashop allows uploads of GIF, JPG, JPEG or PNG only. I'm trying to allow users the ability to upload a few more types (pdf, ai and eps specifically) Here is the pictureUpload() method in the productController override: protected function pictureUpload() { if (!$field_ids = $this->product->getCustomizationFieldIds()) { return false; } $authorized

Adding new table in rest api of prestashop webservice

梦想的初衷 提交于 2019-12-24 00:57:03
问题 I've been successful in creating an extra table in the prestashop products table throught rest api of webservice , however the api link http://127.0.0.1/prestashop/api/wb3d/1 wb3d is the new table which I have created in webservice . Which holds a path to an images directory somewhere on the web . This link when opened shows the data which has been saved in the database as seen in the following image below model is directory name on the web, so this api(wb3d) has been associated with the

Prestashop 1.5.6.2 shows wrong products in the category (FrontOffice)

戏子无情 提交于 2019-12-23 17:22:43
问题 I'm using prestashop 1.5.6 and make a bulk category and product operation into mysql via 3rd party libraries (which i was wrote). Everything fine till some of my products show in wrong category. For eg i have A product in A category; But when i go to the B category A product is also there. I think something wrong with my ps_category_product table with position column. I'm updating this table with code below; $sqlFirst = 'SELECT id_product, id_category_default, xml_id_product FROM ps_shop

SessionHandler::gc(): ps_files_cleanup_dir | Permission denied (13)

走远了吗. 提交于 2019-12-23 12:08:25
问题 i have a problem with PHP7 in CentoOS (WHM/CPANEL) and Prestashop 1.7 the system gives me this messagges: Notice on line 429 in file /home/onywf3fr9a/public_html/app/cache/dev/classes.php [8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13) 回答1: I have the same issue, I changed the session.save_path to "/tmp" in my php.ini 回答2: For fixing the «Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir("/var/cpanel/php

Check the cause of slow loading time among different server

天涯浪子 提交于 2019-12-23 07:43:52
问题 A e-shop has developed using perstashop and put to the three server: the first 2 is amazon, should be same setting Server 1: http://be-pure.com/en/women/3-slim-y-tank.html Server 2: http://52.77.216.83/en/women/3-slim-y-tank.html the last one is just local hosting Server 3: http://internal001.zizsoft.com/be_pure/en/women/3-slim-y-tank.html The problem is server 1 loading very slow compare to the other two server, but the performance should be the best among 3. It looks as if server 1 hasn't

Prestashop Handle post data in custom CMS form

坚强是说给别人听的谎言 提交于 2019-12-23 04:21:16
问题 I've developped a prestashop module that display a form, and now I want to use the POST data to store my data in the database. Following some tutorials I'm able to display the form and load some js file, but my question are two: What will be the action parameter of my form? How can i handle the post parameters, and where?? The structure of my module is this - root is /modules/mymodule/ dir: mymodule.php /views/templates/hook/mymodule.tpl /views/js/front.js Have i to insert a controller??

Prestashop custom page with own template

孤人 提交于 2019-12-23 03:03:12
问题 I am running my own prestashop theme and want to add a new page without the css. Therefore I added the three files php, controller and template. I placed the php in the root directory of my prestashop, added the controller to root/controllers/front and placed the template in root/themes/my-theme. If I call http://localhost/prestashop/?page=custom-page, I see the index start page, If I call localhost/prestashop/custom-page, I get a HTTP 404. Can someone help me to get my page displayed? PHP: <

Prestashop custom layout for specific category

南楼画角 提交于 2019-12-23 02:55:14
问题 Can I have a specific category layout for selected categories? The detail page will be the same, I need to get a custom tpl file. Thanks for suggestions 回答1: Pretty easy to do: override the category controller to set the template. class CategoryController extends CategoryControllerCore { // array with the selected categories private $customCategories = array(1, 3); public function init() { parent::init(); if (in_array($this->category->id, $this->customCategories)) { $this->setTemplate(_PS