FOR CATEGORY PROBLEM :FOR PRESTASHOP 8.X.X
Update quantity e location INSERIT QUERY IN YOUR SQL:
ALTER TABLE ps_product_attribute ADD COLUMN quantity INT;
ALTER TABLE ps_product_attribute ADD COLUMN location INT;
PRESTASHOP 1.7.8.X
Update quantity e location INSERIT QUERY IN YOUR SQL:
ALTER TABLE ps_product_attribute MODIFY location VARCHAR(255) DEFAULT NULL;
PHP 7.4 not function in PHP 8
Post automatically merged:
for prestashop 8 :
line 391: /public_html/prestashop/src/Adapter/Product/QueryHandler/GetProductForEditingHandler.php
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);
}
/public_html/prestashop/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php
Line 71 replace this code :
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:ESCRIPTION_MAX_LENGTH);
}
}
return $records;
}
}
This code Debug for prestashop 8.1.3
Post automatically merged:
Update module for prestashop 8.1.3 see the guide thanks for all!
Post automatically merged:
Post complete faq for prestashop 1.7.6.x - 1.7.7.x - 1.7.8.x - 8.1.3 download "Daneaimport for prestashop 8.1.3" ;-)
Attachments
Last edited: