/** * @param jigoshop_order $order * @param bool $show_links * @param bool $show_sku * @param bool $includes_tax * @return string */ function jigoshop_get_order_items_table($order, $show_links = false, $show_sku = false, $includes_tax = false) { if (\Jigoshop_Base::get_options()->get('jigoshop_enable_html_emails', 'no') == 'no') { return $order->email_order_items_list($show_links, $show_sku, $includes_tax); } $use_inc_tax = $includes_tax; if ($use_inc_tax) { foreach ($order->items as $item) { $use_inc_tax = $item['cost_inc_tax'] >= 0; if (!$use_inc_tax) { break; } } } $path = locate_template(array('jigoshop/emails/items.php')); if (empty($path)) { $path = JIGOSHOP_DIR . '/templates/emails/items.php'; } ob_start(); include $path; return ob_get_clean(); }