コード例 #1
0
ファイル: cart.php プロジェクト: rbredow/allyzabbacart
        } else {
            ?>
        <?php 
            if (count($shippingMethods) > 1 && $fullMode) {
                ?>
        <tr>
          <th colspan="4" class="alignRight"><?php 
                _e('Shipping Method', 'cart66');
                ?>
: &nbsp;
            <?php 
                if (Cart66Setting::getValue('international_sales')) {
                    ?>
              <select name="shipping_country_code" id="shipping_country_code">
                <?php 
                    $customCountries = Cart66Common::getCustomCountries();
                    foreach ($customCountries as $code => $name) {
                        $selected_country = '';
                        if ($code == Cart66Session::get('Cart66ShippingCountryCode')) {
                            $selected_country = ' selected="selected"';
                        }
                        echo "<option value='{$code}'{$selected_country}>{$name}</option>\n";
                    }
                    ?>
              </select>
            <?php 
                } else {
                    ?>
              <input type="hidden" name="shipping_country_code" value="<?php 
                    echo Cart66Common::getHomeCountryCode();
                    ?>