paynl / prestashop-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with update v3.6.4 showing only ID's in admin paynl product description

coMegaWebMaster opened this issue · comments

Hi, I do not why this should be only for NOTYD, but after the update I only see ID's no more product names. I update the code to this so that it is always adding the attribute ID and name correctly + it has the reference:
/modules/paynl_paymentmethods/controllers/front/payment.php
Line 36 took out the
public $addedProductIds = array();

Line 169 changed it to this
/** * @var $cart CartCore */ $products = $cart->getProducts(); foreach ($products as $product) { $taxClass = Pay_Helper::calculateTaxClass($product['price_wt'], $product['price_wt'] - $product['price']); $taxPercentage = $this->calculateTaxPercentage($product['price_wt'], $product['price']); $apiStart->addProduct($product['id_product'] . '_' . $product['id_product_attribute'], $product['reference'] . '_' . $product['name'], round($product['price_wt'] * 100), $product['cart_quantity'], $taxClass, $taxPercentage); }