prestashop-1.6

Prestashop 1.6 - Add custom field to category

落爺英雄遲暮 提交于 2019-12-06 02:28:06
问题 I would like to know how I can add a custom field to a category and how I can edit in the back office (under the description field). the field I would like to add is name description_long The field type is TEXT I already have overwritten my Front office , and my field is well displayed . override\classes\Category.php <?php class Category extends CategoryCore { public $description_long; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'category', 'primary' =

Prestashop redirects to old domain after changing it in Database

丶灬走出姿态 提交于 2019-12-06 01:20:19
问题 I am trying to create a copy of a prestashop 1.6 e-shop for development purposes from domain.com to dev.domain.com The process I followed is Disable cache and compilation Copy the files from domain.com to dev.domain.com Dump the mysql database from domain.com in dump.sql Open dump.sql on vi and search and replace using :%s/domain.com/dev.domain.com/g Import dump.sql in the devdb Open prestashop cpanel and verify all shop url configuration is changed. Open phpmyadmin and check that all domain

How to display product price with and without tax at a time in product list for Prestashop?

允我心安 提交于 2019-12-05 06:03:58
In the product list I need to display the product price with and without tax at a time. I am using the version 1.6 of Prestashop. Right now the price including tax is displayed in the product list. I want to display the price excluding tax as well. How can I do that? I have searched for solution and was not able to find a working solution for me. Find the following block in product-list.tpl : {foreach from=$products item=product name=products} Add this to display price without tax: {convertPrice price=$product.price_tax_exc} Make sure that during development Template compilation is set to

Prestashop 1.6 Create Module to Display Carrier Filter

╄→尐↘猪︶ㄣ 提交于 2019-12-04 19:15:45
My Prestashop-based site is currently having an override for AdminOrdersController.php, I have placed it in override folder. From the link provided below, it is perfectly working fine to add a Carrier filter which is not available in Prestashop 1.6 now. I have tried the solution and it is working perfectly. Reference: Adding carrier filter in Orders page. Unfortunately, for production site, I have no access to core files and unable to implement as such. Thus, I will need to create a custom module. Do take note that I already have an override in place for AdminOrdersController.php. I would like

Render helper form from prestashop admin controller

让人想犯罪 __ 提交于 2019-12-04 16:43:50
I am trying to add a helper form that lets the user upload images for two languages that the user can select. However I am stuck with the form and cannot render it in the view. Here is my controller code: <?php class AdminWineoHeaderImgController extends ModuleAdminController { public function __construct() { $this->bootstrap = true; $this->lang = (!isset($this->context->cookie) || !is_object($this->context->cookie)) ? intval(Configuration::get('PS_LANG_DEFAULT')) : intval($this->context->cookie->id_lang); parent::__construct(); } public function display() { parent::display(); } public

PRESTASHOP NGINX + REWRITE RULES

核能气质少年 提交于 2019-12-04 14:16:27
问题 I've being searching for a good solution for this combination and after following these: http://www.phamviet.net/2012/06/03/prestashop-rewrite-url-on-nginx/ Nginx configuration for Prestashop Prestashop 1.5.6.2 rewrite URLs over nginx install none of them seemed to work for me at all... so I started experimenting: After configuring SSL, CloudFlare, etc.... This is what I tried: server { listen 80; server_name mysuperdomain.com www.mysuperdomain.com; rewrite ^ https://$server_name$request_uri?

Prestashop redirects to old domain after changing it in Database

社会主义新天地 提交于 2019-12-04 06:10:40
I am trying to create a copy of a prestashop 1.6 e-shop for development purposes from domain.com to dev.domain.com The process I followed is Disable cache and compilation Copy the files from domain.com to dev.domain.com Dump the mysql database from domain.com in dump.sql Open dump.sql on vi and search and replace using :%s/domain.com/dev.domain.com/g Import dump.sql in the devdb Open prestashop cpanel and verify all shop url configuration is changed. Open phpmyadmin and check that all domain.com entries have changed to dev.domain.com Deleted files from /cache/smarty/compile /cache/cachefs

Prestashop 1.6 get instance of module class

给你一囗甜甜゛ 提交于 2019-12-03 22:34:36
问题 I have an overridden class OrderConfirmationControllerCore . I have a modul with class Abra . I need to get an instance of Abra class in the OrderConfirmationControllerCore My code is: class OrderConfirmationController extends OrderConfirmationControllerCore { public function init() { $abraSetDocs = new Abra(); parent::init(); } } This generates error: Fatal error: Class 'Abra' not found in /../override/controllers/front/OrderConfirmationController.php on line 39 How can I get the instance of

URL link for custom module in Prestashop 1.6

允我心安 提交于 2019-12-02 03:31:51
问题 I am currently developing a custom module. What I want is to have a nice URL, because right now it looks like this: domain.com/flower-deliveries?city=Hamburg&id_country=1&country=Germany I already added a new page to link to the custom module, the page name is flower-deliveries, but still I have the parameters that I have to "hide". Instead, of that link above I would like a URL like this: domain.com/flower-deliveries-1-Hamburg-Germany.html I tried 2 methods, but none of them worked.. The

Edit Prestashop current orders view

为君一笑 提交于 2019-12-01 13:19:38
问题 I'm using Prestashop 1.6.0.9. I wish to edit the raw HTML for this part. Full size image link: http://i.stack.imgur.com/hazQp.png I wish to add an extra colum to the filters but I can't actually find the code for it... I have searched through the adminXXXX/themes/default/template/ directory. Specifically the orders files but they only seem to be relevant for the view you get when you actually click on one of the orders listed below. (Below meaning the orders below the filters that you can't