• プラグイン一覧
    - 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 Amazon Pay > クラス > Notes
レファレンス
バージョン
2.6.4
絞り込み:

目次

  • ソース
  • 関数

フック

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

ファンクション

    クラス

    Notes

    Notes form Vue component

    ソース #ソース

    ファイル: src/Components/Notes/Notes.php

    class Notes extends VueComponent
    {
        /**
         * **Not implemented**
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return void
         */
        public function init() {
        }
    
        /**
         * Returns component name as is recognized by Vue.
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return string
         */
        public function getComponentName() {
            return 'notesFormComponent';
        }
    
        /**
         * Notes form component template.
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @global array $usces_members
         * @global array $usces_entries
         * @return void
         */
        public function template() {
            global $usces_entries;
    
            $note = null;
            if (empty($usces_entries['order']['note'])) {
                /**
                 * Mirrored Welcart filter
                 *
                 * @ignore
                 */
                $note = apply_filters('usces_filter_default_order_note', null);
            } else {
                $note = esc_html($usces_entries['order']['note']);
            }
    
            $propsAndEvents = [];
            if ($this->controlledComponent === true) {
                $propsAndEvents[] = 'v-bind:purchase-payload="purchasePayload"';
                $propsAndEvents[] = '@update-payload="updatePayload"';
            }
    
            $allPropsAndEvents = join(' ', $propsAndEvents);
            ?>
            <notes-form-component
                inline-template
                note-session-val='<?php echo $note; ?>'
                <?php echo $allPropsAndEvents; ?>
            >
                <?php ob_start(); ?>
                <table class="customer_form" id="notes_table">
                    <tr>
                        <th scope="row"><?php _e('Notes', 'usces'); ?></th>
                        <td colspan="2">
                            <textarea
                                v-model="note"
                                name="offer[note]"
                                id="note"
                                class="notes">
                            </textarea>
                        </td>
                    </tr>
                </table>
                <?php
                $vuehtml = ob_get_clean();
                /**
                 * Filters the `notes-form-component` Vue component HTML shown on the Quickpay page
                 *
                 * @param string $vuehtml
                 */
                echo apply_filters('wcexaap_checkout_review_filter_notes_form', $vuehtml);
                ?>
            </notes-form-component>
            <?php
        }
    }
    

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


    関数 #関数

    Top ↑

    • getComponentName — Returns component name as is recognized by Vue.
    • init — **Not implemented**
    • template — Notes form component template.

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

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

    ※Amazon、Amazon.co.jp、Amazon Payおよびそれらのロゴは、Amazon.com,inc.またはその関連会社の商標です。
    ※LINE Pay、およびLINE Pay 提携サービスのロゴは、法律上保護を受ける商標です。

    © 2025 Aivec llc All Rights Reserved.