Jump to content

ms_hassan

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by ms_hassan

  1. 1. I suppose you are using a module for loyalty points. In that module you will have to add script for hook header and hooks for checkout page in core file. That script will just show the points as you want them.
  2. In your php file you can write following and pass it to tpl. {file_name}.php $this->context->smarty->assign(array( 'is_mobile' => Context::getContext()->isMobile(), 'device_type' => Context::getContext()->getDevice(), )); ---------------------------------------------------- In your tpl file you can use it like this. {file_name}.tpl {if isset($is_mobile) && $is_mobile == 1} <div class="for_mobile">MOBILE</div> {else} <div class="for_other_devices">---</div> {/if} NOTE: getDevice() returns 1,2,4 for device types const DEVICE_COMPUTER = 1; const DEVICE_TABLET = 2; const DEVICE_MOBILE = 4;
  3. I found the answer, you SHOULDN'T delete it. https://build.prestashop.com/news/critical-security-vulnerability-in-prestashop-modules/
  4. there is a "PhpUnit" folder in "/prestashop/vendor/symfony/symfony/src/Symfony/Bridge/" is it safe ?
×
×
  • Create New...