Astra_Woocommerce::astra_update_flyout_cart_layout()
Add shopping CTA in cart flyout.
Description
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function astra_update_flyout_cart_layout() { if ( WC()->cart->is_empty() && 'flyout' === astra_get_option( 'woo-header-cart-click-action' ) ) { ?> <div class="ast-mini-cart-empty"> <div class="ast-mini-cart-message"> <p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'astra' ); ?></p> </div> <div class="woocommerce-mini-cart__buttons"> <a href="<?php /** @psalm-suppress PossiblyFalseArgument */ echo esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ); ?>" class="button wc-forward"><?php esc_html_e( 'Continue Shopping', 'astra' ); ?></a> <?php // phpcs:ignore Generic.Commenting.DocComment.MissingShort ?> </div> </div> <?php } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |