Jump to content

Search the Community

Showing results for tags 'custom module'.

  • Search By Tags

    • custom module ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


  1. <?php use Symfony\Component\HttpFoundation\JsonResponse; class ReaddToCartModuleFrontController extends ModuleFrontController { public $ajax = true; public function initContent() { parent::initContent(); $productId = Tools::getValue('id_product'); $quan...
  2. Hi, Do you have nay idea how to create different registration form for each multistore shop? What happend... ? I have a Prestashop with multistore feature active. Both shops are different and I need custom registration for each of them. Each registration page will contain...
  3. I've create a parent tab and 3 child tabs on my module with controllers for every tab. But when I click to a tab appears an error: Warning: Attempt to read property "smarty" on null. it seems that context is null This is my install function: public function install() {...
  4. I'm trying to add a customer to a group but it doesn't work, I have tried these two things obviously separately, but doesn't do nothing $customer->updateGroup([4]); $customer->addGroups([4]);
  5. for the first time, i work on existent custom modules developed by old web developer on prestashop 1.6. My problem is about a custom module used to manage status for new publications. I work on two controllers class in /controller/admin who manage two admin views. I have done some modifications...
  6. I add the product to cart from my custom module by using the following code. It's working. My Javascript file var pid = $('#product_id').val(); $.ajax({ url : url+'&action=savecustomdataAction', type : "POST", data : { customdata : customdata, qty : 1, pid : pid }, success : fun...
  7. Hello community, I'm trying to create a custom module, which creates a new text field in the product's edit-page and then get that information on the frontend. This is my current state: https://github.com/sebastian-marinescu/pconconfiguratorurl I initially forked: https://github.com/Pul...
  8. Hey guys! I just created a module and it works fine, but as soon as i turn on the debug mode following errors show up: Notice in Zeile 801 der Datei /Applications/MAMP/htdocs/var/cache/dev/smarty/compile/db/56/74/db567485f5fc1b76e32f03a400289021d1354998_0.file.form.tpl.php [8] Undefined ind...
  9. Good day, I am trying to create a custom module. Mainly by modifying the standard Prestashop custom textbox module. Now the installing went just fine. And it even works front-end wise. But the back-end does not work. I cannot save the made changes. It keeps nagging about "...
  10. Hi, I created a module and I want to override an admin controller from an existing module. I created the override folder using the path modules/mymodule/override/modules/marketplace/controllers/admin/AdminSellerProductDetailController.php following https://devdocs.prestashop.com/1.7/modules/con...
  11. Hello, I've got an issue that I'm trying to solve for several hours now and I'm no closer to figuring it out than when I started. I've created a custom module to add additional product field to product page in BO and subsequently show it on product page at front office. The module adds a column...
  12. AdminParentMyCustomModuleHi! I in my module create two links in tab menu: private function installTab(Module $module): bool { $tabId = (int) Tab::getIdFromClassName('AdminParentMyCustomModule'); if (!$tabId) { $tab = new Tab(); $tab->active = 1;...
  13. Hi , I developed a module on prestashop 1.7, the file back.js is not called . I added it through the function addJS at the level hookBackOfficeHeader but it doesn't work . public function hookBackOfficeHeader() { if (Tools::getValue('module_name') == $this->name) {...
  14. Hi all, I am looking for someone to create a PrestaShop module and I am willing to pay £50. I think this is a fair price as I am experienced with PHP / SQL myself, the only issue for me to not make it myself is I cannot figure out PrestaShop's module/api, and I no longer code regularly s...
  15. Hello all, I'm struggling with the validation of a configuration form for a custom module, I'm trying to keep the code as neat as possible. I use the helperform class to generate the form, I added the required => true, but a novalidate attribute on the <form> make it useless (apart from disp...
  16. Cześć, chcałbym się dopytać co robię źle. Utworzyłem moduł i w funkcji getContent() chciałem wyświetlić produkty które mają przecenę , do tego użyłem $products = Product::getPricesDrop((int)$this->context->language->id, 0, 10); Problem polega na tym ze dostaje komunikat Notice w linii 2376 w...
  17. Hi All, I call this hook from a custom module and it's not executed when I add a product. ActionProductSave is OK and also ActionProductUpdate, but Add is not OK. I saw the bug is reported here: http://forge.prestashop.com/browse/BOOM-5337 But I don't find any solution... C...
  18. Hi, I'm writing a custom module in Prestashop 1.7.5.2 and need to have a form. I've created a separate tab for my module and on the new page I have a table. When I want to add a new record I have a form and it shows correctly. Unfortunately, when I submit filled/blank form I get an error: access to...
  19. Bonjour à tous, Dans un module perso j'ai besoin que l'admin puisse saisir une date grâce à un datePicker Donc mon helper : array( 'type' => 'date', 'label' => 'Date de début', 'name' => 'date_debut', 'required' => true, 'col' => 4 ), A l'affi...
  20. Hello, i am searching but with no luck, some kind of documentation on creating my own cronjobs for my custom module. That is to say, i want to run periodically a function which i have built up in a custom module. What should i do in my module's code to create this functionality ?
  21. ¡Hola a todos! Primero que todo, gracias por el espacio, mi nombre es Juan Pablo, y requiero un poco de ayuda con un modulo de método de pago que estoy desarrollando, actualmente estoy trabajando en un modulo para la versión 1.7, para la versión 1.6 tenemos uno desarrollado hace un tiempo que fun...
  22. ¡Hola a todos! Primero que todo, gracias por el espacio, mi nombre es Juan Pablo, y requiero un poco de ayuda con un modulo de método de pago que estoy desarrollando, actualmente estoy trabajando en un modulo para la versión 1.7, para la versión 1.6 tenemos uno desarrollado hace un tiempo que fun...
  23. Hi everybody, In my __construct() I have this request: $this->_select = 'a.*, DATE(a.dlc) AS dlc, pl.name AS pname'; $this->_join = ' INNER JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = a.`id_product` AND pl.`id_lang` = '.(int)$this->context->language->id.')'; $this->...
  24. Hi Everybody, I Built a small BO module which has to allow of updater some tables when the admin modifies or adds a product. In this particular case when a product crosses it dematerialized, it is necessary to put fields minimal_quantity in 0 and available_for_order to 1 (because PS does not do...
×
×
  • Create New...