Jump to content

webprog

Members
  • Posts

    356
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Kiev
  • Interests
    Prestashop development & support - https://webproggi.com/en/prestashop-development
  • Activity
    Freelancer

Recent Profile Visitors

7,505,526 profile views

webprog's Achievements

  1. Try: {l s='You pay for the merchandise upon pickup' mod='cashonpickup'}
  2. For proper functioning, the controller must return the return values. Try this link: http://localhost:8081/admin985hli9ksojm6m5owdr/index.php?controller=AdminYourCustom&token=8c99384214334d3313e19be1bc689148 without vars and corrected link to controller.
  3. I don't use vendor folder. So, when you enter this link: http://localhost:8081/admin985hli9ksojm6m5owdr/index.php?controller=AdminYourCustomController&action=synchronizeToPrestaShop&token=8c99384214334d3313e19be1bc689148&ajax=true&id_lang=1 You can see the Return values from your controller, right?
  4. Check that your controller is in yourmodule\controllers\admin folder Name - AdminYourModule.php And have code like this: if (!defined('_PS_VERSION_')) { exit; } class AdminYourModuleController extends ModuleAdminController { public function initContent() { parent::initContent(); .... } }
  5. As I understand, you have working link now. Use it for ajax method in javascript. Also create methods in your admin controller.
  6. Link in old form: $this->context->link->getAdminLink('AdminYourModuleName') . '&ajax=true&id_lang=' . $id_lang
  7. Yes, you need to add tab in installation function like this: // add admin cotroller support if (!$this->existsTab($this->tab_class)) { if (!$this->addTab($this->tab_class, -1)) { return false; } } // #add admin cotroller support public function existsTab($tab_class) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT id_tab AS id FROM `' . _DB_PREFIX_ . 'tab` t WHERE LOWER(t.`class_name`) = \'' . pSQL($tab_class) . '\''); if (count($result) == 0) { return false; } return true; } where $tab_class = 'AdminYourModuleName'; private function addTab($tab_class, $id_parent) { $tab = new Tab(); $tab->class_name = $tab_class; $tab->id_parent = $id_parent; $tab->module = $this->tab_module; $tab->name[(int) Configuration::get('PS_LANG_DEFAULT')] = $this->l('Any simple name for module'); $tab->add(); return true; }
  8. You can log in using different accounts. You can look and edit linked themes in ps_employee table.
  9. ok, open your backoffice, press ctrl+shift+i - browser developer mode. And you will see the path to your .css file.
  10. There is no custom.css in prestashop 8.2. Try theme.css in \admin\themes\default\public But, better to unminimized it for comfortable use.
  11. Hello, there is no field NOTE in table ORDERS in early prestashop 1.7 versions. The NOTE field have appeared in later prestashop 1.7 versions. Then, you can try this code: if (!empty($message) && Validate::isCleanHtml($message)) { // Retrieve the last created order for the current cart $order = Order::getByCartId((int)$id_cart); if ($order) { // Sanitize the message $cleanMessage = strip_tags($message, '<br>'); // Update the note field in the orders table Db::getInstance()->update( 'orders', ['note' => pSQL($cleanMessage)], 'id_order = ' . (int)$order->id ); } }
  12. In multishop - the default page - is dashboard with all this information. But, also, you can customize page which will be displayed just after login in account settings:
  13. According to reports, your module ps_accounts is outdated
×
×
  • Create New...