ASTRA_THEME_SETTINGS . '[woo-enable-cart-button-text]', 'default' => astra_get_option( 'woo-enable-cart-button-text' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Change Cart Button Text', 'astra' ), 'description' => __( 'Add custom text for cart button', 'astra' ), 'control' => 'ast-toggle-control', 'priority' => 2, ), /** * Option: Checkout */ array( 'name' => ASTRA_THEME_SETTINGS . '[woo-cart-button-text]', 'default' => astra_get_option( 'woo-cart-button-text' ), 'type' => 'control', 'section' => 'section-woo-shop-cart', 'title' => __( 'Cart Button Text', 'astra' ), 'context' => array( Astra_Builder_Helper::$general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[woo-enable-cart-button-text]', 'operator' => '==', 'value' => true, ), ), 'control' => 'text', 'priority' => 2, ), /** * Option: Cart upsells * * Enable Cross-sells - in the code it is refrenced as upsells rather than cross-sells. */ array( 'name' => ASTRA_THEME_SETTINGS . '[enable-cart-upsells]', 'section' => 'section-woo-shop-cart', 'type' => 'control', 'control' => 'ast-toggle-control', 'default' => astra_get_option( 'enable-cart-upsells' ), 'title' => __( 'Enable Cross-sells', 'astra' ), 'priority' => 2.7, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Woo_Shop_Cart_Layout_Configs();