Prestashop – Argument 4 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderCustomerForViewing::__construct()

Argument 4 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderCustomerForViewing::__construct() must be of the type string, null given, called in /home/……/……/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php on line 236  

  Source : https://github.com/PrestaShop/PrestaShop/issues/22215  

Prestashop – Bigger Products Images on Order

I case someone it’s interested to do this on PS1.7.7… you have to look at file: /src/Adapter/Order/QueryHandler/GetOrderProductsForViewingHandler.php Search for ImageManager::thumbnail and replace with the desidered value (the value it’s the size of the thumbnail in pixel). This should be these two lines: $product[‘image_tag’] = ImageManager::thumbnail(_PS_IMG_DIR_ . ‘p/’ . $product[‘image’]->getExistingImgPath() . Lire la suite…