V8x Danea Import edit for me version 2.5.0

cyberhack

Well-known member
Diamond
Elite
Joined
Apr 16, 2019
Messages
271
Reaction score
415
Points
63
NullCash
2,304
danea-logo.png


Hi this module edited for me debug for chat GPT 4o ;)

SET ONLY PHP 8.0 (TESTED FOR PHP 8.0) INSTALL MODULE daneaimport.zip FOR PRESTASHOP 8.1.X

I REPEAT! TESTED FOR PRESTASHOP 8.1.x and PHP 8.0


1) FOR PRODUCT PROBLEM line 391: /public_html/prestashop/src/Adapter/Product/QueryHandler/GetProductForEditingHandler.php

Replace this code or replace file:

private function getDetails(Product $product): ProductDetails
{
$isbn = $product->isbn !== null ? $product->isbn : 'Valore predefinito';
$upc = $product->upc !== null ? $product->upc : 'Valore predefinito';
$ean13 = $product->ean13 !== null ? $product->ean13 : 'Valore predefinito';
$mpn = $product->mpn !== null ? $product->mpn : 'Valore predefinito';
$reference = $product->reference !== null ? $product->reference : 'Valore predefinito';

return new ProductDetails($isbn, $upc, $ean13, $mpn, $reference);
}

2) FOR CATEGORY PROBLEM Line 71 : /public_html/prestashop/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php

Replace this code or replace file:

protected function modifyRecords(array $records): array
{
foreach ($records as $key => $record) {
if (is_string($record['description'])) {
$records[$key]['description'] = mb_substr(strip_tags(stripslashes($record['description'])), 0, self::DESCRIPTION_MAX_LENGTH);
}
}

return $records;
}
}

Enjoy Merry Christmas and Thank you for all! :cool:
Post automatically merged:

I'm working on the new release 2.5.1 which solves numerous bug fixes. I'll publish it on the forum soon, thanks for your patience.
 

Attachments

  • Daneaimport for prestashop 8.1.x and PHP 8.0.zip
    55.7 KB · Views: 2
Last edited:

rcpislr

Member
XNullUser
Joined
Dec 27, 2020
Messages
237
Reaction score
0
Points
16
NullCash
0
thankks for sharing this great module. will try it soon
 

cyberhack

Well-known member
Diamond
Elite
Joined
Apr 16, 2019
Messages
271
Reaction score
415
Points
63
NullCash
2,304
hello new version 2.6.0 for php 8.0 Prestashop 8.1.x I fixed many problems now it seems stable.
Post automatically merged:

New version 2.6.1 bug fix minor :) for prestashop 8.1.x and PHP 8.0 see faq istruction.
 

Attachments

  • daneaimport.zip
    50.3 KB · Views: 0
  • Daneaimport_2.6.1_PHP_8.0.zip
    48.2 KB · Views: 0
Last edited:

cyberhack

Well-known member
Diamond
Elite
Joined
Apr 16, 2019
Messages
271
Reaction score
415
Points
63
NullCash
2,304
DEBUG VERSION FOR PHP 8.1 bug fix minor :) for prestashop 8.1.x and PHP 8.1 see faq istruction.
Post automatically merged:

Daneaimport_2.6.1_PHP_8.1 it has also been tested on prestashop 8.2.x and does not need any changes written in the FAQ you can always install and use PHP 8.0 or 8.1
Post automatically merged:

This version is very important because from a debug button where in case you accidentally delete the products in the prestashop by setting this option the danea easy fatt will not give you an error, first try to install only the module and see if it works, set it,
to avoid deleting from danea, deactivate the product but do not delete it, it is very important.
 

Attachments

  • Daneaimport_2.6.1_PHP_8.1.zip
    49.4 KB · Views: 2
  • Daneaimpor_2.6.2_debug_edition.zip
    97.4 KB · Views: 4
Last edited:

hxcode

Well-known member
Master
Diamond
Elite
Joined
Aug 16, 2020
Messages
3,561
Reaction score
428
Points
83
NullCash
77
Thank you very much for sharing this module.
Post automatically merged:

Thank you very much for sharing this module.
 
Top