prestashop-1.7

How to remove delivery shipping step on prestashop 1.7?

故事扮演 提交于 2019-12-11 02:58:47
问题 In reference to: How to remove delivery shipping step on prestashop 1.6.1? I am looking for a solution for Prestashop v1.7.2.4, any ideas? I tried to comment some code lines but it created extra problem like not submitting the order 回答1: Simply comment out the following lines ->addStep(new CheckoutAddressesStep( $this->context, $translator, $this->makeAddressForm() )); in /controllers/front/OrderController.php 回答2: I managed to hide Address step by assigning all orders to a single Address and

Prestashop 1.7.1 - Top banner which hook shall be used?

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:22:21
问题 Following this question I have created a new banner. Now I want to insert a hook, but I am wondering which hook shall be used to display it on top of every page (as a promotional banner). Thanks 回答1: Assuming you're using the classic theme, you can use the displayBanner hook. If you look at header.tpl you can find the following block: {block name='header_banner'} <div class="header-banner"> {hook h='displayBanner'} </div> {/block} which should be displayed on top of every page 来源: https:/

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

Prestashop 1.7 Customer Password Encryption?

旧城冷巷雨未停 提交于 2019-12-08 07:56:03
问题 I made some third party system based with php for Prestashop 1.6. It works with connecting directly the Prestashop Database. And know Im upgraded my Presta to 1.7.5.1 and IT WORKS. Only It dont log in customers anymore because as I can see Password encryption is changed. I was using md5(COOKIE_KEY.'password') for 1.6, but I see the passwords on 1.7 nothing like md5. Could you tell me how encryption is. (it become much better if you tell me with php code) Prestashop 1.7.5.1 $2y$10

Prestashop custom page with own template

空扰寡人 提交于 2019-12-08 06:43:21
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: <?php include(dirname(__FILE__).'/config/config.inc.php'); Tools::displayFileAsDeprecated(); include

The right way to add a new field in admin product page in Prestashop 1.7

安稳与你 提交于 2019-12-04 13:07:57
问题 I've created a module for Prestashop 1.7 in order to add a new field in the Admin Product page. Due to the lack of proper documentation, I want to ask the proper way to add my custom field, a select. I want to get saved and updated on product save. I use the code below to add a tpl containing a form public function hookDisplayAdminProductsExtra($params) { $this->smarty; $available_items = $this->getAvailableBadges(); $id_product = Tools::getValue('id_product'); $this->context->smarty->assign(

Add custom field in Prestashop 1.7.6 category with a module. How to save in database?

余生长醉 提交于 2019-12-04 05:45:18
问题 I'm creating a module in Prestashop 1.7.6 to add some custom fields in my categories administration page. Here is my code (from this source in French, new Symfony model used) : modules/categorycustomfields/categorycustomfields.php class Categorycustomfields extends Module { protected $config_form = false; public function __construct() { $this->name = 'categorycustomfields'; $this->tab = 'administration'; $this->version = '1.0.0'; $this->author = 'abc'; $this->need_instance = 0; $this-

The right way to add a new field in admin product page in Prestashop 1.7

二次信任 提交于 2019-12-03 08:00:41
I've created a module for Prestashop 1.7 in order to add a new field in the Admin Product page. Due to the lack of proper documentation, I want to ask the proper way to add my custom field, a select. I want to get saved and updated on product save. I use the code below to add a tpl containing a form public function hookDisplayAdminProductsExtra($params) { $this->smarty; $available_items = $this->getAvailableBadges(); $id_product = Tools::getValue('id_product'); $this->context->smarty->assign('items_number', $available_items); return $this->display(__FILE__, '/views/templates/admin/admin

Make an ajax request from a Prestashop module

泪湿孤枕 提交于 2019-12-03 04:02:53
I am making a module and I need to make an ajax request, with JSON response if possible, how can i do this ? I don't understand really well the structure of Prestashop 1.7 on this. Thanks ! This is pretty simple, you just have to make the controller with Prestashop's standards then link it to your frontend Javascript. Name a php file like this : ./modules/modulename/controllers/front/ajax.php Then put inside : <?php // Edit name and class according to your files, keep camelcase for class name. require_once _PS_MODULE_DIR_.'modulename/modulename.php'; class ModuleNameAjaxModuleFrontController

Add custom field in Prestashop 1.7.6 category with a module. How to save in database?

折月煮酒 提交于 2019-12-02 08:32:59
I'm creating a module in Prestashop 1.7.6 to add some custom fields in my categories administration page. Here is my code (from this source in French, new Symfony model used) : modules/categorycustomfields/categorycustomfields.php class Categorycustomfields extends Module { protected $config_form = false; public function __construct() { $this->name = 'categorycustomfields'; $this->tab = 'administration'; $this->version = '1.0.0'; $this->author = 'abc'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Category Custom Fields'); $this-