WC_Install::get_cart_block_content()
Get the Cart block content.
Method of the class: WC_Install{}
No Hooks.
Return
String
.
Usage
$result = WC_Install::get_cart_block_content();
Changelog
Since 8.3.0 | Introduced. |
WC_Install::get_cart_block_content() WC Install::get cart block content code WC 9.4.2
protected static function get_cart_block_content() { return '<!-- wp:woocommerce/cart --> <div class="wp-block-woocommerce-cart alignwide is-loading"><!-- wp:woocommerce/filled-cart-block --> <div class="wp-block-woocommerce-filled-cart-block"><!-- wp:woocommerce/cart-items-block --> <div class="wp-block-woocommerce-cart-items-block"><!-- wp:woocommerce/cart-line-items-block --> <div class="wp-block-woocommerce-cart-line-items-block"></div> <!-- /wp:woocommerce/cart-line-items-block --> <!-- wp:woocommerce/cart-cross-sells-block --> <div class="wp-block-woocommerce-cart-cross-sells-block"><!-- wp:heading {"fontSize":"large"} --> <h2 class="wp-block-heading has-large-font-size">' . __( 'You may be interested in…', 'woocommerce' ) . '</h2> <!-- /wp:heading --> <!-- wp:woocommerce/cart-cross-sells-products-block --> <div class="wp-block-woocommerce-cart-cross-sells-products-block"></div> <!-- /wp:woocommerce/cart-cross-sells-products-block --></div> <!-- /wp:woocommerce/cart-cross-sells-block --></div> <!-- /wp:woocommerce/cart-items-block --> <!-- wp:woocommerce/cart-totals-block --> <div class="wp-block-woocommerce-cart-totals-block"><!-- wp:woocommerce/cart-order-summary-block --> <div class="wp-block-woocommerce-cart-order-summary-block"><!-- wp:woocommerce/cart-order-summary-heading-block --> <div class="wp-block-woocommerce-cart-order-summary-heading-block"></div> <!-- /wp:woocommerce/cart-order-summary-heading-block --> <!-- wp:woocommerce/cart-order-summary-coupon-form-block --> <div class="wp-block-woocommerce-cart-order-summary-coupon-form-block"></div> <!-- /wp:woocommerce/cart-order-summary-coupon-form-block --> <!-- wp:woocommerce/cart-order-summary-subtotal-block --> <div class="wp-block-woocommerce-cart-order-summary-subtotal-block"></div> <!-- /wp:woocommerce/cart-order-summary-subtotal-block --> <!-- wp:woocommerce/cart-order-summary-fee-block --> <div class="wp-block-woocommerce-cart-order-summary-fee-block"></div> <!-- /wp:woocommerce/cart-order-summary-fee-block --> <!-- wp:woocommerce/cart-order-summary-discount-block --> <div class="wp-block-woocommerce-cart-order-summary-discount-block"></div> <!-- /wp:woocommerce/cart-order-summary-discount-block --> <!-- wp:woocommerce/cart-order-summary-shipping-block --> <div class="wp-block-woocommerce-cart-order-summary-shipping-block"></div> <!-- /wp:woocommerce/cart-order-summary-shipping-block --> <!-- wp:woocommerce/cart-order-summary-taxes-block --> <div class="wp-block-woocommerce-cart-order-summary-taxes-block"></div> <!-- /wp:woocommerce/cart-order-summary-taxes-block --></div> <!-- /wp:woocommerce/cart-order-summary-block --> <!-- wp:woocommerce/cart-express-payment-block --> <div class="wp-block-woocommerce-cart-express-payment-block"></div> <!-- /wp:woocommerce/cart-express-payment-block --> <!-- wp:woocommerce/proceed-to-checkout-block --> <div class="wp-block-woocommerce-proceed-to-checkout-block"></div> <!-- /wp:woocommerce/proceed-to-checkout-block --> <!-- wp:woocommerce/cart-accepted-payment-methods-block --> <div class="wp-block-woocommerce-cart-accepted-payment-methods-block"></div> <!-- /wp:woocommerce/cart-accepted-payment-methods-block --></div> <!-- /wp:woocommerce/cart-totals-block --></div> <!-- /wp:woocommerce/filled-cart-block --> <!-- wp:woocommerce/empty-cart-block --> <div class="wp-block-woocommerce-empty-cart-block"><!-- wp:heading {"textAlign":"center","className":"with-empty-cart-icon wc-block-cart__empty-cart__title"} --> <h2 class="wp-block-heading has-text-align-center with-empty-cart-icon wc-block-cart__empty-cart__title">' . __( 'Your cart is currently empty!', 'woocommerce' ) . '</h2> <!-- /wp:heading --> <!-- wp:separator {"className":"is-style-dots"} --> <hr class="wp-block-separator has-alpha-channel-opacity is-style-dots"/> <!-- /wp:separator --> <!-- wp:heading {"textAlign":"center"} --> <h2 class="wp-block-heading has-text-align-center">' . __( 'New in store', 'woocommerce' ) . '</h2> <!-- /wp:heading --> <!-- wp:woocommerce/product-new {"columns":4,"rows":1} /--></div> <!-- /wp:woocommerce/empty-cart-block --></div> <!-- /wp:woocommerce/cart -->'; }