Astra_Woocommerce::option_woocommerce_enable_ajax_add_to_cart( string $value )

Enable ajax add to cart for shop page.


Description


Parameters

$value

(string) (Required) ajax add to cart value.


Return

(string) yes | no enable / disable ajax add to cart.


Source

File: inc/compatibility/woocommerce/class-astra-woocommerce.php

		public function option_woocommerce_enable_ajax_add_to_cart( $value ) {
			$astra_shop_add_to_cart = astra_get_option( 'shop-add-to-cart-action' );
			if ( $astra_shop_add_to_cart && 'default' !== $astra_shop_add_to_cart ) {
				return 'yes';
			}
			return $value;
		}

Changelog

Changelog
Version Description
4.1.0 Introduced.


User Contributed Notes

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