You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello i used your solution for resolve my issue but in listing product name and price and orders in not display only product id is displayed actully i directly update the below code in vendor location not create a code folder inside app folder $items = $this->getItems();
$productIds = [];
foreach ($items as $item) {
$productIds[] = $item->getProductId();
}
$productData = $this->getProductData($productIds);
$orderData = $this->getOrdersData($productIds);
$existing = $this->productResource->getAllIds();
foreach ($items as $item) {
if(in_array($item->getProductId(),$existing)){
continue;
}
$item->setId($item->getProductId());
$item->setPrice($productData[$item->getProductId()]['price'] * $item->getBaseToGlobalRate());
$item->setName($productData[$item->getProductId()]['name']);
$item->setOrders(0);
if (isset($orderData[$item->getProductId()])) {
$item->setOrders($orderData[$item->getProductId()]['orders']);
}
}
The text was updated successfully, but these errors were encountered:
hello i used your solution for resolve my issue but in listing product name and price and orders in not display only product id is displayed actully i directly update the below code in vendor location not create a code folder inside app folder $items = $this->getItems();
$productIds = [];
foreach ($items as $item) {
$productIds[] = $item->getProductId();
}
$productData = $this->getProductData($productIds);
$orderData = $this->getOrdersData($productIds);
$existing = $this->productResource->getAllIds();
foreach ($items as $item) {
if(in_array($item->getProductId(),$existing)){
continue;
}
$item->setId($item->getProductId());
$item->setPrice($productData[$item->getProductId()]['price'] * $item->getBaseToGlobalRate());
$item->setName($productData[$item->getProductId()]['name']);
$item->setOrders(0);
if (isset($orderData[$item->getProductId()])) {
$item->setOrders($orderData[$item->getProductId()]['orders']);
}
}
The text was updated successfully, but these errors were encountered: