how to print array to csv in standalone script

hi am trying to put my array data to csv in magento 1.9 where i fetching all the order details using standalone script my php script <?php require_once ‘app/Mage.php’; Mage::app(); Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID); $orderCollection = Mage::getModel(‘sales/order’)->getCollection(); foreach ($orderCollection as $order) { $orders[‘orders’][] = array( ‘id’ => $order->getIncrementId(), ‘store’ => ‘magento’, ‘status’ => $order->getStatus(), ‘name’ => $order->getCustomerName(), ’email’…

Details

How to show tier price in Magento 2 catalog listing page

Tier price is working fine on the product page, but when we try to show on the listing page then it’s not working. <?php /* @escapeNotVerified */ echo ($block->getShowDetailedPrice() !== false) ? __( ‘Buy %1 for %2 each and <strong class=”benefit”>save<span class=”percent tier-%3″>&nbsp;%4</span>%</strong>’, $price[‘price_qty’], $priceAmountBlock, $index, $tierPriceModel->getSavePercent($price[‘price’]) ) : __(‘Buy %1 for %2 each’, $price[‘price_qty’],…

Details