ASTRA_THEME_SETTINGS . '[cart-general-divider]', 'section' => 'section-woo-shop-cart', 'title' => __( 'General', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 1, 'settings' => array(), ), /** * Option: Enable Modern Cart Layout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[cart-modern-layout]', 'default' => astra_get_option( 'cart-modern-layout' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Enable Modern Cart Layout', 'astra-addon' ), 'priority' => 1, 'control' => Astra_Theme_Extension::$switch_control, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Enable ajax quantity selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[cart-sticky-cart-totals]', 'default' => astra_get_option( 'cart-sticky-cart-totals' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Sticky Cart Totals', 'astra-addon' ), 'priority' => 1, 'control' => Astra_Theme_Extension::$switch_control, 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[cart-modern-layout]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Enable ajax quantity selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[cart-ajax-cart-quantity]', 'default' => astra_get_option( 'cart-ajax-cart-quantity' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Real-Time Quantity Updater', 'astra-addon' ), 'priority' => 1, 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[cart-cross-sells-divider]', 'section' => 'section-woo-shop-cart', 'title' => __( 'Cross Sells', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 2.5, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } new Astra_Woocommerce_Shop_Cart_Configs();