prestashop-1.6

Confused about prestashop PDF generated process. Where is the code to handle the logic?

走远了吗. 提交于 2019-12-22 08:33:55
问题 I want to deep understand prestahop inside structure and amend some parts. I am stoped in the PDF. I want can't find the controller used to handle the AdminPdf and generateDeliverySlipPDF {if $order->delivery_number} <a class="btn btn-default _blank" href="{$link->getAdminLink('AdminPdf')|escape:'html':'UTF-8'}&submitAction=generateDeliverySlipPDF&id_order={$order->id}"> <i class="icon-truck"></i> </a> {/if} Who can help me figure out the inside processes? I can't find the methods to handle

How to integrate prestashop with android? [closed]

雨燕双飞 提交于 2019-12-18 11:33:36
问题 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 last year . Recently I have created a eshop website using prestashop https://www.prestashop.com/en/ And since I am going to build the android app for it. What includes in apps are only some basic function e.g. create customer account / list product / order product / pay / view order etc..common eshop functions... The problem

Integrate PrestaShop Webservice with Laravel 5

烂漫一生 提交于 2019-12-13 18:08:21
问题 I'm trying to integrate the Prestashop 1.6 WebService into my Laravel 5.3 project to retrieve data. Has anybody ever done this or know of any link which could help me? EDIT: My idea is, inside my Laravel app, whenever I click a specified like, it retrieves that data from my PrestaShop backoffice. For example, if I click on the Customers links inside my Laravel App, it shows the all the Customer information from currently in my PrestaShop back-office. 回答1: I managed to find a solution. This

jQueryUI not working (in Prestashop) how to troubleshoot?

南楼画角 提交于 2019-12-13 18:06:26
问题 I am building a Module for Prestashop that has a Front Office Controller. I'm wanting to use jQueryUI. In my main php file for the module (extending the Module class) in included JQueryUI like this: public function hookHeader() { $this->context->controller->addJqueryUI('ui.core'); $this->context->controller->addJqueryUI('ui.widget'); $this->context->controller->addJqueryUI('ui.mouse'); $this->context->controller->addJqueryUI('ui.slider'); } I am checking my header, and I see all the scripts

PrestaShop libraries replacement

﹥>﹥吖頭↗ 提交于 2019-12-13 10:19:54
问题 I use PrestaShop 1.6.1.4 and I want to change the library tcpdf with dompdf. I use this form for creating invoices. What are the best practices for a library exchange? 回答1: I created inside override the tools folder and I put us dompdf-master found here https://github.com/dompdf/dompdf. Instead inside override/classes/pdf i copied PDFGenerator.php, there is in classes/pdf. In PDFGenerator.php add: require_once('/../override/tools/dompdf-master/dompdf/Dompdf.php'); require_once('/../override

prestashop products on top menu

五迷三道 提交于 2019-12-13 07:24:46
问题 I am not very good with prestashop so i can not resolve my problem: i need to creare a drop down menu with sub category and products (like image). This is my situation, how you can you i have created sub-cat and now i need to show the products of categories, like first image. I have just searched in the web about any solution but i have not found it (or i have used worng keywords). i now this is possible because the first screen, is the demo of theme that i'm using: Thank you in advance to

Prestashop custom field in Product Feature not saving on Edit

99封情书 提交于 2019-12-13 04:34:06
问题 I have created a custom field for Product Feature in my module override. Custom field for Feature is not saving in the database on edit. But on Add new feature it works fine. Here is the code for my AdminFeaturesController.php file: <?php class AdminFeaturesController extends AdminFeaturesControllerCore { public function __construct() { $this->table = 'feature'; $this->className = 'Feature'; $this->list_id = 'feature'; $this->identifier = 'id_feature'; $this->lang = true; $this->fields_list =

Category Page Product Filter

你离开我真会死。 提交于 2019-12-13 02:59:13
问题 I am new to prestashop and I am trying to create a simple product filter to be displayed on the category page. I managed to output my filter on the page using the hook for the hookDisplayLeftColumn method, however I have a few questions. Right now I am hooking to the leftColumn but the filter will show on any page that has it.I want to show it only on the category page. public function hookDisplayLeftColumn($params) { $data = array( 'bar' => 'foo' ); $this->context->smarty->assign($data);

Show $params array('{item}' =>…)

自古美人都是妖i 提交于 2019-12-13 01:24:40
问题 Need some help. Have this code in PaymentModule.php in Prestashop: $params = array( '{voucher_amount}' => Tools::displayPrice($voucher->reduction_amount, $this->context->currency, false), '{voucher_num}' => $voucher->code, '{firstname}' => $this->context->customer->firstname, '{lastname}' => $this->context->customer->lastname, '{id_order}' => $order->reference, '{order_name}' => $order->getUniqReference() ); I use $params['firstname'] for showing customer firstname and get nothing. I insert

add my css to theme in prestashop

你离开我真会死。 提交于 2019-12-12 18:22:29
问题 I'm new in prestashop. I created my css file and want to add it to prestashop theme. How can i add the new fill and make prestashop read the file in the header section? In forums i see that they said to add it to hookheader , i tried to add it to some module and do the following: 1) add to the theme header file {hook h="myCssHook"} 2) add to some rendom module function: public function myCsshook(&params) { $this->context->controller->addCSS(($this->_path).'prestashop/myshop/theme/css