Jump to content

/rai

Members
  • Posts

    40
  • Joined

  • Last visited

Profile Information

  • First Name
    rai
  • Last Name
    mare

/rai's Achievements

Newbie

Newbie (1/14)

2

Reputation

9

Community Answers

  1. on top page pastle this: <?php error_reporting(0); $old_error_handler = set_error_handler("userErrorHandler"); function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) { $time=date("d M Y H:i:s"); // Get the error type from the error number $errortype = array (1 => "Error", 2 => "Warning", 4 => "Parsing Error", 8 => "Notice", 16 => "Core Error", 32 => "Core Warning", 64 => "Compile Error", 128 => "Compile Warning", 256 => "User Error", 512 => "User Warning", 1024 => "User Notice"); $errlevel=$errortype[$errno]; //Write error to log file (CSV format) $errfile=fopen("errors.csv","a"); fputs($errfile,"\"$time\",\"$filename: $linenum\",\"($errlevel) $errmsg\"\r\n"); fclose($errfile); if($errno!=2 && $errno!=8) { //Terminate script if fatal error die("A fatal error has occurred. Script execution has been aborted"); } } ?>
  2. How can i catch the errors of these functions. When running on the backend you can see if something fails but since php I do not know how I can catch those error messages or that the operation has been a success. function loadProductsPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'productos.csv', 'forceIDs' => '0', 'match_ref' => '1', 'convert' => '', 'entity' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'iso_lang' => 'es', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'category', 1 => 'name', 2 => 'description_short', 3 => 'reference', 4 => 'ean13', 5 => 'weight', 6 => 'wholesale_price', 7 => 'price_tex', 8 => 'ecotax', 9 => 'manufacturer', 10 => 'image', ), ); } $import = New AdminImportController(); loadProductsPost(); $import->productImport(); //______________________________________CATEGORIAS function loadCategoriesPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'categorias.csv', 'forceIDs' => '1', 'convert' => '', 'entity' => '0', 'separator' => ';', 'multiple_value_separator' => ',', 'iso_lang' => 'es', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'parent', 4 => 'is_root_category', 5 => 'description', 6 => 'meta_title', 7 => 'meta_keywords', 8 => 'meta_description', 9 => 'link_rewrite', 10 => 'image', ), ); } $import = New AdminImportController(); loadCategoriesPost(); $import->categoryImport();
  3. The error is this Notice on line 1 en archivo tools/smarty/sysplugins/smarty_internal_compile_capture.php [8] Undefined index: pfb94
  4. I have this error any solution? Notice: Undefined index: pfb94 in /home/silvercarshop/htdocs/tienda/tools/smarty/sysplugins/smarty_internal_compile_capture.php on line 1 I have _PS_MODE_DEV_ true
  5. By seems to be a bug that mozilla, blocks the location tracking. But I in prestashop I have deactivated the geolocation option.
  6. In chrome and operates from pc you can see VAT. And from the phone I can see VAT in firefox and chrome. But since firefox pc all products come without VAT, it is serious failure. prestashop 1.6.1..1 firefox 50.1.0
  7. https://www.prestashop.com/forums/topic/301879-module-elevatezoom-for-prestashop-zoom-and-magnifier-effects-on-images/
  8. https://www.prestashop.com/forums/topic/301879-module-elevatezoom-for-prestashop-zoom-and-magnifier-effects-on-images/
  9. I'm trying to zoom in on an image of a product on the phone, but it does not work. Prestashop uses fancybox. Any idea how to activate zoom in fancybox? I have tried the JqZoom but it is not what I am looking for.
  10. yo uso fancybox, pero el problema es en el móvil, no deja hacer la imagen mas grande.
  11. in #subcategories ul li category.css Modifies width
  12. want to see two columns of the sub-categories on my mobile device, I have edited the product_list.tpl to pull out two product columns but with subcategories not working. Any idea what is the .tpl that affects the sub-categories? I just have to change the xs-12 for an xs-6
  13. I am looking for a prestashop device that looks like this page on my mobile: https://geek.wish.com/ I've been looking but I can not find ...
×
×
  • Create New...