add_section('selection_product_single', array( 'title' => esc_html__('Product Single Page Options', 'agency-ecommerce'), 'priority' => 80, 'panel' => 'agency_ecommerce_theme_option_panel', ) ); //Setting sticky_add_to_cart. $wp_customize->add_setting('agency_ecommerce_theme_options[sticky_add_to_cart]', array( 'default' => $default['sticky_add_to_cart'], 'sanitize_callback' => 'agency_ecommerce_sanitize_checkbox', ) ); $wp_customize->add_control('agency_ecommerce_theme_options[sticky_add_to_cart]', array( 'label' => esc_html__('Sticky add to cart', 'agency-ecommerce'), 'description' => esc_html__('This option allows you to show/hide sticky add to cart on product single page.', 'agency-ecommerce'), 'section' => 'selection_product_single', 'type' => 'checkbox', 'priority' => 100, ) ); // Setting shop_layout. $wp_customize->add_setting('agency_ecommerce_theme_options[sticky_add_to_cart_position]', array( 'default' => $default['sticky_add_to_cart_position'], 'sanitize_callback' => 'agency_ecommerce_sanitize_select', ) ); $wp_customize->add_control('agency_ecommerce_theme_options[sticky_add_to_cart_position]', array( 'label' => esc_html__('Sticky add to cart position', 'agency-ecommerce'), 'description' => esc_html__('This option allows you to change the sticky add to cart position.', 'agency-ecommerce'), 'section' => 'selection_product_single', 'type' => 'radio', 'priority' => 120, 'choices' => array( 'top' => esc_html__('Top', 'agency-ecommerce'), 'bottom' => esc_html__('Bottom', 'agency-ecommerce'), ), 'active_callback' => 'agency_ecommerce_is_sticky_add_to_cart_enable' ) );