• プラグイン一覧
    - WCEX Item Combo Set
    - WCEX Amazon Pay
    - WCEX Wishlist お気に入りリスト
  • リリース情報
  • お役立ちコラム
  • お問い合わせ
  • サポート
    • よくある質問
      • WCEX Amazon Pay
      • WCEX Wishlist お気に入りリスト
      • wcex-item-combo-set
    • リファレンス
      • WCEX Amazon Pay
      • WCEX Wishlist お気に入りリスト
      • wcex-item-combo-set
新規会員登録
ログイン
新規会員登録
ログイン
カート
  • プラグイン一覧
    • - WCEX Item Combo Set
    • - WCEX Amazon Pay
    • - WCEX Wishlist お気に入りリスト
  • リリース情報
  • お役立ちコラム
  • サポート
    • - よくある質問
      • - WCEX Amazon Pay
      • - WCEX Wishlist お気に入りリスト
      • - wcex-item-combo-set
    • - リファレンス
      • - WCEX Amazon Pay
      • - WCEX Wishlist お気に入りリスト
      • - wcex-item-combo-set
  • お問い合わせ
Aivec APPs > wcex-item-combo-set > クラス > OrderListCSV
レファレンス
バージョン
1.0.6
絞り込み:

目次

  • ソース
  • 関数

フック

  • アクション
  • フィルター

ファンクション

    クラス

    OrderListCSV

    Order list CSV handler

    ソース #ソース

    ファイル: src/Admin/OrderListCSV.php

    class OrderListCSV
    {
        /**
         * Registers hooks
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return void
         */
        public static function init() {
            add_action('usces_action_chk_pro_detail', [get_class(), 'addComboGroupItemsDownloadColCheckbox'], 10, 1);
            add_filter('usces_filter_chk_pro_label_detail', [get_class(), 'addComboGroupItemsColLabel'], 10, 1);
            add_filter('usces_filter_chk_pro_data_detail', [get_class(), 'addComboGroupItemsColCell'], 10, 4);
            add_filter('usces_filter_chk_pro', [get_class(), 'persistCheckedStatus'], 10, 1);
        }
    
        /**
         * Adds combo-set column checkbox to download dialog
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @param array $chk_pro
         * @return void
         */
        public static function addComboGroupItemsDownloadColCheckbox($chk_pro) {
            ?>
            <label for="chk_pro[combo_set]">
                <input
                    type="checkbox"
                    class="check_pro check_product"
                    id="chk_pro[combo_set]"
                    value="combo_set"
                    <?php usces_checked($chk_pro, 'combo_set'); ?> />
                <?php esc_html_e('Combo-Set Selections', 'wcexics'); ?>
            </label>
            <?php
        }
    
        /**
         * Appends a column header label for combo-set group items
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @param null $null
         * @return null|string
         */
        public static function addComboGroupItemsColLabel($null) {
            if (empty($_GET['check'])) {
                return $null;
            }
    
            if (empty($_GET['check']['combo_set']) || $_GET['check']['combo_set'] !== 'on') {
                return $null;
            }
    
            $th_h = ',"';
            $th_f = '"';
            return $th_h . __('Combo-Set Selections', 'wcexics') . $th_f;
        }
    
        /**
         * Appends a column cell for combo-set group items
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @param null  $null
         * @param array $usces_opt_order
         * @param array $array
         * @param array $cart_row
         * @return null|string
         */
        public static function addComboGroupItemsColCell($null, $usces_opt_order, $array, $cart_row) {
            if (empty($_GET['check'])) {
                return $null;
            }
    
            if (empty($_GET['check']['combo_set']) || $_GET['check']['combo_set'] !== 'on') {
                return $null;
            }
    
            $csdata = CartPages::getComboSetCart($cart_row);
            $details = '';
            if (!empty($csdata)) {
                $details = Cart::getComboSetCartDetailsSpaceSeparated($csdata['cartRows']);
            }
    
            $td_h = ',"';
            $td_f = '"';
            return !empty($details) ? $td_h . $details . $td_f : $null;
        }
    
        /**
         * Persist checked status for CSV product download combo-set checkbox
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @param array $chk_pro
         * @return array
         */
        public static function persistCheckedStatus($chk_pro) {
            $chk_pro['combo_set'] = isset($_REQUEST['check']['combo_set']) ? 1 : 0;
            return $chk_pro;
        }
    }
    

    ソースを伸ばす ソースを縮める


    関数 #関数

    Top ↑

    • addComboGroupItemsColCell — Appends a column cell for combo-set group items
    • addComboGroupItemsColLabel — Appends a column header label for combo-set group items
    • addComboGroupItemsDownloadColCheckbox — Adds combo-set column checkbox to download dialog
    • init — Registers hooks
    • persistCheckedStatus — Persist checked status for CSV product download combo-set checkbox

    • 新規会員登録
    • ログイン
      • プラグイン一覧
      • 会社概要
      • リリース情報
      • よくある質問
      • お役立ちコラム
      • お問い合わせ
      • 個人情報保護方針
      • 特定商取引法に基づく表記
      • 情報セキュリティ基本方針
      • 利用規約

    アイベック合同会社は「Welcart」「Amazon Pay」の公式パートナーです。

    ※Amazon、Amazon.co.jp、Amazon Payおよびそれらのロゴは、Amazon.com,inc.またはその関連会社の商標です。

    © 2025 Aivec llc All Rights Reserved.