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; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |