• プラグイン一覧
    - 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 Wishlist お気に入りリスト > ファンクション > wcexwl_get_wishlist_row
レファレンス
バージョン
3.1.6
絞り込み:
目的から探す
お気に入りデータを取得 お気に入りページのHTMLを取得 スナックバーアラート

目次

  • パラメータ
  • 戻り値
  • ソース
  • 関連アイテム
    • 使用するアイテム
    • 使用されるアイテム

フック

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

ファンクション

  • データ取得
  • ユーティリティー
  • 条件判断
  • 表示系

ファンクション

表示系

wcexwl_get_wishlist_row( array $row )

お気に入りリストの特定の一つの商品のHTMLを返す


パラメータ #パラメータ

$row

(配列) (必須)


戻り値 #戻り値

Top ↑

(文字列)

ソース #ソース

Top ↑

ファイル: src/template-functions.php

function wcexwl_get_wishlist_row(array $row) {
    $id = $row['id'];

    $sections = wcexwl_get_wlpage_all_row_sections($row);
    $ipricerow = $sections['ipricerow'];
    $istockrow = $sections['istockrow'];
    $igptekiyo = $sections['igptekiyo'];
    $addtocartbtn = $sections['addtocartbtn'];
    $deletebtn = $sections['deletebtn'];
    $ipagebtn = $sections['ipagebtn'];
    $checkbox = $sections['checkbox'];
    $thumbnail = $sections['thumbnail'];
    $ioptions = $sections['ioptions'];

    ob_start();
    ?>
    <div class="wcexwl mt-1rem item-info">
        <?php echo $ipricerow; ?>
        <?php if (!$row['itemDeleted']) : ?>
            <?php echo $istockrow; ?>
            <?php if ($row['isgptekiyo']) : ?>
                <?php echo $igptekiyo?>
            <?php endif; ?>
        <?php endif; ?>
    </div>
    <?php
    $actionDetails = (string)ob_get_clean();
    /**
     * Filters the HTML of the action details for an item row displayed on the wishlist page
     *
     * @important
     * @param string $actionDetails
     * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
     * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
     */
    $actionDetails = apply_filters('wcexwl_filter_wlpage_action_details_section', $actionDetails, $row, $sections);

    ob_start();
    if ($row['itemDeleted']) {
        ?>
        <div class="item-info-extra">
            <span><?php echo $row['deletedInfoText']; ?></span>
        </div>
        <?php echo $deletebtn; ?>
        <?php
        echo $actionDetails;
    } elseif (!$row['optionsAreValid']) {
        ?>
        <div class="item-info-extra">
            <span><?php echo $row['changedOptsText']; ?></span>
        </div>
        <div class="wcexwl mb-05rem-children-not-last">
            <?php echo $ipagebtn; ?>
            <?php echo $deletebtn; ?>
        </div>
        <?php
        echo $actionDetails;
    } else {
        ?>
        <div class="wcexwl mb-05rem-children-not-last">
            <?php echo $addtocartbtn; ?>
            <?php echo $deletebtn; ?>
        </div>
        <?php
        echo $actionDetails;
    }
    $actionSection = (string)ob_get_clean();
    /**
     * Filters the HTML of the action section for an item row displayed on the wishlist page
     *
     * @important
     * @param string $actionSection
     * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
     * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
     */
    $actionSection = apply_filters('wcexwl_filter_wlpage_action_section', $actionSection, $row, $sections);

    ob_start();
    ?>
    <div id="wcexwl_row_<?php echo $id; ?>" class="wl-grid row-item">
        <div class="wcexwl flex column-nowrap item-image-area">
            <?php ob_start(); ?>
            <div class="wcexwl flex column-nowrap">
                <?php echo $checkbox; ?>
                <div class="item-thumbnail">
                    <?php echo $thumbnail; ?>
                </div>
            </div>
            <?php
            $html = (string)ob_get_clean();
            /**
             * Filters the HTML of the item image area for an item row displayed on the wishlist page
             *
             * @important
             * @param string $html
             * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
             * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
             */
            echo apply_filters('wcexwl_filter_wlpage_item_image_area', $html, $row, $sections);
            ?>
        </div>
        <div class="wl-subgrid">
            <div class="item-description-area">
                <?php ob_start(); ?>
                <p>
                    <?php
                    /**
                     * Filters the HTML of the cart item name for an item row displayed on the wishlist page
                     *
                     * @important
                     * @param string $html
                     * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
                     * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
                     */
                    echo apply_filters(
                        'wcexwl_filter_wlpage_cart_item_name',
                        $row['cartItemName'] . '<br />',
                        $row,
                        $sections
                    );
                    echo $ioptions;
                    /**
                     * Use this hook to add HTML to the bottom of the item description area for each
                     * item on the wishlist page.
                     *
                     * @important
                     * @param array $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
                     * @param array $sections See wcexwl_get_wlpage_all_row_sections()
                     */
                    do_action('wcexwl_wlpage_after_item_description_area_options', $row, $sections);
                    ?>
                </p>
                <?php
                $html = (string)ob_get_clean();
                /**
                 * Filters the HTML of the item description area for an item row displayed on the wishlist page
                 *
                 * @important
                 * @param string $html
                 * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
                 * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
                 */
                echo apply_filters('wcexwl_filter_wlpage_item_description_area', $html, $row, $sections);
                ?>
            </div>
            <div class="item-actions-area">
                <?php ob_start(); ?>
                <div class="wcexwl flex actions-wrapper">
                    <div class="wcexwl flex column-nowrap actions w-100">
                        <?php echo $actionSection; ?>
                    </div>
                </div>
                <?php
                $html = (string)ob_get_clean();
                /**
                 * Filters the HTML of the actions area for an item row displayed on the wishlist page
                 *
                 * @important
                 * @param string $html
                 * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
                 * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
                 */
                echo apply_filters('wcexwl_filter_wlpage_item_actions_area', $html, $row, $sections);
                ?>
            </div>
        </div>
    </div>
    <?php
    $html = (string)ob_get_clean();
    /**
     * Filters all HTML for an item row displayed on the wishlist page
     *
     * @important
     * @param string $html
     * @param array  $row      See \Aivec\Welcart\Extensions\Wishlist\API\CRUD::buildWishlistRow()
     * @param array  $sections See wcexwl_get_wlpage_all_row_sections()
     */
    $html = apply_filters('wcexwl_filter_wlpage_wishlist_row', $html, $row, $sections);

    return $html;
}

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


関連アイテム #関連アイテム

Top ↑

使用するアイテム #使用するアイテム

使用するアイテム
説明
src/template-functions.php: wcexwl_get_wlpage_all_row_sections()

お気に入りリストページの商品のセクションごとのHTMLを返す

src/template-functions.php: wcexwl_filter_wlpage_action_details_section

お気に入りリストページに表示されている商品列の動作の詳細のHTMLをフィルタリングする

src/template-functions.php: wcexwl_filter_wlpage_action_section

お気に入りリストページに表示されている商品列の動作セクションのHTMLをフィルタリングする

src/template-functions.php: wcexwl_filter_wlpage_item_image_area

お気に入りリストページに表示されている商品列の商品画像エリアのHTMLをフィルタリングする

src/template-functions.php: wcexwl_filter_wlpage_cart_item_name

お気に入りリストページに表示されている商品列の表示名のHTMLをフィルタリングする

src/template-functions.php: wcexwl_wlpage_after_item_description_area_options

お気に入りリストページの各商品の商品説明エリアの下部に、HTMLを追加する際にこのフックを使用する

src/template-functions.php: wcexwl_filter_wlpage_item_description_area

お気に入りリストページに表示されている商品列の商品説明エリアのHTMLをフィルタリングする

src/template-functions.php: wcexwl_filter_wlpage_item_actions_area

お気に入りリストページに表示されている商品列のアクションエリアのHTMLをフィルタリングする

src/template-functions.php: wcexwl_filter_wlpage_wishlist_row

お気に入りリストページに表示されている商品列のすべてのHTMLをフィルタリングする

もっとみる (4件) 非表示

使用されるアイテム #使用されるアイテム

Top ↑

使用されるアイテム説明
src/template-functions.php: wcexwl_get_wishlist_rows()

お気に入りリストの全アイテムのHTMLを返す

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

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

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

© 2025 Aivec llc All Rights Reserved.