関数
ItemPage::addWishlistButton( string $html )
Adds wishlist button next to “Add to Cart” button on item pages
パラメータ パラメータ
- $html
(文字列) (必須)
ファイル: src/React/ItemPage/ItemPage.php
public function addWishlistButton($html) { global $usces; $currentsku = urlencode($usces->itemsku['code']); ob_start(); ?> <div class="wcexwl item-page-buttons flex row-wrap ai-stretch jc-flex-end ml-05rem-children-not-first mt-05rem-children"> <?php echo $html; ?> <?php if ($this->skutrackerset === false) : ?> <input type="hidden" id="wcexwl_itempage_current_sku_<?php echo esc_attr((int)get_the_ID()); ?>" value="<?php echo esc_attr($currentsku); ?>" /> <?php $this->skutrackerset = true; ?> <?php endif; ?> <div class="wcexwl_react_app wcexwl flex row-wrap ai-stretch" id="wcexwl_itempage_app_<?php echo esc_attr($currentsku); ?>" name="<?php echo esc_attr($currentsku); ?>" ></div> </div> <?php $html = (string)ob_get_clean(); return $html; }