ホーム > お知らせ > Welcart 0.7 リリース!

Welcart 0.7 リリース!

Welcart 0.7 をリリースいたしました。

更新内容は次の通りですが今回は、templates ディレクトリ内のファイルを大幅に変更していますのでその変更箇所も記しておきます。また、マニュアルが追いついていませんので、アップグレードでの注意事項や新機能の使い方などを別記事で解説させて頂きます。よろしくお願いいたします。

  • クレジット決済に「ゼウス決済」と「ルミーズ決済」を搭載
  • 注文情報やお客様情報などに任意の項目を設定できる機能を追加
  • URLに露出するセッションIDを隠蔽するよう修正
  • Welcart を同一ドメインで複数利用する場合には、独自のキーを設定するよう修正
  • 在庫管理を行っていると購入制限数が有効にならない不具合を修正
  • 数量入力フォームのIEでの挙動がおかしくなる不具合を修正
  • 商品を下書き保存すると、管理パネルの投稿記事リストに商品が表示されてしまう不具合を修正
  • 受注データ更新の際、発送日が更新されるアラートを出すよう修正
  • Welcart お問合せフォールのSSL通信でセキュリティー警告が出る不具合を修正




templates ディレクトリ内のファイルの変更箇所

このディレクトリ内のファイルを退避させている方は、この修正を行わなければv0.7 は正常に動作しません。
この変更箇所は、v0.6 との比較になります。この他の変更を確認したい場合はこちらを参照してください。(色分けされているので見やすくなっています)
http://plugins.trac.wordpress.org/changeset?new=284723%40usc-e-shop&old=268634%40usc-e-shop

  • usc-e-shop/trunk/templates/wp_search_item.php
    r176562 r271941
    9 9 </div>
    10 10 ‘;
    11 $html = apply_filters( ‘usces_filter_item_list_loopimg’, $html);
    11 12 ?>
  • usc-e-shop/trunk/templates/single_item.php
    r259249 r275099
    2 2 usces_the_item();
    3 3
    4 $html = ‘
    5 <div id=”itempage”>
    6 <form action=”‘ . USCES_CART_URL . ‘” method=”post”>
    7 <div>
    8 <a href=”‘ . usces_the_itemImageURL(0, ‘return’) . ‘”‘;
    4 $html = ‘<div id=”itempage”>’.”\n”;
    5 $html .= ‘<form action=”‘ . USCES_CART_URL . ‘” method=”post”>’.”\n”;
    9 6
    7 $html .= ‘<div>’.”\n”;
    8 $html .= ‘<a href=”‘ . usces_the_itemImageURL(0, ‘return’) . ‘”‘;
    10 9 $html = apply_filters(‘usces_itemimg_anchor_rel’, $html);
    11
    12 10 $html .= ‘>’;
    13 11 $itemImage = usces_the_itemImage(0, 200, 250, $post, ‘return’);
    14 12 $html .= apply_filters(‘usces_filter_the_itemImage’, $itemImage, $post);
    15 $html .= ‘</a>
    16 </div>’;
    13 $html .= ‘</a>‘.”\n”;
    14 $html .= ‘</div>’.”\n”;
    17 15
    18 16 if(usces_sku_num() === 1) { //1SKU
    19 17 usces_have_skus();
    20 18
    21 $html .= ‘<h3>’ . usces_the_itemName( ‘return’ ) . ‘&nbsp; (‘ . usces_the_itemCode( ‘return’ ) . ‘) </h3>
    22 <div>
    23 <div>’;
    19 $html .= ‘<h3>’ . usces_the_itemName( ‘return’ ) . ‘&nbsp; (‘ . usces_the_itemCode( ‘return’ ) . ‘) </h3>‘.”\n”;
    20 $html .= ‘<div>’.”\n”;
    21 $html .= ‘<div>’.”\n”;
    24 22 if( $this->itemsku[‘value’][‘cprice’] > 0 ){
    25 23 $usces_listprice = __(‘List price’, ‘usces’) . $this->getGuidTax();
    26 $html .= ‘<div>’ . apply_filters(‘usces_filter_listprice_label’, $usces_listprice, __(‘List price’, ‘usces’), $this->getGuidTax()) . ‘</div>
    27 <div>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘cprice’]) . ‘</div>’;
    24 $html .= ‘<div>’ . apply_filters(‘usces_filter_listprice_label’, $usces_listprice, __(‘List price’, ‘usces’), $this->getGuidTax()) . ‘</div>‘.”\n”;
    25 $html .= ‘<div>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘cprice’]) . ‘</div>’;
    28 26 }
    29 27 $usces_sellingprice = __(‘selling price’, ‘usces’) . $this->getGuidTax();
    30 $html .= ‘<div>’ . apply_filters(‘usces_filter_sellingprice_label’, $usces_sellingprice, __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</div>
    31 <div>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘price’]) . ‘</div>
    32 </div>’;
    33 $singlestock = ‘<div>’ . __(‘stock status’, ‘usces’) . ‘ : ‘ . usces_the_itemZaiko(‘return’) . ‘</div>’;
    28 $html .= ‘<div>’ . apply_filters(‘usces_filter_sellingprice_label’, $usces_sellingprice, __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</div>‘.”\n”;
    29 $html .= ‘<div>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘price’]) . ‘</div>’.”\n”;
    30 $html .= ‘</div>’.”\n”;
    31 $singlestock = ‘<div>’ . __(‘stock status’, ‘usces’) . ‘ : ‘ . usces_the_itemZaiko(‘return’) . ‘</div>’.”\n”;
    34 32 $html .= apply_filters(‘single_item_stock_field’, $singlestock);
    33 $item_custom = usces_get_item_custom( $post->ID, ‘list’, ‘return’ );
    34 if($item_custom){
    35 $html .= ‘<div>’.”\n”;
    36 $html .= $item_custom;
    37 $html .= ‘</div>’.”\n”;
    38 }
    35 39
    36 $html .= $content;
    37 $html .= ‘</div>’ . usces_the_itemGpExp(‘return’) . ‘
    38 <div align=”right”>’;
    40 $html .= $content.”\n”;
    41 $html .= ‘</div><!– end of exp –>’.”\n”;
    42 $html .= usces_the_itemGpExp(‘return’);
    43 $html .= ‘<div align=”right”>’.”\n”;
    39 44 if (usces_is_options()) {
    40 45 $html .= “<table class=’item_option’><caption>”.__(‘Please appoint an option.’, ‘usces’).”</caption>\n”;
    44 49 $html .= “</table>\n”;
    45 50 }
    46 $html .= ‘<div style=”margin-top:10px”>’.__(‘Quantity’, ‘usces’).usces_the_itemQuant(‘return’) . $this->itemsku[‘value’][‘unit’] . usces_the_itemSkuButton(__(‘Add to Shopping Cart’, ‘usces’), 0, ‘return’) . ‘</div>’;
    47 $html .= ‘</div>’;
    51 $html .= ‘<div style=”margin-top:10px”>’.__(‘Quantity’, ‘usces’).usces_the_itemQuant(‘return’) . $this->itemsku[‘value’][‘unit’] . usces_the_itemSkuButton(__(‘Add to Shopping Cart’, ‘usces’), 0, ‘return’) . ‘</div>’.”\n”;
    52 $html .= ‘</div><!– end of skuform –>’.”\n”;
    53 $html .= apply_filters(‘single_item_single_sku_after_field’, NULL);
    48 54
    49 55 } elseif(usces_sku_num() > 1) { //some SKU
    50 56 usces_have_skus();
    51 $html .= ‘<h3>’ . usces_the_itemName( ‘return’ ) . ‘&nbsp; (‘ . usces_the_itemCode( ‘return’ ) . ‘) </h3>
    52 <div>’ . $content . ‘</div>
    53 <div>
    54 <table>
    55 <thead>
    56 <tr>
    57 <th rowspan=”2″>’.__(‘order number’, ‘usces’).'</th>
    58 <th colspan=”2″>’.__(‘Title’, ‘usces’).'</th>’;
    57 $html .= ‘<h3>’ . usces_the_itemName( ‘return’ ) . ‘&nbsp; (‘ . usces_the_itemCode( ‘return’ ) . ‘) </h3>’.”\n”;
    58 $html .= ‘<div>’.”\n”;
    59 $html .= $content.”\n”;
    60 $item_custom = usces_get_item_custom( $post->ID, ‘list’, ‘return’ );
    61 if($item_custom){
    62 $html .= ‘<div>’.”\n”;
    63 $html .= $item_custom;
    64 $html .= ‘</div>’.”\n”;
    65 }
    66 $html .= ‘</div>’.”\n”;
    67
    68 $html .= ‘<div>’.”\n”;
    69 $html .= ‘<table>’.”\n”;
    70 $html .= ‘<thead>’.”\n”;
    71 $html .= ‘<tr>’.”\n”;
    72 $html .= ‘<th rowspan=”2″>’.__(‘order number’, ‘usces’).'</th>’.”\n”;
    73 $html .= ‘<th colspan=”2″>’.__(‘Title’, ‘usces’).'</th>’.”\n”;
    59 74 if( $this->itemsku[‘value’][‘cprice’] > 0 ){
    60 75 $usces_bothprice = ‘(‘.__(‘List price’, ‘usces’).’)’.__(‘selling price’, ‘usces’) . $this->getGuidTax();
    61 $html .= ‘<th colspan=”2″>’.apply_filters(‘usces_filter_bothprice_label’, $usces_bothprice, __(‘List price’, ‘usces’), __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</th>’;
    76 $html .= ‘<th colspan=”2″>’.apply_filters(‘usces_filter_bothprice_label’, $usces_bothprice, __(‘List price’, ‘usces’), __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</th>’.”\n”;
    62 77 }else{
    63 78 $usces_sellingprice = __(‘selling price’, ‘usces’) . $this->getGuidTax();
    64 $html .= ‘<th colspan=”2″>’.apply_filters(‘usces_filter_sellingprice_label’, $usces_sellingprice, __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</th>’;
    79 $html .= ‘<th colspan=”2″>’.apply_filters(‘usces_filter_sellingprice_label’, $usces_sellingprice, __(‘selling price’, ‘usces’), $this->getGuidTax()) . ‘</th>’.”\n”;
    65 80 }
    66 $html .= ‘</tr>
    67 <tr>
    68 <th>’.__(‘stock status’, ‘usces’).'</th>
    69 <th>’.__(‘Quantity’, ‘usces’).'</th>
    70 <th>’.__(‘unit’, ‘usces’).'</th>
    71 <th>&nbsp;</th>
    72 </tr>
    73 </thead>
    74 <tbody>’;
    81 $html .= ‘</tr>‘.”\n”;
    82 $html .= ‘<tr>’.”\n”;
    83 $html .= ‘<th>’.__(‘stock status’, ‘usces’).'</th>’.”\n”;
    84 $html .= ‘<th>’.__(‘Quantity’, ‘usces’).'</th>’.”\n”;
    85 $html .= ‘<th>’.__(‘unit’, ‘usces’).'</th>’.”\n”;
    86 $html .= ‘<th>&nbsp;</th>’.”\n”;
    87 $html .= ‘</tr>’.”\n”;
    88 $html .= ‘</thead>’.”\n”;
    89 $html .= ‘<tbody>’.”\n”;
    75 90 do {
    76 $html .= ‘<tr>
    77 <td rowspan=”2″>’ . $this->itemsku[‘key’] . ‘</td>
    78 <td colspan=”2″>’ . $this->itemsku[‘value’][‘disp’];
    91 $html .= ‘<tr>‘.”\n”;
    92 $html .= ‘<td rowspan=”2″>’ . $this->itemsku[‘key’] . ‘</td>’.”\n”;
    93 $html .= ‘<td colspan=”2″>’ . $this->itemsku[‘value’][‘disp’].”\n”;
    79 94 if (usces_is_options()) {
    80 95 $html .= “<table class=’item_option’><caption>”.__(‘Please appoint an option.’, ‘usces’).”</caption>\n”;
    87 102 //                }
    88 103 }
    89 $html .= ‘</td>
    90 <td colspan=”2″>’;
    104 $html .= ‘</td>‘.”\n”;
    105 $html .= ‘<td colspan=”2″>’.”\n”;
    91 106 if( $this->itemsku[‘value’][‘cprice’] > 0 ){
    92 $html .= ‘<span>(‘ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘cprice’]) . ‘)</span>’;
    107 $html .= ‘<span>(‘ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘cprice’]) . ‘)</span>’.”\n”;
    93 108 }
    94 $html .= ‘<span>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘price’]) . ‘</span><br />’ . usces_the_itemGpExp(‘return’) . ‘</td>
    95 </tr>
    96 <tr>
    97 <td>’ . usces_the_itemZaiko(‘return’) . ‘</td>
    98 <td>’ . usces_the_itemQuant(‘return’) . ‘</td>
    99 <td>’ . $this->itemsku[‘value’][‘unit’] . ‘</td>
    100 <td>’ . usces_the_itemSkuButton(__(‘Add to Shopping Cart’, ‘usces’), 0, ‘return’) . ‘</td>
    101 </tr>’;
    109 $html .= ‘<span>’ . __(‘$’, ‘usces’) . number_format($this->itemsku[‘value’][‘price’]) . ‘</span><br />’ . usces_the_itemGpExp(‘return’) . ‘</td>‘.”\n”;
    110 $html .= ‘</tr>’.”\n”;
    111 $html .= ‘<tr>’.”\n”;
    112 $html .= ‘<td>’ . usces_the_itemZaiko(‘return’) . ‘</td>’.”\n”;
    113 $html .= ‘<td>’ . usces_the_itemQuant(‘return’) . ‘</td>’.”\n”;
    114 $html .= ‘<td>’ . $this->itemsku[‘value’][‘unit’] . ‘</td>’.”\n”;
    115 $html .= ‘<td>’ . usces_the_itemSkuButton(__(‘Add to Shopping Cart’, ‘usces’), 0, ‘return’) . ‘</td>’.”\n”;
    116 $html .= ‘</tr>’.”\n”;
    102 117 } while (usces_have_skus());
    103 $html .= ‘</tbody>
    104 </table>
    105 </div>’;
    118 $html .= ‘</tbody>’.”\n”;
    119 $html .= ‘</table>’.”\n”;
    120 $html .= ‘</div><!– end of skuform –>’.”\n”;
    121 $html .= apply_filters(‘single_item_multi_sku_after_field’, NULL);
    106 122 }
    107 123
    108 $html .= ‘<div>’;
    124 $html .= ‘<div>’.”\n”;
    109 125 $imageid = usces_get_itemSubImageNums();
    110 126 foreach ( $imageid as $id ) {
    114 130 $itemImage = usces_the_itemImage($id, 137, 200, $post, ‘return’);
    115 131 $html .= apply_filters(‘usces_filter_the_SubImage’, $itemImage, $post, $id);
    116 $html .= ‘</a>’;
    132 $html .= ‘</a>’.”\n”;
    117 133 }
    118 $html .= ‘</div>;
    134 $html .= ‘</div><!– end of itemsubimg –>’.”\n”;
    119 135
    120 136 if (usces_get_assistance_id_list($post->ID)) {
    121 $html .= ‘<div>’;
    137 $html .= ‘<div>’.”\n”;
    122 138 $assistanceposts = get_posts(‘include=’.usces_get_assistance_id_list($post->ID));
    123 139 if ($assistanceposts) {
    124 $assistance_item_title = ‘<h3>’ . usces_the_itemCode( ‘return’ ) . __(‘An article concerned’, ‘usces’).'</h3>’;
    140 $assistance_item_title = ‘<h3>’ . usces_the_itemCode( ‘return’ ) . __(‘An article concerned’, ‘usces’).'</h3>’.”\n”;
    125 141 $html .= apply_filters(‘usces_assistance_item_title’, $assistance_item_title);
    126 $html .= ‘<ul>’;
    142 $html .= ‘<ul>’.”\n”;
    127 143 foreach ($assistanceposts as $post) {
    128 144 setup_postdata($post);
    129 145 usces_the_item();
    130 $html .= ‘<li><div>
    131 <div><a href=”‘ . get_permalink($post->ID) . ‘” rel=”bookmark” title=”‘ . $post->post_title . ‘”>’ . usces_the_itemImage(0, 100, 100, $post, ‘return’) . ‘</a></div>
    132 <div>
    133 <h4>’ . usces_the_itemName(‘return’) . ‘</h4>’ . $post->post_excerpt . ‘
    134 <p>’;
    146 $html .= ‘<li><div>’.”\n”;
    147 $html .= ‘<div><a href=”‘ . get_permalink($post->ID) . ‘” rel=”bookmark” title=”‘ . $post->post_title . ‘”>’ . usces_the_itemImage(0, 100, 100, $post, ‘return’) . ‘</a></div>’.”\n”;
    148 $html .= ‘<div>’.”\n”;
    149 $html .= ‘<h4>’ . usces_the_itemName(‘return’) . ‘</h4>’.”\n”;
    150 $html .= $post->post_excerpt;
    151 $html .= ‘<p>’.”\n”;
    135 152 if (usces_is_skus()) {
    136 153 $html .= __(‘$’, ‘usces’) . usces_the_firstPrice(‘return’);
    137 154 }
    138 $html .= ‘<br />
    139 &raquo; <a href=”‘ . get_permalink($post->ID) . ‘” rel=”bookmark” title=”‘ . $post->post_title . ‘”>’.__(‘see the details’, ‘usces’).'</a></p>
    140 </div>
    141 </div></li>’;
    155 $html .= ‘<br />’.”\n”;
    156 $html .= ‘&raquo; <a href=”‘ . get_permalink($post->ID) . ‘” rel=”bookmark” title=”‘ . $post->post_title . ‘”>’.__(‘see the details’, ‘usces’).'</a></p>’.”\n”;
    157 $html .= ‘</div>’.”\n”;
    158 $html .= ‘</div>’.”\n”;
    159 $html .= ‘</li>’.”\n”;
    142 160 }
    143 $html .= ‘</ul>’;
    161 $html .= ‘</ul>’.”\n”;
    144 162 }
    145 163
    146 $html .= ‘</div>;
    164 $html .= ‘</div><!– end of assistance_item –>’.”\n”;
    147 165 }
    148 166
    149 167 $html = apply_filters(‘usces_filter_single_item_inform’, $html);
    150 $html .= ‘
    151 </form>
    152 </div><!– end of itemspage –>’;
    168 $html .= ‘</form>’.”\n”;
    169
    170 $html .= ‘</div><!– end of itemspage –>’.”\n”;
    153 171 ?>
  • usc-e-shop/trunk/templates/member/member_form.php
    r250427 r282498
    37 37 <th scope=”row”><em>*</em>’ . __(‘Password (confirm)’, ‘usces’) . ‘</th>
    38 38 <td colspan=”2″><input name=”member[password2]” id=”password2″ type=”password” value=”‘ . $usces_members[‘password2’] . ‘” /></td>
    39 </tr>
    40 <tr>
    39 </tr>’;
    40 //20100818ysk start
    41 $html .= usces_custom_field_input($usces_members, ‘member’, ‘name_pre’, ‘return’);
    42 //20100818ysk end
    43 $html .= ‘<tr>
    41 44 <th scope=”row”><em>*</em>’ . __(‘Full name’, ‘usces’) . ‘</th>
    42 45 <td>’ . __(‘Familly name’, ‘usces’) . ‘<input name=”member[name1]” id=”name1″ type=”text” value=”‘ . $usces_members[‘name1’] . ‘” /></td>
    50 53 </tr>’;
    51 54 }
    55 //20100818ysk start
    56 $html .= usces_custom_field_input($usces_members, ‘member’, ‘name_after’, ‘return’);
    57 //20100818ysk end
    52 58 $html .= ‘<tr>
    53 59 <th scope=”row”><em>*</em>’ . __(‘Zip/Postal Code’, ‘usces’) . ‘</th>
    77 83 <th scope=”row”>’ . __(‘FAX number’, ‘usces’) . ‘</th>
    78 84 <td colspan=”2″><input name=”member[fax]” id=”fax” type=”text” value=”‘ . $usces_members[‘fax’] . ‘” />1000-10-1000</td>
    79 </tr>
    80 </table>
    85 </tr>’;
    86 //20100818ysk start
    87 $html .= usces_custom_field_input($usces_members, ‘member’, ‘fax_after’, ‘return’);
    88 //20100818ysk end
    89 $html .= ‘</table>
    81 90 <input name=”member_regmode” type=”hidden” value=”‘ . $member_regmode . ‘” /><div>’;
    82 91 $newmemberbutton = ‘<input name=”regmember” type=”submit” value=”‘ . __(‘transmit a message’, ‘usces’) . ‘” />’;
  • usc-e-shop/trunk/templates/member/member.php
    r253391 r282498
    97 97 $itemName = $this->getItemName($post_id);
    98 98 $cartItemName = $this->getCartItemName($post_id, $sku);
    99 $skuPrice = $this->getItemPrice($post_id, $sku);
    99 //$skuPrice = $this->getItemPrice($post_id, $sku);
    100 $skuPrice = $cart_row[‘price’];
    100 101 $pictids = $this->get_pictids($itemCode);
    101 102 $optstr =  ”;
    125 126 <div>’ . $this->error_message . ‘</div>
    126 127 <form action=”‘ . USCES_MEMBER_URL . ‘#edit” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    127 <table>
    128 <tr>
    128 <table>’;
    129 //20100818ysk start
    130 $html .= usces_custom_field_input($usces_members, ‘member’, ‘name_pre’, ‘return’);
    131 //20100818ysk end
    132 $html .= ‘<tr>
    129 133 <th scope=”row”><em>*</em>’ . __(‘Full name’, ‘usces’) . ‘</th>
    130 134 <td>’ . __(‘Familly name’, ‘usces’) . ‘<input name=”member[name1]” id=”name1″ type=”text” value=”‘ . $usces_members[‘name1’] . ‘” /></td>
    138 142 </tr>’;
    139 143 }
    144 //20100818ysk start
    145 $html .= usces_custom_field_input($usces_members, ‘member’, ‘name_after’, ‘return’);
    146 //20100818ysk end
    140 147 $html .= ‘<tr>
    141 148 <th scope=”row”><em>*</em>’ . __(‘Zip/Postal Code’, ‘usces’) . ‘</th>
    165 172 <th scope=”row”>’ . __(‘FAX number’, ‘usces’) . ‘</th>
    166 173 <td colspan=”2″><input name=”member[fax]” id=”fax” type=”text” value=”‘ . $usces_members[‘fax’] . ‘” />1000-10-1000</td>
    167 </tr>
    168 <tr>
    174 </tr>’;
    175 //20100818ysk start
    176 $html .= usces_custom_field_input($usces_members, ‘member’, ‘fax_after’, ‘return’);
    177 //20100818ysk end
    178 $html .= ‘<tr>
    169 179 <th scope=”row”>’ . __(‘e-mail adress’, ‘usces’) . ‘</th>
    170 180 <td colspan=”2″><input name=”member[mailaddress1]” id=”fax” type=”text” value=”‘ . $usces_members[‘mailaddress1’] . ‘” /></td>
  • usc-e-shop/trunk/templates/cart/cart.php
    r258871 r282498
    126 126
    127 127 $html .= ‘<div>
    128 <input name=”previous” type=”button” id=”previouscart” onclick=”uscesCart.previousCart();” value=”‘ . __(‘continue shopping’,’usces’) . ‘” />&nbsp;&nbsp;’;
    128 <input name=”previous” type=”button” id=”previouscart” value=”‘ . __(‘continue shopping’,’usces’) . ‘”‘ . apply_filters(‘usces_filter_cart_prebutton’, ‘ onclick=”uscesCart.previousCart();”‘) . ‘ />&nbsp;&nbsp;’;
    129 129 if( usces_is_cart() ) {
    130 $html .= ‘<input name=”customerinfo” type=”submit” value=”‘ . __(‘ Next ‘,’usces’) . ‘” onclick=”return uscesCart.cartNext()” />’;
    130 $html .= ‘<input name=”customerinfo” type=”submit” value=”‘ . __(‘ Next ‘,’usces’) . ‘”‘ . apply_filters(‘usces_filter_cart_nextbutton’, ‘ onclick=”return uscesCart.cartNext();”‘) . ‘/>’;
    131 131 }
    132 132 $html .= ‘</div>’;
  • usc-e-shop/trunk/templates/cart/completion.php
    r263643 r282498
    1 1 <?php
    2 global $usces;
    3 $entry = $usces->cart->get_entry();
    4 $cart = $usces->cart->get_cart();
    5 2
    6 $html = ‘<h2>’.__(‘It has been sent succesfully.’, ‘usces’).'</h2>
    7 <div>’;
    3 add_filter(‘usces_filter_conversion_tracking’, ‘usces_test_conversion’, 10, 3);
    4 function usces_test_conversion(){
    5 $script = ‘<!– Google Code for 購入 Conversion Page –>
    6 <script type=”text/javascript”>
    7 /* <![CDATA[ */
    8 var google_conversion_id = 1007005965;
    9 var google_conversion_language = “ja”;
    10 var google_conversion_format = “2”;
    11 var google_conversion_color = “ffffff”;
    12 var google_conversion_label = “iSVACIP24wEQjeKW4AM”;
    13 var google_conversion_value = 0;
    14 if (3000) {
    15 google_conversion_value = 3000;
    16 }
    17 /* ]]> */
    18 </script>
    19 <script type=”text/javascript” src=”https://www.googleadservices.com/pagead/conversion.js”>
    20 </script>
    21 <noscript>
    22 <div style=”display:inline;”>
    23 <img height=”1″ width=”1″ style=”border-style:none;” alt=”” src=”https://www.googleadservices.com/pagead/conversion/1007005965/?value=3000&amp;label=iSVACIP24wEQjeKW4AM&amp;guid=ON&amp;script=0″/>
    24 </div>
    25 </noscript>’;
    26 return $script;
    27 }
    8 28
    9 if(isset($this->payment_results[‘payment_status’])){
    10 $html .= ‘<div id=”status_table”><h5>PayPal</h5>
    11 <table>’;
    12 $html .= ‘<tr><th>’.__(‘Purchase date’, ‘usces’).'</th><td>’ . $this->payment_results[‘payment_date’] . “</td></tr>\n”;
    13 $html .= ‘<tr><th>’.__(‘Status’, ‘usces’).'</th><td>’ . $this->payment_results[‘payment_status’] . “</td></tr>\n”;
    14 $html .= ‘<tr><th>’.__(‘Full name’, ‘usces’).'</th><td>’ . $this->payment_results[‘first_name’] . $this->payment_results[‘last_name’] . “</td></tr>\n”;
    15 $html .= ‘<tr><th>’.__(‘e-mail’, ‘usces’).'</th><td>’ . $this->payment_results[‘payer_email’] . “</td></tr>\n”;
    16 $html .= ‘<tr><th>’ . __(‘Items’,’usces’) . ‘</th><td>’ . $this->payment_results[‘item_name’] . “</td></tr>\n”;
    17 $html .= ‘<tr><th>’.__(‘Payment amount’, ‘usces’).'</th><td>’ . $this->payment_results[‘mc_gross’] . “</td></tr>\n”;
    18 $html .= ‘</table>’;
    19
    20 if($this->payment_results[‘payment_status’] != ‘Completed’){
    21 $html .= __(‘<p>The settlement is not completed.<br />Please remit the price from the PayPal Maia count page.After receipt of money confirmation, I will prepare for the article shipment.</p>’, ‘usces’) . “\n”;
    22 }
    23 $html .= “</div>\n”;
    24 //    foreach($this->payment_results as $kye => $value){
    25 //          if($kye == ‘custom’) urldecode($value);
    26 //          $html .= $kye . ‘ = ‘ . $value . “<br />\n”;
    27 //    }
    28 }
    29 $html .= ‘<div>’;
    29
    30 $entry = $this->cart->get_entry();
    31 $cart = $this->cart->get_cart();
    32 $html = ”;
    33
    34 $html .= ‘<h3>’.__(‘It has been sent succesfully.’, ‘usces’).'</h3>’.”\n”;
    35 $html .= ‘<div>’.”\n”;
    36 $html .= ‘<div>’.”\n”;
    30 37 $header = ‘<p>’.__(‘Thank you for shopping.’, ‘usces’).'<br />’.__(“If you have any questions, please contact us by ‘Contact’.”, ‘usces’).'</p>’;
    31 $html .= apply_filters(‘usces_filter_cartcompletion_page_header’, $header, $entry, $cart);
    32 $html .= ‘</div>;
    38 $html .= apply_filters(‘usces_filter_cartcompletion_page_header’, $header, $entry, $cart).”\n”;
    39 $html .= ‘</div><!– header_explanation –>’.”\n”;
    33 40
    34 $html .= ‘<form action=”‘ . get_option(‘home’) . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    35 <div><input name=”top” type=”submit” value=”‘.__(‘Back to the top page.’, ‘usces’).'” /></div>
    36 </form>’;
    41 require_once( USCES_PLUGIN_DIR . “/includes/completion_settlement.php”);
    37 42
    38 $html .= ‘<div>’;
    43 $html .= ‘<div>’.”\n”;
    39 44 $footer = ”;
    40 $html .= apply_filters(‘usces_filter_cartcompletion_page_footer’, $footer, $entry, $cart);
    41 $html .= ‘</div>;
    45 $html .= apply_filters(‘usces_filter_cartcompletion_page_footer’, $footer, $entry, $cart).”\n”;
    46 $html .= ‘</div><!– footer_explanation –>’.”\n”;
    42 47
    43 $html .= ‘</div>’;
    48 $html .= ‘<form action=”‘ . get_option(‘home’) . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>’.”\n”;
    49 $html .= ‘<div><input name=”top” type=”submit” value=”‘.__(‘Back to the top page.’, ‘usces’).'” /></div>’.”\n”;
    50 $html .= ‘</form>’.”\n”;
    51
    52 $html .= ‘</div><!– post –>’.”\n”;
    53 $html .= apply_filters(‘usces_filter_conversion_tracking’, NULL, $entry, $cart).”\n”;
    44 54 ?>
  • usc-e-shop/trunk/templates/cart/customer_info.php
    r250427 r282498
    73 73 $html .= ‘</td></tr>’;
    74 74 }
    75 //20100818ysk start
    76 $html .= usces_custom_field_input($usces_entries, ‘customer’, ‘name_pre’, ‘return’);
    77 //20100818ysk end
    75 78 $html .= ‘<tr>
    76 79 <th scope=”row”><em>*</em>’.__(‘Full name’, ‘usces’).'</th>
    85 88 </tr>’;
    86 89 }
    90 //20100818ysk start
    91 $html .= usces_custom_field_input($usces_entries, ‘customer’, ‘name_after’, ‘return’);
    92 //20100818ysk end
    87 93 $html .= ‘<tr>
    88 94 <th scope=”row”><em>*</em>’.__(‘Zip/Postal Code’, ‘usces’).'</th>
    112 118 <th scope=”row”>’.__(‘FAX number’, ‘usces’).'</th>
    113 119 <td colspan=”2″><input name=”customer[fax]” id=”fax” type=”text” value=”‘ . $usces_entries[‘customer’][‘fax’] . ‘” />’.__(‘Example)’, ‘usces’).’1000-10-1000</td>
    114 </tr>
    115 </table>
    120 </tr>’;
    121 //20100818ysk start
    122 $html .= usces_custom_field_input($usces_entries, ‘customer’, ‘fax_after’, ‘return’);
    123 //20100818ysk end
    124 $html .= ‘</table>
    116 125 <input name=”member_regmode” type=”hidden” value=”‘ . $member_regmode . ‘” />
    117 126
    122 131
    123 132 if(usces_is_membersystem_state() && $member_regmode != ‘editmemberfromcart’ && usces_is_login() == false ){
    124 $html .= ‘<input name=”reganddeliveryinfo” type=”submit” value=”‘.__(‘To the next while enrolling’, ‘usces’).'” />’;
    133 $html .= ‘<input name=”reganddeliveryinfo” type=”submit” value=”‘.__(‘To the next while enrolling’, ‘usces’).'”‘ . apply_filters(‘usces_filter_customerinfo_prebutton’, NULL) . ‘ />’;
    125 134 }elseif(usces_is_membersystem_state() && $member_regmode == ‘editmemberfromcart’ ){
    126 $html .= ‘<input name=”reganddeliveryinfo” type=”submit” value=”‘.__(‘Revise member information, and to next’, ‘usces’).'” />’;
    135 $html .= ‘<input name=”reganddeliveryinfo” type=”submit” value=”‘.__(‘Revise member information, and to next’, ‘usces’).'”‘ . apply_filters(‘usces_filter_customerinfo_nextbutton’, NULL) . ‘ />’;
    127 136 }
    128 137
  • usc-e-shop/trunk/templates/cart/confirm.php
    r258871 r282498
    153 153 <th>’.__(‘e-mail adress’, ‘usces’).'</th>
    154 154 <td>’ . $usces_entries[‘customer’][‘mailaddress1’] . ‘</td>
    155 </tr>
    156 <tr>
    155 </tr>’;
    156 //20100818ysk start
    157 $html .= usces_custom_field_info($usces_entries, ‘customer’, ‘name_pre’, ‘return’);
    158 //20100818ysk end
    159 $html .= ‘<tr>
    157 160 <th>’.__(‘Full name’, ‘usces’).'</th>
    158 161 <td>’ . $usces_entries[‘customer’][‘name1’] . ‘ ‘ . $usces_entries[‘customer’][‘name2’] . ‘</td>
    164 167 </tr>’;
    165 168 }
    169 //20100818ysk start
    170 $html .= usces_custom_field_info($usces_entries, ‘customer’, ‘name_after’, ‘return’);
    171 //20100818ysk end
    166 172 $html .= ‘<tr>
    167 173 <th>’.__(‘Zip/Postal Code’, ‘usces’).'</th>
    191 197 <th>’.__(‘FAX number’, ‘usces’).'</th>
    192 198 <td>’ . $usces_entries[‘customer’][‘fax’] . ‘</td>
    193 </tr>
    194 <tr>’;
    199 </tr>’;
    200 //20100818ysk start
    201 $html .= usces_custom_field_info($usces_entries, ‘customer’, ‘fax_after’, ‘return’);
    202 //20100818ysk end
    203 $html .= ‘<tr>’;
    195 204 $html .= ‘<td colspan=”2″><h3>’.__(‘Shipping address information’, ‘usces’).'</h3></td>
    196 </tr>
    197 <tr>
    205 </tr>’;
    206 //20100818ysk start
    207 $html .= usces_custom_field_info($usces_entries, ‘delivery’, ‘name_pre’, ‘return’);
    208 //20100818ysk end
    209 $html .= ‘<tr>
    198 210 <th>’.__(‘Full name’, ‘usces’).'</th><td>’ . $usces_entries[‘delivery’][‘name1’] . ‘ ‘ . $usces_entries[‘delivery’][‘name2’] . ‘</td>
    199 211 </tr>’;
    203 215 </tr>’;
    204 216 }
    217 //20100818ysk start
    218 $html .= usces_custom_field_info($usces_entries, ‘delivery’, ‘name_after’, ‘return’);
    219 //20100818ysk end
    205 220 $html .= ‘<tr>
    206 221 <th>’.__(‘Zip/Postal Code’, ‘usces’).'</th><td>’ . $usces_entries[‘delivery’][‘zipcode’] . ‘</td>
    223 238 <tr>
    224 239 <th>’.__(‘FAX number’, ‘usces’).'</th><td>’ . $usces_entries[‘delivery’][‘fax’] . ‘</td>
    225 </tr>
    226 <tr>’;
    240 </tr>’;
    241 //20100818ysk start
    242 $html .= usces_custom_field_info($usces_entries, ‘delivery’, ‘fax_after’, ‘return’);
    243 //20100818ysk end
    244 $html .= ‘<tr>’;
    227 245 $html .= ‘<td colspan=”2″><h3>’.__(‘Others’, ‘usces’).'</h3></td>
    228 246 </tr>’;
    233 251 <th>’.__(‘Delivery Time’, ‘usces’).'</th><td>’ . $usces_entries[‘order’][‘delivery_time’] . ‘</td>
    234 252 </tr>’;
    235 $html .= ‘<tr>
    236 <th>’.__(‘payment method’, ‘usces’).'</th><td>’ . $usces_entries[‘order’][‘payment_name’] . ‘</td>
    237 </tr>
    238 <tr>
    253
    254 $html .= ‘<tr>
    255 <th>’.__(‘payment method’, ‘usces’).'</th><td>’ . $usces_entries[‘order’][‘payment_name’] . usces_payment_detail($usces_entries) . ‘</td>
    256 </tr>’;
    257 //20100818ysk start
    258 //require_once( USCES_PLUGIN_DIR . “/includes/confirm_custom_order_form.php”);
    259 $html .= usces_custom_field_info($usces_entries, ‘order’, ”, ‘return’);
    260 $html .= ‘<tr>
    239 261 <th>’.__(‘Notes’, ‘usces’).'</th><td>’ . nl2br($usces_entries[‘order’][‘note’]) . ‘</td>
    240 </tr>
    241 </table>’;
    242
    243 $payments = usces_get_payments_by_name($usces_entries[‘order’][‘payment_name’]);
    244 if( ‘acting’ != $payments[‘settlement’]  || 0 == $usces_entries[‘order’][‘total_full_price’] ){
    245 $html .= ‘<form action=”‘ . USCES_CART_URL . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    246 <div><input name=”backDelivery” type=”submit” value=”‘.__(‘Back to payment method page.’, ‘usces’).'” />&nbsp;&nbsp;
    247 <input name=”purchase” type=”submit” value=”‘.__(‘Checkout’, ‘usces’).'” /></div>’;
    248 }else{
    249 //$notify_url = urlencode(USCES_CART_URL . ‘&purchase’);
    250 $send_item_code = $this->getItemCode($cart[0][‘post_id’]);
    251 $send_item_name = $this->getItemName($cart[0][‘post_id’]);
    252 if( count($cart) > 1 ) $send_item_name .= ‘ ‘.__(‘Others’, ‘usces’);
    253 switch($payments[‘module’]){
    254 case ‘paypal.php’:
    255 require_once($this->options[‘settlement_path’] . “paypal.php”);
    256 $html .= ‘<form action=”‘ . USCES_CART_URL . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    257 <div><input name=”backDelivery” type=”submit” value=”‘.__(‘Back’, ‘usces’).'” />&nbsp;&nbsp;</div>’;
    258 $html = apply_filters(‘usces_filter_confirm_inform’, $html);
    259 $html .= ‘</form>
    260 <form action=”https://’ . $usces_paypal_url . ‘/cgi-bin/webscr” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    261 <input type=”hidden” name=”cmd” value=”_xclick”>
    262 <input type=”hidden” name=”business” value=”‘ . $usces_paypal_business . ‘”>
    263 <input type=”hidden” name=”custom” value=”‘ . $this->get_uscesid() . ‘”>
    264 <input type=”hidden” name=”lc” value=”JP”>’;
    265 if( 1 < count($cart) ) {
    266 $html .= ‘<input type=”hidden” name=”item_name” value=”‘ . $send_item_name . __(‘and others’, ‘usces’) . ‘”>’;
    267 }else{
    268 $html .= ‘<input type=”hidden” name=”item_name” value=”‘ . $send_item_name . ‘”>’;
    269 }
    270 $html .= ‘<input type=”hidden” name=”item_number” value=””>
    271 <input type=”hidden” name=”amount” value=”‘ . $usces_entries[‘order’][‘total_full_price’] . ‘”>
    272 <input type=”hidden” name=”currency_code” value=”JPY”>
    273 <input type=”hidden” name=”cancel_return” value=”‘ . USCES_CART_URL . ‘&confirm”>
    274 <input type=”hidden” name=”notify_url” value=”‘ . USCES_CART_URL . ‘&acting_return=paypal_ipn&usces=’ . $this->get_uscesid() . ‘”>
    275 <input type=”hidden” name=”button_subtype” value=”products”>
    276 <input type=”hidden” name=”tax_rate” value=”0.000″>
    277 <input type=”hidden” name=”shipping” value=”0″>
    278 <input type=”hidden” name=”bn” value=”PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest”>
    279 <div><input type=”image” src=”https://www.paypal.com/ja_JP/JP/i/btn/btn_buynowCC_LG.gif” border=”0″ name=”submit” alt=”PayPal”>
    280 <img alt=”” border=”0″ src=”https://www.paypal.com/ja_JP/i/scr/pixel.gif” width=”1″ height=”1″></div>’;
    281 break;
    282 case ‘epsilon.php’:
    283 $html .= ‘<form action=”‘ . USCES_CART_URL . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    284 <input type=”hidden” name=”user_id” value=”‘ . $memid . ‘”>
    285 <input type=”hidden” name=”user_name” value=”‘ . $usces_entries[‘customer’][‘name1’] . ‘ ‘ . $usces_entries[‘customer’][‘name2’] . ‘”>
    286 <input type=”hidden” name=”user_mail_add” value=”‘ . $usces_entries[‘customer’][‘mailaddress1’] . ‘”>’;
    287 if( 1 < count($cart) ) {
    288 $html .= ‘<input type=”hidden” name=”item_code” value=”99999999″>
    289 <input type=”hidden” name=”item_name” value=”‘ . substr($send_item_name, 0, 50) . ‘ ‘ . __(‘and others’, ‘usces’) . ‘”>’;
    290 }else{
    291 $html .= ‘<input type=”hidden” name=”item_code” value=”‘ . $send_item_code . ‘”>
    292 <input type=”hidden” name=”item_name” value=”‘ . substr($send_item_name, 0, 64) . ‘”>’;
    293 }
    294 $html .= ‘<input type=”hidden” name=”item_price” value=”‘ . $usces_entries[‘order’][‘total_full_price’] . ‘”>
    295 <div><input name=”backDelivery” type=”submit” value=”‘.__(‘Back’, ‘usces’).'” />&nbsp;&nbsp;
    296 <input name=”purchase” type=”submit” value=”‘.__(‘Checkout’, ‘usces’).'” /></div>’;
    297 break;
    298 default:
    299 $html .= ‘<form action=”‘ . USCES_CART_URL . ‘” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}”>
    300 <div><input name=”backDelivery” type=”submit” value=”‘.__(‘Back’, ‘usces’).'” />&nbsp;&nbsp;
    301 <input name=”purchase” type=”submit” value=”‘.__(‘Checkout’, ‘usces’).'” /></div>’;
    302 }
    303 }
    304
    305 $html = apply_filters(‘usces_filter_confirm_inform’, $html);
    306 $html .= ‘</form><div>’;
    262 </tr>’;
    263 //20100818ysk end
    264 $html .= ‘</table>’;
    265
    266 require_once( USCES_PLUGIN_DIR . “/includes/purchase_button.php”);
    267
    268
    269 $html .= ‘<div>’;
    307 270 $footer = ”;
    308 271 $html .= apply_filters(‘usces_filter_confirm_page_footer’, $footer);
  • usc-e-shop/trunk/templates/cart/delivery_info.php
    r253036 r282498
    1 1 <?php
    2 2 $usces_entries = $this->cart->get_entry();
    3 $usces_secure_link = get_option(‘usces_secure_link’);
    3 4 $html = ”;
    4 5
    5 $html .= ‘
    6 <script type=”text/javascript”>
    7 var selected_delivery_method = \’\’;
    8 var selected_delivery_time = \’\’;
    6 require_once( USCES_PLUGIN_DIR . “/includes/delivery_info_script.php”);
    9 7
    10 jQuery(function($){‘;
    11 if($usces_entries[‘order’][‘delivery_method’] === NULL){
    12 $default_deli = $this->get_available_delivery_method();
    13 $html .= ‘selected_delivery_method = \” . $default_deli[0] . ‘\’;’;
    14 }else{
    15 $html .= ‘selected_delivery_method = \” . $usces_entries[‘order’][‘delivery_method’] . ‘\’;’;
    16 }
    17 $html .= ‘selected_delivery_time = \” . $usces_entries[‘order’][‘delivery_time’] . ‘\’;
    18 var delivery_time = [];delivery_time[0] = [];’;
    19 foreach($this->options[‘delivery_method’] as $dmid => $dm){
    20 $lines = explode(“\n”, $dm[‘time’]);
    21 $html .= ‘delivery_time[‘ . $dm[‘id’] . ‘] = [];’;
    22 foreach((array)$lines as $line){
    23 if(trim($line) != ”){
    24 $html .= ‘delivery_time[‘ . $dm[‘id’] . ‘].push(“‘ . trim($line) . ‘”);’;
    25 }
    26 }
    27 }
    28 $html .= “
    29 $(‘#delivery_method_select’).change(function() {
    30 orderfunc.make_delivery_time(($(‘#delivery_method_select option:selected’).val()-0));
    31 });
    32
    33 orderfunc = {
    34 make_delivery_time : function(selected) {
    35 var option = ”;
    36 if(delivery_time[selected] != undefined){
    37 for(var i=0; i<delivery_time[selected].length; i++){
    38 if( delivery_time[selected] == selected_delivery_time ) {
    39 option += ‘<option value=\”‘ + delivery_time[selected] + ‘\” selected=\”selected\”>’ + delivery_time[selected] + ‘</option>’;
    40 }else{
    41 option += ‘<option value=\”‘ + delivery_time[selected] + ‘\”>’ + delivery_time[selected] + ‘</option>’;
    42 }
    43 }
    44 }
    45 if(option == ”){
    46 option = ‘<option value=\”” . __(‘There is not a choice.’, ‘usces’) . “\”>’ + ‘” . __(‘There is not a choice.’, ‘usces’) . “‘ + ‘</option>’;
    47 }
    48 $(\”#delivery_time_select\”).html(option);
    49 }
    50 };
    51 });
    52 jQuery(document).ready(function($){“;
    53 if($usces_entries[‘delivery’][‘delivery_flag’] == 0) {
    54 $html .= “$(\”#delivery_table\”).css({display: \”none\”});”;
    55 }
    56 $html .= “orderfunc.make_delivery_time(selected_delivery_method);
    57 });
    58 </script>”;
    59 8 $html .= ‘<div id=”delivery-info”>
    60 9
    94 43 </tr>
    95 44 </table>
    96 <table id=”delivery_table”>
    97 <tr>
    45 <table id=”delivery_table”>’;
    46 //20100818ysk start
    47 $html .= usces_custom_field_input($usces_entries, ‘delivery’, ‘name_pre’, ‘return’);
    48 //20100818ysk end
    49 $html .= ‘<tr>
    98 50 <th width=”127″ scope=”row”><em>*</em>’.__(‘Full name’, ‘usces’).'</th>
    99 51 <td width=”257″>’.__(‘Familly name’, ‘usces’).'<input name=”delivery[name1]” id=”name1″ type=”text” value=”‘ . $usces_entries[‘delivery’][‘name1’] . ‘” onKeyDown=”if (event.keyCode == 13) {return false;}” /></td>
    107 59 </tr>’;
    108 60 }
    61 //20100818ysk start
    62 $html .= usces_custom_field_input($usces_entries, ‘delivery’, ‘name_after’, ‘return’);
    63 //20100818ysk end
    109 64 $html .= ‘<tr>
    110 65 <th scope=”row”><em>*</em>’.__(‘Zip/Postal Code’, ‘usces’).'</th>
    134 89 <th scope=”row”>’.__(‘FAX number’, ‘usces’).'</th>
    135 90 <td colspan=”2″><input name=”delivery[fax]” id=”fax” type=”text” value=”‘ . $usces_entries[‘delivery’][‘fax’] . ‘” onKeyDown=”if (event.keyCode == 13) {return false;}” />1000-10-1000</td>
    136 </tr>
    137 </table>’;
    91 </tr>’;
    92 //20100818ysk start
    93 $html .= usces_custom_field_input($usces_entries, ‘delivery’, ‘fax_after’, ‘return’);
    94 //20100818ysk end
    95 $html .= ‘</table>’;
    138 96 $html .= ‘<table id=”time”>’;
    139 97 $html .= ‘<tr>
    149 107 <td colspan=”2″>’ . usces_the_payment_method( $usces_entries[‘order’][‘payment_name’], ‘return’ ) . ‘</td>
    150 108 </tr>
    109 </table>’;
    110
    111 require_once( USCES_PLUGIN_DIR . “/includes/delivery_secure_form.php”);
    112 //20100818ysk start
    113 //20100809ysk start
    114 //require_once( USCES_PLUGIN_DIR . “/includes/delivery_custom_order_form.php”);
    115 //$meta = has_custom_order_meta();
    116 $meta = usces_has_custom_field_meta(‘order’);
    117 if(!empty($meta) and is_array($meta)) {
    118 $html .= ‘
    119 <table id=”custom_order”>’;
    120
    121 $html .= usces_custom_field_input($usces_entries, ‘order’, ”, ‘return’);
    122
    123 $html .= ‘
    124 </table>’;
    125 }
    126 //20100809ysk end
    127 //20100818ysk end
    128
    129
    130 $html .= ‘<table id=”notes_table”>
    151 131 <tr>
    152 132 <th scope=”row”>’.__(‘Notes’, ‘usces’).'</th>
    156 136
    157 137 <div><input name=”order[cus_id]” type=”hidden” value=”‘ . $this->cus_id . ‘” />
    158 <input name=”backCustomer” type=”submit” value=”‘.__(‘Back’, ‘usces’).'” />&nbsp;&nbsp;
    159 <input name=”confirm” type=”submit” value=”‘.__(‘ Next ‘, ‘usces’).'” /></div>
    138 <input name=”backCustomer” type=”submit” value=”‘.__(‘Back’, ‘usces’).'”‘ . apply_filters(‘usces_filter_deliveryinfo_prebutton’, NULL) . ‘ />&nbsp;&nbsp;
    139 <input name=”confirm” type=”submit” value=”‘.__(‘ Next ‘, ‘usces’).'”‘ . apply_filters(‘usces_filter_deliveryinfo_nextbutton’, NULL) . ‘ /></div>
    160 140 </form>’;
    161 141
  • usc-e-shop/trunk/templates/search_item.php
    r267698 r271529
    79 79 <div>
    80 80 <label>’.__(‘Categories: AND Search’, ‘usces’).'</label>’ . usces_categories_checkbox(‘return’) . ‘
    81 </div>
    82 <input name=”usces_search_button” type=”submit” value=”‘.__(‘Search’, ‘usces’).'” onclick=”newsubmit()” />
    83 <input name=”paged” id=”usces_paged” type=”hidden” value=”‘ . $uscpaged . ‘” />
    81 </div>’;
    82
    83 $usces_search_button = ‘<input name=”usces_search_button” type=”submit” value=”‘.__(‘Search’, ‘usces’).'” onclick=”newsubmit()” />’;
    84 $html .= apply_filters(‘usces_filter_search_button’, $usces_search_button);
    85
    86 $html .= ‘<input name=”paged” id=”usces_paged” type=”hidden” value=”‘ . $uscpaged . ‘” />
    84 87 <input name=”usces_search” type=”hidden” />
    85 88 </form>’;
カテゴリー: お知らせ タグ:
関連記事