ASTRA_Ext_WooCommerce_Markup::customization_cart_page()

Cart page markup update using actions & filters only


Description


Source

File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php

		public function customization_cart_page() {

			if ( ! is_cart() ) {
				return;
			}
			// Disable cart page cross sell.
			if ( astra_get_option( 'cart-cross-sell-disable' ) ) {
				remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
			}

			// Disable single checkout cross sell.
			if ( astra_get_option( 'cart-cross-sell-disable' ) ) {
				remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
			}
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.