$this->section_wooarchive_settins, 'title' => __( 'Woocommerce Archive Settings', 'bigshop' ), 'description' => __( 'wtbigshop Woocommerce Archive Settings', 'bigshop' ), 'priority' => 1, 'panel' => 'woocommerce', ] ); Customize::add_controls( $this->section_wooarchive_settins, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'wtbigshop_service_controls', [ 'rt_woo_archive_heading' => [ 'type' => 'heading', 'label' => __( 'Woocommerce Archive Option', 'bigshop' ), ], 'products_cols_width' => [ 'type' => 'number', 'label' => __( 'Products Per Column', 'bigshop' ), 'description' => __('Use product per col default 4', 'bigshop'), 'default' => '4', ], 'products_per_page' => [ 'type' => 'number', 'label' => __( 'Number of items per page', 'bigshop' ), 'description' => __( 'Effect only for Shop custom page template', 'bigshop' ), 'default' => '12', ], 'rt_woo_cat' => [ 'type' => 'switch', 'label' => __( 'Category', 'bigshop' ), 'default' => 1 ], 'rt_woo_cart' => [ 'type' => 'switch', 'label' => __( 'Cart', 'bigshop' ), 'default' => 1 ], 'wc_shop_quickview_icon' => [ 'type' => 'switch', 'label' => __( 'QuickView', 'bigshop' ), 'default' => 0 ], 'wc_shop_compare_icon' => [ 'type' => 'switch', 'label' => __( 'Compare', 'bigshop' ), 'default' => 0 ], 'wc_shop_wishlist_icon' => [ 'type' => 'switch', 'label' => __( 'Wishlist', 'bigshop' ), 'default' => 0 ], 'wc_shop_qcheckout_icon' => [ 'type' => 'switch', 'label' => __( 'Quick Checkout', 'bigshop' ), 'default' => 0 ], 'wc_shop_rating' => [ 'type' => 'switch', 'label' => __( 'Rating', 'bigshop' ), 'default' => 1 ], 'rt_woo_variation_attr' => [ 'type' => 'switch', 'label' => __( 'Variation Attribute', 'bigshop' ), 'default' => 0 ], 'wc_shop_sale_flash' => [ 'type' => 'switch', 'label' => __( 'Sale Flash', 'bigshop' ), 'default' => 1 ], 'wc_sale_label' => [ 'type' => 'select', 'default' => 'text', 'label' => __( 'Sale Product Label', 'bigshop' ), 'choices' => [ 'percentage' => __( 'Percentage', 'bigshop' ), 'text' => __( 'Text', 'bigshop' ), ], ], ] ); } }