亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? order.php

?? osCommerce最好的電子商務程序 2.2
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
      $customer_address = tep_db_fetch_array($customer_address_query);

      $shipping_address_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)$sendto . "'");
      $shipping_address = tep_db_fetch_array($shipping_address_query);
      
      $billing_address_query = tep_db_query("select ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)$billto . "'");
      $billing_address = tep_db_fetch_array($billing_address_query);

      $tax_address_query = tep_db_query("select ab.entry_country_id, ab.entry_zone_id from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)($this->content_type == 'virtual' ? $billto : $sendto) . "'");
      $tax_address = tep_db_fetch_array($tax_address_query);

      $this->info = array('order_status' => DEFAULT_ORDERS_STATUS_ID,
                          'currency' => $currency,
                          'currency_value' => $currencies->currencies[$currency]['value'],
                          'payment_method' => $payment,
                          'cc_type' => (isset($GLOBALS['cc_type']) ? $GLOBALS['cc_type'] : ''),
                          'cc_owner' => (isset($GLOBALS['cc_owner']) ? $GLOBALS['cc_owner'] : ''),
                          'cc_number' => (isset($GLOBALS['cc_number']) ? $GLOBALS['cc_number'] : ''),
                          'cc_expires' => (isset($GLOBALS['cc_expires']) ? $GLOBALS['cc_expires'] : ''),
                          'shipping_method' => $shipping['title'],
                          'shipping_cost' => $shipping['cost'],
                          'subtotal' => 0,
                          'tax' => 0,
                          'tax_groups' => array(),
                          'comments' => (isset($GLOBALS['comments']) ? $GLOBALS['comments'] : ''));

      if (isset($GLOBALS[$payment]) && is_object($GLOBALS[$payment])) {
        $this->info['payment_method'] = $GLOBALS[$payment]->title;

        if ( isset($GLOBALS[$payment]->order_status) && is_numeric($GLOBALS[$payment]->order_status) && ($GLOBALS[$payment]->order_status > 0) ) {
          $this->info['order_status'] = $GLOBALS[$payment]->order_status;
        }
      }

      $this->customer = array('firstname' => $customer_address['customers_firstname'],
                              'lastname' => $customer_address['customers_lastname'],
                              'company' => $customer_address['entry_company'],
                              'street_address' => $customer_address['entry_street_address'],
                              'suburb' => $customer_address['entry_suburb'],
                              'city' => $customer_address['entry_city'],
                              'postcode' => $customer_address['entry_postcode'],
                              'state' => ((tep_not_null($customer_address['entry_state'])) ? $customer_address['entry_state'] : $customer_address['zone_name']),
                              'zone_id' => $customer_address['entry_zone_id'],
                              'country' => array('id' => $customer_address['countries_id'], 'title' => $customer_address['countries_name'], 'iso_code_2' => $customer_address['countries_iso_code_2'], 'iso_code_3' => $customer_address['countries_iso_code_3']),
                              'format_id' => $customer_address['address_format_id'],
                              'telephone' => $customer_address['customers_telephone'],
                              'email_address' => $customer_address['customers_email_address']);

      $this->delivery = array('firstname' => $shipping_address['entry_firstname'],
                              'lastname' => $shipping_address['entry_lastname'],
                              'company' => $shipping_address['entry_company'],
                              'street_address' => $shipping_address['entry_street_address'],
                              'suburb' => $shipping_address['entry_suburb'],
                              'city' => $shipping_address['entry_city'],
                              'postcode' => $shipping_address['entry_postcode'],
                              'state' => ((tep_not_null($shipping_address['entry_state'])) ? $shipping_address['entry_state'] : $shipping_address['zone_name']),
                              'zone_id' => $shipping_address['entry_zone_id'],
                              'country' => array('id' => $shipping_address['countries_id'], 'title' => $shipping_address['countries_name'], 'iso_code_2' => $shipping_address['countries_iso_code_2'], 'iso_code_3' => $shipping_address['countries_iso_code_3']),
                              'country_id' => $shipping_address['entry_country_id'],
                              'format_id' => $shipping_address['address_format_id']);

      $this->billing = array('firstname' => $billing_address['entry_firstname'],
                             'lastname' => $billing_address['entry_lastname'],
                             'company' => $billing_address['entry_company'],
                             'street_address' => $billing_address['entry_street_address'],
                             'suburb' => $billing_address['entry_suburb'],
                             'city' => $billing_address['entry_city'],
                             'postcode' => $billing_address['entry_postcode'],
                             'state' => ((tep_not_null($billing_address['entry_state'])) ? $billing_address['entry_state'] : $billing_address['zone_name']),
                             'zone_id' => $billing_address['entry_zone_id'],
                             'country' => array('id' => $billing_address['countries_id'], 'title' => $billing_address['countries_name'], 'iso_code_2' => $billing_address['countries_iso_code_2'], 'iso_code_3' => $billing_address['countries_iso_code_3']),
                             'country_id' => $billing_address['entry_country_id'],
                             'format_id' => $billing_address['address_format_id']);

      $index = 0;
      $products = $cart->get_products();
      for ($i=0, $n=sizeof($products); $i<$n; $i++) {
        $this->products[$index] = array('qty' => $products[$i]['quantity'],
                                        'name' => $products[$i]['name'],
                                        'model' => $products[$i]['model'],
                                        'tax' => tep_get_tax_rate($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
                                        'tax_description' => tep_get_tax_description($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
                                        'price' => $products[$i]['price'],
                                        'final_price' => $products[$i]['price'] + $cart->attributes_price($products[$i]['id']),
                                        'weight' => $products[$i]['weight'],
                                        'id' => $products[$i]['id']);

        if ($products[$i]['attributes']) {
          $subindex = 0;
          reset($products[$i]['attributes']);
          while (list($option, $value) = each($products[$i]['attributes'])) {
            $attributes_query = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'");
            $attributes = tep_db_fetch_array($attributes_query);

            $this->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options_name'],
                                                                     'value' => $attributes['products_options_values_name'],
                                                                     'option_id' => $option,
                                                                     'value_id' => $value,
                                                                     'prefix' => $attributes['price_prefix'],
                                                                     'price' => $attributes['options_values_price']);

            $subindex++;
          }
        }

        $shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
        $this->info['subtotal'] += $shown_price;

        $products_tax = $this->products[$index]['tax'];
        $products_tax_description = $this->products[$index]['tax_description'];
        if (DISPLAY_PRICE_WITH_TAX == 'true') {
          $this->info['tax'] += $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
          if (isset($this->info['tax_groups']["$products_tax_description"])) {
            $this->info['tax_groups']["$products_tax_description"] += $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
          } else {
            $this->info['tax_groups']["$products_tax_description"] = $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
          }
        } else {
          $this->info['tax'] += ($products_tax / 100) * $shown_price;
          if (isset($this->info['tax_groups']["$products_tax_description"])) {
            $this->info['tax_groups']["$products_tax_description"] += ($products_tax / 100) * $shown_price;
          } else {
            $this->info['tax_groups']["$products_tax_description"] = ($products_tax / 100) * $shown_price;
          }
        }

        $index++;
      }

      if (DISPLAY_PRICE_WITH_TAX == 'true') {
        $this->info['total'] = $this->info['subtotal'] + $this->info['shipping_cost'];
      } else {
        $this->info['total'] = $this->info['subtotal'] + $this->info['tax'] + $this->info['shipping_cost'];
      }
    }
  }
?>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品人人做人人爽人人添| 国产精品免费丝袜| 国产性天天综合网| 亚洲激情图片小说视频| 亚洲成人免费影院| 丝袜美腿成人在线| 热久久免费视频| 激情六月婷婷久久| av电影在线观看一区| 91久久一区二区| 欧美在线你懂的| 日韩一级免费观看| 国产精品天美传媒| 青青青爽久久午夜综合久久午夜| 精品一区二区三区av| 91久久久免费一区二区| 久久综合给合久久狠狠狠97色69| 一区二区三区在线免费观看| 精品一二三四区| 欧美三级三级三级| 亚洲欧美电影院| 成人app下载| 久久久久久久久免费| 免费观看日韩av| 欧美视频自拍偷拍| 亚洲欧美日韩在线不卡| 99在线精品免费| 欧美国产亚洲另类动漫| 国产精品18久久久久久久久久久久| 日韩精品最新网址| 亚洲成人久久影院| 一本大道久久a久久精品综合| 日韩精品专区在线| 青青草国产成人99久久| 欧美色精品在线视频| 亚洲欧洲精品一区二区三区不卡| 国产一区二区三区不卡在线观看 | 99久久精品免费看国产免费软件| 亚洲精品在线观看网站| 男女激情视频一区| 国产午夜亚洲精品理论片色戒| 国产成人综合自拍| 久久蜜桃av一区二区天堂 | 在线观看欧美精品| 亚洲精品免费一二三区| 8x福利精品第一导航| 国产一区在线视频| 亚洲另类色综合网站| 这里只有精品视频在线观看| 狠狠色综合色综合网络| 亚洲日本青草视频在线怡红院| 色悠悠久久综合| 国内精品伊人久久久久av影院 | 久久精品72免费观看| 国产精品久久看| 色婷婷综合中文久久一本| 久久er99精品| 亚洲福中文字幕伊人影院| 亚洲精品在线电影| 在线看一区二区| 国产成人免费在线观看| 久久国内精品视频| 一区二区三区在线观看欧美| 欧美性受xxxx黑人xyx性爽| 久久爱www久久做| 首页国产丝袜综合| 国产日韩亚洲欧美综合| 欧美精品国产精品| 欧美日韩国产电影| 不卡视频免费播放| 国产一区二区三区在线观看免费 | www.成人在线| 麻豆国产欧美一区二区三区| 亚洲综合视频在线观看| 国产精品久久久久久久久久久免费看 | 日韩精品亚洲一区| 麻豆精品新av中文字幕| 激情小说欧美图片| 国产一区美女在线| 国产成人免费在线观看不卡| 成年人国产精品| 91丨国产丨九色丨pron| 91啦中文在线观看| 欧美一级二级三级蜜桃| 欧美精品xxxxbbbb| 国产精品美女久久久久久久| 亚洲免费观看高清完整版在线观看 | 精品写真视频在线观看| 国产一区二区在线观看视频| 国产91对白在线观看九色| 国产精品亚洲第一区在线暖暖韩国| 99久久99久久久精品齐齐| 91免费版在线看| 欧美日韩国产天堂| 国产午夜精品美女毛片视频| 亚洲永久免费av| 成人av免费网站| 日韩视频在线观看一区二区| 久久午夜色播影院免费高清| 亚洲福利视频一区| 欧美一级理论片| 精品日韩一区二区三区| 伊人婷婷欧美激情| 麻豆国产91在线播放| 色狠狠av一区二区三区| 91精品在线麻豆| 亚洲美腿欧美偷拍| 成人免费毛片app| 精品91自产拍在线观看一区| 午夜亚洲国产au精品一区二区| 久久精品国产精品亚洲红杏| 欧美电影影音先锋| 亚洲免费观看高清| www.欧美精品一二区| 国产精品亲子伦对白| 高清成人在线观看| 欧美日韩国产免费| 国产精品网站导航| 91极品美女在线| 中文字幕一区二区三| 国产精品伊人色| 亚洲国产精品二十页| 色婷婷亚洲婷婷| 国产视频视频一区| 国产99久久久精品| 国产精品高潮呻吟久久| 99国产欧美久久久精品| 亚洲与欧洲av电影| 欧美午夜电影在线播放| 国产精品青草综合久久久久99| 粉嫩av亚洲一区二区图片| 久久久.com| 色综合视频在线观看| 亚洲精品美腿丝袜| 91麻豆精品国产自产在线| 狠狠色2019综合网| 一二三四区精品视频| 日本二三区不卡| 男女激情视频一区| 国产人久久人人人人爽| 一本久道久久综合中文字幕| 性欧美大战久久久久久久久| 日韩一区二区三区视频在线观看| 欧美日韩一区二区三区视频| 亚洲精品国产视频| 7777精品久久久大香线蕉| 国产99久久久精品| 日韩av电影免费观看高清完整版在线观看| 久久久三级国产网站| 欧美亚洲一区三区| 成人一区在线观看| 日本午夜精品一区二区三区电影| 精品国产一区二区精华| 91玉足脚交白嫩脚丫在线播放| 国产一区免费电影| 日韩激情av在线| 亚洲欧美一区二区三区极速播放| 欧美精品一区二| 欧美日韩不卡一区| 日本丰满少妇一区二区三区| 成人国产亚洲欧美成人综合网| 青青草视频一区| 亚洲已满18点击进入久久| 亚洲欧美在线另类| 一区在线观看免费| 亚洲精品国产精华液| 亚洲bdsm女犯bdsm网站| 一区二区在线免费观看| 国产精品伦理在线| 五月婷婷激情综合| 久久精品国产亚洲一区二区三区| 激情伊人五月天久久综合| 99国产精品久久久久久久久久久| 成人高清av在线| 欧美制服丝袜第一页| 国产亚洲精品aa| 污片在线观看一区二区| 国产另类ts人妖一区二区| 在线视频国产一区| 久久婷婷国产综合国色天香| 欧美专区在线观看一区| 亚洲精品国产无天堂网2021| 欧美日韩黄色一区二区| 国产精品久久久久久久午夜片| 亚洲精品免费一二三区| 欧美日韩国产另类不卡| av亚洲产国偷v产偷v自拍| 高清shemale亚洲人妖| 日韩亚洲欧美在线| 日本不卡视频在线观看| 欧美精品免费视频| 亚洲v精品v日韩v欧美v专区| 色综合久久久网| 国产网红主播福利一区二区| 亚洲一区日韩精品中文字幕| 91黄色激情网站| 亚洲激情图片小说视频| 91成人看片片| 亚洲综合色区另类av| 91浏览器在线视频|