prestashop-1.6

virtualhost keeps redirecting to deleted alias information

﹥>﹥吖頭↗ 提交于 2019-12-11 00:53:52
问题 I have a DigitalOcean droplet (i.e. a VPS server), with Ubuntu 14.04 and Apache 2.2. I had 4 virtualhosts configured, with 4 different domains pointing to 4 different folders, no problem. I needed to point a 5th domain (let's call it www.someshop.tld ) containing a PrestaShop installation. I added the following Alias to the apache2/sites-available/domain1.conf file so that www.domain1.tld/someshop would lead to www/prestashop , and it worked fine <VirtualHost *:80> ServerName www.domain1.tld

Prestashop 1.6, conflict: 2 different modules requiring same class, different versions

左心房为你撑大大i 提交于 2019-12-10 14:25:05
问题 In my Prestashop project, I have several modules. In one of them (let's call it "AWS") I installed AWS SDK using composer (in PHPStorm), as explained here. Composer has "required", among other libraries, "guzzlehttp", updated to its final version. On the other hand, there is another module (let's call it "orangeConnect" ) with composer too, that has an earlier version of "guzzlehttp". The problem lies when I am using AWS SDK in php, inside a php script in the first module. What happens is

DDOS Attack causing Database connection error [closed]

时光毁灭记忆、已成空白 提交于 2019-12-10 12:32:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have hosted my Prestashop at Fastdomain server it's like the 4th year, the website is stable and working fine till 3 days ago where my email inbox got full of spam and more than 300K requests on the site causing the site to go down. I activated the basic protection from Sitelock provided from Fastdomain Cpanel

Where to register global smarty modifier in PrestaShop?

南楼画角 提交于 2019-12-10 10:15:57
问题 I'm creating a store based on PrestaShop (v 1.6), and I want to register my custom modifier plugin to be accessible from any templates (includinf front and back-officetemplates). The question is where to place the registration code? Now I use a Tools class override to add function to handle modifier (that is acceptable practice in case of store-specific functionality, afaik), and smarty.config.inc.php to register plugin (because all PrestaShop plugins are registereg here), but this file

Upgrade Prestashop from 1.6.0.11 to 1.7 (latest version)

大憨熊 提交于 2019-12-08 11:56:06
问题 I want to upgrade prestashop from 1.6.0.11 to 1.7 (latest version). First, I have tried 1-click upgrade but did not worked for me. See these screenshots http://prntscr.com/ek46kr, http://prntscr.com/ek46nb, http://prntscr.com/ek46sa. Second, I have tried with manual steps like this link http://doc.prestashop.com/display/PS16/Manual+update, but this also not worked ! See screenshot http://prntscr.com/ek4dbv If anybody know perfect steps to upgrade prestashop 1.7 please answer here. It will be

Autoload module class in Prestashop

我是研究僧i 提交于 2019-12-08 10:50:26
问题 I've created a module that has an override for the FrontControllerCore class to add additional Smarty variables. The issue I'm running into is trying to autoload a class that is referenced in the controller that is in my module. The class isn't being loaded and I don't know how to add it to the autoloader. 回答1: When you install the module the FrontController.php file should be located in: override\classes\controller\ so from the FrontController.php you can "include" manually that file like:

PrestaShop 1.6 Upgrade, Images Question Mark

岁酱吖の 提交于 2019-12-08 09:55:02
问题 I've upgraded my prestashop installation from 1.4 to 1.6 successfully with only 1 side effect. The product images are now questions marks. http://prestastore.webdirective.com/catalog/ Ive already tried a few forums but no fix. I need help where to start checking. Im fairly new to prestashop so be elaborate. Thanks! 回答1: There are few approaches for solving this problem: Try regenerating the .htaccess file (BackOffice > Preferences > SEO & URLs > [Save]) Try regenerating the images (BackOffice

Prestashop 1.6 - Create front end page in custom module

和自甴很熟 提交于 2019-12-08 06:16:52
问题 I currently works on a custom module who add features to the Prestashop native store locator. For my needs, i must create a second custom page in my module (and a second controller). I tried something but nothing works. I override FrontController file in my directory -> /module/override/controllers/front/StorepageController.php <?php class StorepageController extends FrontController { public function initContent() { parent::initContent(); $this->setTemplate(_PS_MODULE_DIR_.'modulename/views

Create order with PrestaShop's API

允我心安 提交于 2019-12-08 03:26:25
问题 I have a PrestaShop 1.6.0.9 and I'm trying to create a new order. I'm following the following steps: Create a cart with the security key of the client I have previously created, the id of the product I want to buy and the quantity. Then create a new order (sending a POST to /api/order ), passing the client id, the security key, the product id, the prices (with and without taxes), etc... This is the entire XML that I send: <?xml version="1.0" encoding="UTF-8"?><prestashop><order> <id_address

How to remove delivery shipping step on prestashop 1.6.1?

六月ゝ 毕业季﹏ 提交于 2019-12-07 12:32:28
问题 I'm new to prestashop and I'm having major trouble removing the delivery shipping step because I only sell virtual products. I am using prestashop 1.6.1. I know I have to modify order-carrier.tpl file and have followed several posts here and there but couldn't get it done right. Does any of you have any actual idea on how to do this ? 回答1: Bonjour, here is what i did Override AdminOrderPreferencesController and add a boolean configuration field to toggle this functionnality $this->fields