関数
CartPage::getBatchActionsHtml()
一括処理セクションのHTMLを返す
戻り値 戻り値
ファイル: src/Views/CartPage/CartPage.php
public static function getBatchActionsHtml() {
$display = Master::getFilterableValues();
ob_start();
?>
<div class="wcexwl flex column-nowrap mb-1rem cart-page-batch-actions">
<div class="upquant-inform"><?php _e('Press the `update` button when you change the amount of items.', 'usces'); ?></div>
<div class="batch-select-container wcexwl flex row-nowrap">
<div class="wcexwl flex row-nowrap">
<select id="wcexwl_batch_dropdown" class="wcexwl batch-select" value="none">
<option value="none"><?php echo $display['selectText']; ?></option>
<option value="addToWishlist"><?php echo $display['toWishlistSelectText']; ?></option>
<option value="batchDelete"><?php echo $display['deleteSelectText']; ?></option>
</select>
<input
id="wcexwl_batch_button"
class="wcexwl <?php echo $display['btnprimary']; ?> batch-button"
type="submit"
value="<?php echo $display['cartBatchButtonText']; ?>"
onclick="return wcexwl.cart.handleBatchAction(event);"
/>
</div>
<div class="wcexwl flex p-0 m-0 ml-auto upbutton cart-quant-update-btn">
<input
type="submit"
name="upButton"
class="wcexwl m-0"
value="<?php _e('Quantity renewal', 'usces'); ?>"
onclick="return uscesCart.upCart();"
/>
</div>
</div>
</div>
<?php
$html = (string)ob_get_clean();
/**
* Filters cart page batch dropdown HTML section
*
* @important
* @param string $html
*/
$html = apply_filters('wcexwl_filter_cart_batch_dropdown_html', $html);
return $html;
}