Monday, January 29, 2018

Delete this part from public_html/app/etc/local.xml file

 'cache' =>  
  array (  
   'frontend' =>  
   array (  
    'default' =>  
    array (  
     'backend' => 'Cm_Cache_Backend_Redis',  
     'backend_options' =>  
     array (  
      'server' => '127.0.0.1',  
      'port' => '6379',  
      'persistent' => '',  
      'database' => '0',  
      'password' => '',  
      'force_standalone' => '0',  
      'connect_retries' => '1',  
      'read_timeout' => '10',  
      'automatic_cleaning_factor' => '0',  
      'compress_data' => '1',  
      'compress_tags' => '1',  
      'compress_threshold' => '20480',  
      'compression_lib' => 'gzip',  
      'use_lua' => '0',  
     ),  
    ),  
    'page_cache' =>  
    array (  
     'backend' => 'Cm_Cache_Backend_Redis',  
     'backend_options' =>  
     array (  
      'server' => '127.0.0.1',  
      'port' => '6379',  
      'persistent' => '',  
      'database' => '1',  
      'password' => '',  
      'force_standalone' => '0',  
      'connect_retries' => '1',  
      'lifetimelimit' => '57600',  
      'compress_data' => '0',  
      'compress_tgs' => '1',  
      'compress_threshold' => '20480',  
      'compression_lib' => 'gzip'  
      'automatic_cleaning_factor' => '0',  
     ),  
    ),  
   ),  
  ),  

Sunday, January 28, 2018

Installing:

https://github.com/fernandofauth/magento2_datetime

Simply paste the FernandoFauth folder on (magento root)/app/code

After installing the module upgrade your store.

bin/magento setup:upgrade

Check if your cache is clean.

If using production mode, you need recomplie the store code.

Follow this steps
bin/magento setup:upgrade

bin/magento indexer:reindex

bin/magento deploy:mode:set production -s

bin/magento setup:di:compile

bin/magento setup:static-content:deploy (lang_code) [ ex: bin/magento setup:static-content:deploy pt_BR]

Other thing you can do is check your folder permissions.

Try this in design/frontend/Vendor_Name/Theme_Name/Magento_Catalog/templates/product/list.phtml

 $regprice = $_product->getPrice();  
 $specialprice = $_product->getSpecialPrice();  
 $yousave = number_format((float)($regprice - $specialprice), 2, '.', '');  
 $yousavepct = number_format((float)(100*(($regprice - $specialprice)/$regprice)), 0);  
 if($yousave > 0): ?>  
   <p class="you-save-statement">You save: $<?php echo $yousave; ?> (<?php echo $yousavepct; ?>%)</p>  
 <?php endif; ?>