Jump to content

SergMi

Members
  • Posts

    11
  • Joined

  • Last visited

About SergMi

  • Birthday 07/31/1984

Profile Information

  • First Name
    Sergej
  • Last Name
    Mishnev

Recent Profile Visitors

161 profile views

SergMi's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yes, okay. Thank you for your reply.
  2. Thank you for your reply . to do it, need create template in child theme, i do not want do it, in child theme just create theme.yml and preview.png and nothing more. If do what you wrote main theme not load this files. Need that to good work main theme and child.
  3. Hello Thank you for your reply. No, this files not loaded automatically from parent theme.
  4. Hello, I have problems with child theme, namely in main theme i connect two css file in template stylesheets.tpl, like this <link rel="stylesheet" href="{$urls.css_url}responsive.css" type="text/css" media="{$stylesheet.media}"> <link rel="stylesheet" href="{$urls.css_url}fontello/css/fontello.css" type="text/css" media="{$stylesheet.media}"> After, when i create child theme via https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/parent-child-feature/ Files responsive.css and fontello.css don't pull up from main theme, and try load from child theme. Why it happend, how to make so that these files are loaded from the main theme?
  5. Sorry, but I'm a novice developer, could you please explain in more detail what needs to be done. Thank you in advance
  6. Yes, of course this line used for module "Compare" This used for action add, remove or remove all products Example of use function with "header' public function processRemoveAll() { header('Content-Type: application/json'); $productsIds = array(); $productsIds = Tools::jsonEncode($productsIds, true); $this->context->cookie->__set('brilliantCompare', $productsIds); $this->ajaxDie(Tools::jsonEncode(array( 'success' => true, 'data' => [ 'message' => $this->module->l('All products removed','actions'), 'type' => 'removedAll', 'view' => $this->module->l('View compare','actions') ] ))); }
  7. Hello, In my module i use next code header('Content-Type: application/json'); Received the following comment from prestashop team The use of function header() is forbidden; use Tools::redirect() or Tools::redirectLink() instead header('Content-Type: application/json'); Tell me how to properly replace this line on Tools::redirect() Thank you in advance
×
×
  • Create New...