• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_display_tax_value函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tep_display_tax_value函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_display_tax_value函数的具体用法?PHP tep_display_tax_value怎么用?PHP tep_display_tax_value使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了tep_display_tax_value函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: foreach

            foreach ($products['attributes'] as $attributes) {
                echo '<br><nobr><small>&nbsp;<i> - ' . $attributes['option'] . ': ' . $attributes['value'];
                if ($attributes['price'] != '0') {
                    echo ' (' . $attributes['prefix'] . $osC_Currencies->format($attributes['price'] * $products['quantity'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . ')';
                }
                echo '</i></small></nobr>';
            }
        }
        ?>
      </td>
      <td class="dataTableContent" valign="top"><?php 
        echo $products['model'];
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo tep_display_tax_value($products['tax']) . '%';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format($products['final_price'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format(tep_add_tax($products['final_price'], $products['tax']), $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
        echo '<b>' . $osC_Currencies->format($products['final_price'] * $products['quantity'], $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b>';
        ?>
</td>
      <td class="dataTableContent" valign="top" align="right"><?php 
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:orders_edit.php


示例2: tep_display_tax_value

            for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
                echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
                if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                    echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
                }
                echo '</i></small></nobr>';
            }
        }
        // BOF: Attributes Product Codes - If product code exists, use it, else default to product model.
        echo '            </td>' . "\n";
        if (tep_not_null($order->products[$i]['code'])) {
            echo '            <td class="dataTableContent" valign="top">' . $order->products[$i]['code'] . '</td>' . "\n";
        } else {
            echo '            <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
        }
        echo '            <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], 0, 1, $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], 1, $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], 0, $order->products[$i]['qty'], $order->info['currency']) . '</b></td>' . "\n" . '            <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'], $order->info['currency']) . '</b></td>' . "\n";
        echo '          </tr>' . "\n";
    }
    ?>
          <tr>
            <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
        echo '              <tr>' . "\n" . '                <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . '                <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . '              </tr>' . "\n";
    }
    ?>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:orders.php


示例3: tep_check_stock

$products = $order->products;
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    if (STOCK_CHECK == 'true') {
        $products[$i]['stock'] = tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
        //  echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        $attr[$i] = $order->products[$i]['attributes'];
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            $xoopsTpl->assign("attribs", 1);
        }
    }
    $taxgroups = $order->info['tax_groups'];
    if (sizeof($order->info['tax_groups']) > 1) {
        $products[$i]['stax'] = 1;
        $products[$i]['taxd'] = tep_display_tax_value($order->products[$i]['tax']);
    }
    $products[$i]['final_price'] = $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
}
$xoopsTpl->assign("fcpa_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$xoopsTpl->assign("bad", tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'));
$xoopsTpl->assign("fcp_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
$xoopsTpl->assign("cos_link", tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$xoopsTpl->assign("omt", $order->info['payment_method']);
if (MODULE_ORDER_TOTAL_INSTALLED) {
    $xoopsTpl->assign("mot", 1);
    $order_total_modules->process();
    $xoopsTpl->assign("motc", $order_total_modules->output());
}
if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:checkout_confirmation.php


示例4: foreach

</td>
      </tr>
<?php 
foreach ($osC_Order->getProducts() as $product) {
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $product['quantity'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $product['name'];
    if (isset($product['attributes']) && sizeof($product['attributes']) > 0) {
        foreach ($product['attributes'] as $attribute) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $attribute['option'] . ': ' . $attribute['value'];
            if ($attribute['price'] != '0') {
                echo ' (' . $attribute['prefix'] . $osC_Currencies->format($attribute['price'] * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '        </td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $product['model'] . '</td>' . "\n";
    echo '        <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($product['tax']) . '%</td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format($product['final_price'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format(tep_add_tax($product['final_price'], $product['tax']), true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format($product['final_price'] * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $osC_Currencies->format(tep_add_tax($product['final_price'], $product['tax']) * $product['quantity'], true, $osC_Order->getCurrency(), $osC_Order->getCurrencyValue()) . '</b></td>' . "\n";
    echo '      </tr>' . "\n";
}
?>
      <tr>
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
foreach ($osC_Order->getTotals() as $total) {
    echo '          <tr>' . "\n" . '            <td align="right" class="smallText">' . $total['title'] . '</td>' . "\n" . '            <td align="right" class="smallText">' . $total['text'] . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:invoice.php


示例5: array

    $index = 0;
    $order->products = array();
    $orders_products_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int) $oID . "'");
    while ($orders_products = tep_db_fetch_array($orders_products_query)) {
        $manufacturer_string = $orders_products['manufacturers_name'];
        if ($orders_products['products_year'] > 0) {
            $manufacturer_string .= (tep_not_null($manufacturer_string) ? ', ' : '') . $orders_products['products_year'];
        }
        $order->products[$index] = array('id' => $orders_products['products_id'], 'qty' => $orders_products['products_quantity'], 'name' => str_replace("'", "&#039;", stripslashes($orders_products['products_name'])), 'manufacturer' => $manufacturer_string, 'model' => $orders_products['products_model'], 'code' => $orders_products['products_code'], 'weight' => $orders_products['products_weight'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'orders_products_id' => $orders_products['orders_products_id']);
        $index++;
    }
    for ($i = 0, $total_weight = 0, $subtotal_sum = 0; $i < sizeof($order->products); $i++) {
        $RowStyle = "dataTableContent";
        $products_price = tep_round($order->products[$i]['price'] * $order->info['currency_value'], $currencies->currencies[$order->info['currency']]['decimal_places']);
        $final_price = $order->products[$i]['final_price'] * $order->products[$i]['qty'];
        echo '		  <tr class="dataTableRow" align="center">' . "\n" . '			<td class="dataTableContent" align="left">' . ($i + 1) . '.&nbsp;<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '" target="_blank"><u>' . $order->products[$i]['name'] . '</u></a></td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['manufacturer'] . '</td>' . "\n" . '			<td class="dataTableContent" nowrap="nowrap">' . $order->products[$i]['model'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['code'] . '</td>' . "\n" . '			<td class="dataTableContent">' . $order->products[$i]['weight'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][qty]', $order->products[$i]['qty'], 'size="2" style="text-align: center;"') . '</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->currencies[$order->info['currency']]['symbol_left'] . tep_draw_input_field('update_products[' . $order->products[$i]['orders_products_id'] . '][price]', (string) $products_price, 'size="6" style="text-align: right;"') . $currencies->currencies[$order->info['currency']]['symbol_right'] . '</td>' . "\n" . '			<td class="dataTableContent" align="center">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '			<td class="dataTableContent" align="right">' . $currencies->format($final_price, true, $order->info['currency'], $order->info['currency_value']) . ($order->info['currency'] != DEFAULT_CURRENCY ? ' (' . $currencies->format($final_price) . ')' : '') . '</td>' . "\n" . '		  </tr>' . "\n";
        $total_weight += $order->products[$i]['weight'] * $order->products[$i]['qty'];
        $subtotal_sum += round($final_price, $currencies->get_decimal_places(DEFAULT_CURRENCY));
    }
    ?>
		</table>
<!-- End Products Listings Block -->
<!-- Begin Order Total Block -->
		<table border="0" cellspacing="0" cellpadding="2" width="100%">
		  <tr>
			<td valign="bottom"><a href="<?php 
    echo tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . '&action=add_products');
    ?>
"><u><strong><font size="3"><?php 
    echo TEXT_DATE_ORDER_ADDNEW;
    ?>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:orders.php


示例6: tep_display_tax_value

    }
    ?>
                <td class="dataTableContent"><?php 
    echo $rates['tax_priority'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $rates['tax_class_title'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $rates['geo_zone_name'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo tep_display_tax_value($rates['tax_rate']);
    ?>
%</td>
                <td class="dataTableContent" align="right"><?php 
    if (isset($trInfo) && is_object($trInfo) && $rates['tax_rates_id'] == $trInfo->tax_rates_id) {
        echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
    } else {
        echo '<a href="' . tep_href_link(FILENAME_TAX_RATES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $rates['tax_rates_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
}
?>
              <tr>
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:tax_rates.php


示例7: tep_display_tax_value

</td>
      </tr>
<?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '        </td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
    echo '        <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
    echo '      </tr>' . "\n";
}
?>
      <tr>
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
开发者ID:pcchynoweth,项目名称:oscommerce2,代码行数:31,代码来源:invoice.php


示例8: tep_db_fetch_array

    $product_info = tep_db_fetch_array($product_info_query);
    $periodicity_array = array();
    $periodicity_array['3'] = TEXT_SUBSCRIBE_TO_3_MONTHES;
    $periodicity_array[$product_info['products_periodicity'] / 2] = TEXT_SUBSCRIBE_TO_HALF_A_YEAR;
    $periodicity_array[$product_info['products_periodicity']] = TEXT_SUBSCRIBE_TO_YEAR;
    $products_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>';
    if ($product_info['products_types_id'] == '2') {
        $products_name .= ' (' . TEXT_SUBSCRIBE_TO . ' ' . $periodicity_array[$order->products[$i]['qty']] . ')';
    }
    echo '	  <tr valign="top">' . "\n" . '		<td width="95%">' . $order->products[$i]['qty'] . '&nbsp;x&nbsp;' . $products_name;
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    echo '</td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '		<td class="main" nowrap="nowrap" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '		<td align="right" nowrap="nowrap">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . '	  </tr>' . "\n";
}
?>
	</table>
<?php 
if (MODULE_ORDER_TOTAL_INSTALLED) {
    ?>
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php 
    $order_total_modules->process();
    echo $order_total_modules->output();
    ?>
	</table>
<?php 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:checkout_confirmation.php


示例9: tep_currency_format

     $total_cost += $o['products'][$i]['final_price'] * $o['products'][$i]['qty'];
 }
 if ($HTTP_POST_VARS['DISPLAY_PRICES_WITH_TAX'] == 'on') {
     $subtotal_text = tep_currency_format($total_cost + $o['tax'], true, $o['currency'], $o['currency_value']);
     $subtotal_value = $total_cost + $o['tax'];
 } else {
     $subtotal_text = tep_currency_format($total_cost, true, $o['currency'], $o['currency_value']);
     $subtotal_value = $total_cost;
 }
 tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $HTTP_POST_VARS['OT_SUBTOTAL'] . "', '" . $subtotal_text . "', '" . $subtotal_value . "', 'ot_subtotal', '1')");
 if ($HTTP_POST_VARS['DISPLAY_MULTIPLE_TAXES'] == 'on') {
     @reset($o['products'][$i]['tax_groups']);
     while (@(list($key, $value) = each($o['products'][$i]['tax_groups']))) {
         $tax_text = tep_currency_format($value, true, $o['currency'], $o['currency_value']);
         $tax_value = $value;
         tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . sprintf($HTTP_POST_VARS['OT_TAX_MULTIPLE'], tep_display_tax_value($key) . '%') . "', '" . $tax_text . "', '" . $tax_value . "', 'ot_tax', '2')");
     }
 } else {
     $tax_text = tep_currency_format($o['tax'], true, $o['currency'], $o['currency_value']);
     $tax_value = $o['tax'];
     tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $HTTP_POST_VARS['OT_TAX'] . "', '" . $tax_text . "', '" . $tax_value . "', 'ot_tax', '2')");
 }
 if (strlen($o['shipping_method']) < 1) {
     $o['shipping_method'] = $HTTP_POST_VARS['OT_SHIPPING'];
 } else {
     $o['shipping_method'] .= ':';
 }
 if ($HTTP_POST_VARS['DISPLAY_SHIPPING'] == 'on') {
     $shipping_text = tep_currency_format($o['shipping_cost'], true, $o['currency'], $o['currency_value']);
     $shipping_value = $o['shipping_cost'];
     tep_db_query("insert into " . $HTTP_POST_VARS['OT_TABLE'] . " (orders_total_id, orders_id, title, text, value, class, sort_order) values ('', '" . $o['id'] . "', '" . $o['shipping_method'] . "', '" . $shipping_text . "', '" . $shipping_value . "', 'ot_shipping', '3')");
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:update.php


示例10: tep_display_tax_value

for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '<tr class="dataTableRow ' . ($ct++ & 1 ? 'tabEven' : 'tabOdd') . '">
				<td class="dataTableContent" valign="top" align="center">' . $order->products[$i]['qty'] . '&nbsp;x</td>
				<td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '</td>
			<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>
			<td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>
			<!--td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td-->
			<td class="dataTableContent" align="right" valign="top">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</td>
			<td class="dataTableContent" align="right" valign="top">' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>
			<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>
		</tr>';
}
?>
      <tr>
        <td colspan="3">
			<a href="javascript:window.print()"><img class="dontprint" src="/admin/includes/languages/english/images/buttons/button_print_invoice.gif" alt="Click to Print This Page" border="0"></a>
		</td>
		<td align="right" colspan="4" style="padding: 20px 0 0 0">
			<table border="0" cellspacing="0" cellpadding="3" align="right">
<?php 
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:31,代码来源:invoice.php


示例11: tep_display_tax_value

        </thead>
        <tbody>

<?php 
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            echo '          <tr>' . "\n" . '            <td class="text-right" valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '            <td valign="top">' . $order->products[$i]['name'];
            if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
                for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) {
                    echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
                    if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                        echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
                    }
                    echo '</i></small></nobr>';
                }
            }
            echo '</td>' . "\n" . '            <td valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" . '            <td class="text-right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '            <td class="text-right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '          </tr>' . "\n";
        }
        ?>

        </tbody>
      </table>

      <table class="oscom-table table oscom-table-borderless table-condensed">
        <tbody>

<?php 
        foreach ($order->totals as $ot) {
            echo '          <tr>' . "\n" . '            <td class="text-right">' . $ot['title'] . '</td>' . "\n" . '            <td class="text-right">' . strip_tags($ot['text']) . '</td>' . "\n" . '          </tr>' . "\n";
        }
        ?>
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:30,代码来源:orders.php


示例12: tep_display_tax_value

    echo HEADING_TOTAL;
    ?>
</strong></td>
          </tr>
          <?php 
}
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td class="align-top">' . $order->products[$i]['qty'] . '&nbsp;x&nbsp;</td>' . "\n" . '            <td>' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br /><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small>';
        }
    }
    echo '</td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '            <td>' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '            <td class="text-right price">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
        </table>
      </div>
    </div>
  </div>
  <div class="box">
    <h2 class="page-subheading"><?php 
echo HEADING_BILLING_INFORMATION;
?>
</h2>
    <div class="row">
      <div class="col-xs-4">
开发者ID:templatemonster,项目名称:oscommerce,代码行数:31,代码来源:account_history_info.php


示例13: array

                $manufacturers_array[] = array('id' => $manufacturers_row['manufacturers_id'], 'name' => $manufacturers_row['manufacturers_name']);
            }
            $_SESSION['admin']['AAS']['cache_manufacturers_array'] = $manufacturers_array;
        }
    } else {
        $manufacturers_array = $_SESSION['admin']['AAS']['cache_manufacturers_array'];
    }
}
//SAME AS ABOVE. SEE MANUFACTURERS
if ($fieldsArray['tax_class_title']['visible']) {
    //store in SESSION tax classes results in order to avoid continuously call db query
    if (!isset($_SESSION['admin']['AAS']['cache_tax_class_array'])) {
        $tax_class_query = tep_db_query("SELECT tc.tax_class_id, tc.tax_class_title, tr.tax_rate FROM tax_class tc, tax_rates tr WHERE tc.tax_class_id=tr.tax_class_id");
        if (tep_db_num_rows($tax_class_query) > 0) {
            while ($tax_class_row = tep_db_fetch_array($tax_class_query)) {
                $tax_class_array[] = array('id' => $tax_class_row['tax_class_id'], 'title' => $tax_class_row['tax_class_title'], 'tax_rate' => tep_display_tax_value($tax_class_row['tax_rate']));
            }
            $_SESSION['admin']['AAS']['cache_tax_class_array'] = $tax_class_array;
        }
    } else {
        $tax_class_array = $_SESSION['admin']['AAS']['cache_tax_class_array'];
    }
}
//tax class
if (isset($_GET['search']) && tep_not_null($_GET['search'])) {
    $searchOnField = isset($_GET['searchOnField']) ? $_GET['searchOnField'] : 'pd.products_name';
    $searchSql = ' AND ' . $searchOnField . " like '%" . tep_db_input($search) . "%'";
    $tblCategories = '';
    $tblCategoriesWhere = '';
    $tblCategories = ', ' . TABLE_PRODUCTS_TO_CATEGORIES . ' p2c';
    $tblCategoriesWhere = ' AND p.products_id = p2c.products_id ';
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:31,代码来源:application_top.php


示例14: str_replace

         $pdf->SetFont('Arial', '', 7);
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(57, $lineheight, substr(iconv('UTF-8', 'windows-1252', $order->products[$i]['name'] . $prodattrstr), 0, 45), 1, 'L');
     } else {
         $order->products[$i]['name'] = str_replace("<br>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("<b>", '', $order->products[$i]['name']);
         $order->products[$i]['name'] = str_replace("</b>", '', $order->products[$i]['name']);
         $pdf->MultiCell(57, $lineheight, iconv('UTF-8', 'windows-1252', $order->products[$i]['name'] . $prodattrstr), 1, 'L');
     }
 }
 $pdf->SetFont('Arial', '', 7);
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(112);
 $pdf->MultiCell(13, $rowheight, tep_display_tax_value($order->products[$i]['tax']) . '%', 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(30);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(25, $rowheight, $order->products[$i]['model'], 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(125);
 $pdf->SetFont('Arial', '', 7);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(145);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
 $pdf->SetX(165);
 $pdf->MultiCell(20, $rowheight, iconv('UTF-8', 'windows-1252', $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])), 1, 'C');
 $pdf->SetY($Y_Table_Position);
开发者ID:tapwag,项目名称:oscommerce_deutsch,代码行数:31,代码来源:invoice_pdf.php


示例15: tep_check_stock

              </thead>
           <?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '          <tr class="confirmation-products-listing-row">' . "\n" . '            <td class="content-checkout-confirmation-qty-td">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '            <td><span class="text-info strong">' . $order->products[$i]['name'] . '</span>';
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . ' ' . $order->products[$i]['attributes'][$j]['prefix'] . ' ' . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($products[$i]['tax_class_id']), 1) . '</i></small></nobr>';
        }
    }
    echo '            </td>' . "\n";
    if (sizeof($order->info['tax_groups']) > 1) {
        echo '            <td class="text-right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
    }
    echo '          <td class="text-right">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
            </table>
       		  <table class="table margin-bottom-neg"><tr><td>&nbsp;</td></tr></table>
              <div class="row padding-right" id="content-checkout-confirmation-order-totals">
                <div id="content-checkout-confirmation-order-totals-left" class="col-sm-5 col-lg-5"></div>
                <div id="content-checkout-confirmation-order-totals-right" class="col-sm-7 col-lg-7">
				<div class="clearfix">

					  <?php 
if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo '<div class="clearfix"><span class="pull-left ot-total">' . $order_total_modules->output() . '</span></div>';
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:30,代码来源:checkout_confirmation.tpl.php


示例16: tep_check_stock

				</thread>

          <?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo ' <tr class="confirmation-products-listing-row">' . "\n" . '<td class="content-checkout-confirmation-qty-td">' . $order->products[$i]['qty'] . '&nbsp;x ' . "\n" . '<td><span class="text-info strong">' . $order->products[$i]['name'];
    if (STOCK_CHECK == 'true') {
        echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . ' ' . $order->products[$i]['attributes'][$j]['prefix'] . ' ' . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($products[$i]['tax_class_id']), 1) . '</i></small></nobr>';
        }
    }
    echo ' ' . "\n&qu 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_draw_button函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_db_query函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap