usk_is_edit_mode()) { return ['usk-all-styles']; } else { return ['wc-checkout', 'usk-font', 'usk-page-checkout']; } } public function get_script_depends() { return ['usk-page-checkout']; } public function has_widget_inner_wrapper(): bool { return !\Elementor\Plugin::$instance->experiments->is_feature_active('e_optimized_markup'); } protected function register_controls() { $this->start_controls_section( 'section_checkout_general', [ 'label' => esc_html__('Layout', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'show_shipping_form', [ 'label' => esc_html__( 'Shipping Form', 'ultimate-store-kit' ) . BDTUSK_NC, 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', ] ); $this->end_controls_section(); $this->start_controls_section( 'section_texts_translation', [ 'label' => esc_html__( 'All String Translations', 'ultimate-store-kit' ), 'type' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'text_billing_details_heading', [ 'label' => esc_html__( 'Billing Details', 'ultimate-store-kit' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Billing details', 'ultimate-store-kit' ), 'dynamic' => [ 'active' => true ], ] ); $this->add_control( 'text_billing_shipping_heading', [ 'label' => esc_html__( 'Billing+Shipping', 'ultimate-store-kit' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Billing and Shipping', 'ultimate-store-kit' ), 'dynamic' => [ 'active' => true ], ] ); $this->add_control( 'text_ship_to_different_address', [ 'label' => esc_html__( 'Shipping Toggle', 'ultimate-store-kit' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Ship to a different address?', 'ultimate-store-kit' ), 'dynamic' => [ 'active' => true ], 'condition' => [ 'show_shipping_form' => 'yes', ], ] ); $this->add_control( 'text_order_review_heading', [ 'label' => esc_html__( 'Order Review', 'ultimate-store-kit' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Your order', 'ultimate-store-kit' ), 'dynamic' => [ 'active' => true ], ] ); $this->add_control( 'text_create_account', [ 'label' => esc_html__( 'Create Account', 'ultimate-store-kit' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Create an account?', 'ultimate-store-kit' ), 'dynamic' => [ 'active' => true ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_checkout_shipping_form_container', [ 'label' => esc_html__('Container', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'checkout_shipping_form_container_bg', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form' => 'background-color: {{VALUE}};' ], ] ); $this->add_responsive_control( 'checkout_shipping_form_container_padding', [ 'label' => esc_html__('Padding', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'checkout_shipping_form_container_margin', [ 'label' => esc_html__('Margin', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'after' ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'checkout_shipping_form_container_border', 'label' => __('Border', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form', ] ); $this->add_responsive_control( 'checkout_shipping_form_container_radius', [ 'label' => esc_html__('Border Radius', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'checkout_shipping_form_container_box_shadow', 'label' => __('Box Shadow', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-page-checkout .usk-checkout-billing-address, {{WRAPPER}} .usk-page-checkout .usk-checkout-payment, {{WRAPPER}} .usk-page-checkout .usk-checkout-order-review, {{WRAPPER}} .usk-page-checkout .usk-checkout-shipping-form', ] ); $this->end_controls_section(); $this->start_controls_section( 'section_style_heading', [ 'label' => __('Heading', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'heading_color', [ 'label' => __('Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .order_review_heading, {{WRAPPER}} .usk-checkout-billing-address .usk-checkout-billing-address-header, {{WRAPPER}} .usk-page-checkout #ship-to-different-address' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'heading_border_color', [ 'label' => __('Border Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .order_review_heading:after, {{WRAPPER}} .usk-checkout-billing-address .usk-checkout-billing-address-header:after, {{WRAPPER}} .usk-page-checkout #ship-to-different-address:after' => 'background: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'heading_typography', 'label' => __('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-order-review .order_review_heading, {{WRAPPER}} .usk-checkout-billing-address .usk-checkout-billing-address-header, {{WRAPPER}} .usk-page-checkout #ship-to-different-address', ] ); $this->add_responsive_control( 'heading_bottom_spacing', [ 'label' => __('Bottom Spacing', 'ultimate-store-kit'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', '%', 'vh'], 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .order_review_heading, {{WRAPPER}} .usk-checkout-billing-address .usk-checkout-billing-address-header, {{WRAPPER}} .usk-page-checkout #ship-to-different-address' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], 'separator' => 'before' ] ); $this->end_controls_section(); $this->start_controls_section( 'section_checkout_billing_address_form', [ 'label' => __('Form', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_checkout_billing_address_forms' ); $this->start_controls_tab( 'tab_checkout_billing_address_label', [ 'label' => __('Label', 'ultimate-store-kit'), ] ); $this->add_control( 'checkout_billing_address_input_label_color', [ 'label' => esc_html__('Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper .form-row label, {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper .form-row label' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'checkout_billing_address_input_label_indicator_color', [ 'label' => esc_html__('Required Indicator Color:', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper .form-row label .required, {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper .form-row label .required' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'title', [ 'label' => __('Bottom Spacing', 'ultimate-store-kit'), 'type' => Controls_Manager::SLIDER, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper .form-row label, {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper .form-row label' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], 'separator' => 'before' ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'checkout_billing_address_input_label_typography', 'label' => __('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper .form-row label, {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper .form-row label', 'separator' => 'before' ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_checkout_billing_address_input', [ 'label' => __('Input', 'ultimate-store-kit'), ] ); $this->add_control( 'checkout_billing_address_input_color', [ 'label' => esc_html__('Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'default' => 'var(--usk-text-body)', 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .form-row .input-text, {{WRAPPER}} .usk-page-checkout .form-row select, {{WRAPPER}} .usk-page-checkout .select2-container--default .select2-selection--single .select2-selection__rendered' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'checkout_billing_address_input_placeholder_color', [ 'label' => esc_html__('Placeholder Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select)::placeholder' => 'color: {{VALUE}};', '{{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select)::placeholder' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'checkout_billing_address_input_background', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'default' => 'var(--usk-white)', 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .form-row .input-text, {{WRAPPER}} .usk-page-checkout .form-row select, {{WRAPPER}} .usk-page-checkout .form-row .select2-selection' => 'background: {{VALUE}};', ], ] ); $this->add_responsive_control( 'checkout_billing_address_input_padding', [ 'label' => esc_html__('Padding', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .woocommerce-billing-fields__field-wrapper p.form-row .input-text, {{WRAPPER}} .usk-page-checkout .woocommerce-shipping-fields__field-wrapper p.form-row .input-text, {{WRAPPER}} .usk-page-checkout .woocommerce-billing-fields__field-wrapper p.form-row select, {{WRAPPER}} .usk-page-checkout .woocommerce-shipping-fields__field-wrapper p.form-row select, {{WRAPPER}} .usk-page-checkout .woocommerce-billing-fields__field-wrapper p.form-row .select2-selection, {{WRAPPER}} .usk-page-checkout .woocommerce-shipping-fields__field-wrapper p.form-row .select2-selection, {{WRAPPER}} .usk-page-checkout .select2-container--default .select2-selection--single .select2-selection__rendered' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'separator' => 'before', ] ); $this->add_control( 'checkout_billing_address_input_margin', [ 'label' => esc_html__('Margin', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select), {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select)' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;' ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'checkout_billing_address_input_border', 'label' => esc_html__('Border', 'ultimate-store-kit'), 'default' => [ 'color' => 'var(--usk-border-input)', 'width' => 1, ], 'selector' => '{{WRAPPER}} .usk-page-checkout .form-row .input-text, {{WRAPPER}} .usk-page-checkout .form-row select, {{WRAPPER}} .usk-page-checkout .form-row .select2-selection', ] ); $this->add_control( 'checkout_billing_address_input_border_radius', [ 'label' => esc_html__('Border Radius', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-billing-address .woocommerce-billing-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select), {{WRAPPER}} .usk-checkout-shipping-form .woocommerce-shipping-fields__field-wrapper :is(input, textarea, .woocommerce-input-wrapper .select2-selection, select)' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;' ], ] ); $this->add_control( 'heading_input_focus', [ 'label' => __('Focus', 'ultimate-store-kit'), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'input_focus_border_color', [ 'label' => esc_html__('Focus Border Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'default' => 'var(--usk-primary)', 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .form-row .input-text:focus, {{WRAPPER}} .usk-page-checkout .form-row select:focus, {{WRAPPER}} .usk-page-checkout .form-row .select2-selection:focus' => 'outline: none; border-color: {{VALUE}}; box-shadow: var(--usk-shadow-focus);', ], ] ); $this->add_control( 'input_focus_background', [ 'label' => esc_html__('Focus Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout .form-row .input-text:focus, {{WRAPPER}} .usk-page-checkout .form-row select:focus, {{WRAPPER}} .usk-page-checkout .form-row .select2-selection:focus' => 'background: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); $this->start_controls_section( 'section_style_layout', [ 'label' => __('Order Details', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'table_border', 'label' => __('Border', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table th, {{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table td', ] ); $this->start_controls_tabs( 'tabs_table_header' ); $this->start_controls_tab( 'tab_table_header', [ 'label' => __('HEADER', 'ultimate-store-kit'), ] ); $this->add_control( 'orders_header_color', [ 'label' => esc_html__('Text Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table thead th' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'orders_header_background', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table thead th' => 'background-color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'table_header_padding', [ 'label' => esc_html__('Padding', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table thead th' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '.rtl {{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table thead th' => 'padding: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}} !important;', ], 'separator' => 'after' ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'orders_header_text_typography', 'label' => esc_html__('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-order-review #order_review .woocommerce-checkout-review-order-table thead th', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_table_body', [ 'label' => __('BODY', 'ultimate-store-kit'), ] ); $this->add_control( 'table_body_text_color', [ 'label' => esc_html__('Text Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tbody td' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'orders_body_background', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table > tbody > tr' => 'background-color: {{VALUE}} !important', ], ] ); $this->add_control( 'table_body_price_color', [ 'label' => esc_html__('Price Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tbody td .amount' => 'color: {{VALUE}} !important', ], ] ); $this->add_responsive_control( 'table_body_data_padding', [ 'label' => esc_html__('Row Padding ', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table:not(.shipping__table--multiple) > tbody > tr > td' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'orders_body_typography', 'label' => esc_html__(' Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tbody :is(td, label, .amount, strong, bdi)', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_table_footer', [ 'label' => __('FOOTER', 'ultimate-store-kit'), ] ); $this->add_control( 'footer_text_color', [ 'label' => esc_html__('Text Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot :is(th, td, label)' => 'color: {{VALUE}} !important' ], ] ); $this->add_control( 'footer_price_color', [ 'label' => esc_html__('Price Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot :is(th, td) .amount' => 'color: {{VALUE}} !important' ], ] ); $this->add_control( 'footer_subtotal_bg_color', [ 'label' => esc_html__('Subtotal Background Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot .cart-subtotal' => 'background-color: {{VALUE}} !important' ], ] ); $this->add_control( 'footer_total_bg_color', [ 'label' => esc_html__('Total Background Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot .order-total' => 'background-color: {{VALUE}} !important' ], ] ); $this->add_responsive_control( 'table_footer_data_padding', [ 'label' => esc_html__('Padding ', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot :is(th, td, label)' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '.rtl {{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot :is(th, td, label)' => 'padding: {{TOP}}{{UNIT}} {{LEFT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{RIGHT}}{{UNIT}} !important;', ], 'separator' => 'after' ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'footer_color_typography', 'label' => esc_html__('Text Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot th, {{WRAPPER}} .usk-checkout-order-review .woocommerce-checkout-review-order-table tfoot td :is(label, .amount)', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); // $this->start_controls_section( // 'checkout_payment_content_section', // [ // 'label' => esc_html__('Content', 'ultimate-store-kit'), // 'tab' => Controls_Manager::TAB_STYLE, // ] // ); // $this->end_controls_section(); $this->start_controls_section( 'checkout_payment_methods', [ 'label' => esc_html__('Payment Methods', 'ultimate-store-kit'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_checkout_payment_methods' ); $this->start_controls_tab( 'tab_content_checkout_payment_method', [ 'label' => __('Content', 'ultimate-store-kit'), ] ); $this->add_control( 'checkout_payment_text_color', [ 'label' => esc_html__('Text Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods .payment_box' => 'color: {{VALUE}};', '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods .payment_box p' => 'color: {{VALUE}};', '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods .payment_box a' => 'color: {{VALUE}};', '{{WRAPPER}} .usk-checkout-payment #payment .woocommerce-privacy-policy-text p' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'checkout_payment_link_color', [ 'label' => esc_html__('Link Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment a' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'checkout_payment_link_hover_color', [ 'label' => esc_html__('Link hover Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment a:hover' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'checkout_payment_content_typography', 'label' => esc_html__('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-payment #payment :is(.payment_box, .woocommerce-terms-and-conditions-wrapper, .payment_method_paypal) :is(p, a)', ] ); $this->add_control( 'checkout_payment_method_radio_input_color', [ 'label' => esc_html__('Checked Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment .wc_payment_method input[type="radio"]' => 'accent-color: {{VALUE}};', ], ] ); $this->add_control( 'checkout_payment_label_color', [ 'label' => esc_html__('Label Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment .wc_payment_method label' => 'color: {{VALUE}} !important;', ], ] ); $this->add_control( 'checkout_payment_background_color', [ 'label' => esc_html__('Background Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-page-checkout #payment .wc_payment_methods li.wc_payment_method input[type="radio"]:checked + label, {{WRAPPER}} .usk-page-checkout #payment .wc_payment_methods li.wc_payment_method .payment_box' => 'background-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'checkout_payment_methods_checkbox_padding', [ 'label' => esc_html__('Padding', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'separator' => 'before', 'selectors' => [ '{{WRAPPER}} .usk-page-checkout #payment .wc_payment_methods li.wc_payment_method input[type="radio"]:checked + label, {{WRAPPER}} .usk-page-checkout #payment .wc_payment_methods li.wc_payment_method .payment_box' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], ] ); $this->add_responsive_control( 'checkout_payment_methods_checkbox_margin', [ 'label' => esc_html__('Margin', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment .wc_payment_method input[type="radio"]' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'checkout_payment_methods_border', 'label' => esc_html__('Border', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods li', 'separator' => 'before', ] ); $this->add_responsive_control( 'checkout_payment_methods_radius', [ 'label' => esc_html__('Border Radius', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods li' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'checkout_payment_methods_checkbox_spacing', [ 'label' => __('Bottom Spacing', 'ultimate-store-kit'), 'type' => Controls_Manager::SLIDER, 'separator' => 'before', 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment .payment_methods li' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'checkout_payment_label_typography', 'label' => esc_html__('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-payment .wc_payment_method label', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_checkout_payment_method', [ 'label' => __('Button', 'ultimate-store-kit'), ] ); $this->add_control( 'checkout_payment_order_button_color', [ 'label' => esc_html__('Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'checkout_payment_order_button_background', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order' => 'background: {{VALUE}}', ], ] ); $this->add_responsive_control( 'checkout_payment_order_button_padding', [ 'label' => esc_html__('Padding', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'checkout_payment_input_border', 'label' => esc_html__('Border', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-payment #payment #place_order', ] ); $this->add_control( 'checkout_payment_order_button_radius', [ 'label' => esc_html__('Border Radius', 'ultimate-store-kit'), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'checkout_payment_order_button_typography', 'label' => esc_html__('Typography', 'ultimate-store-kit'), 'selector' => '{{WRAPPER}} .usk-checkout-payment #payment #place_order', ] ); $this->add_control( 'heading_button_hover', [ 'label' => __('H O V E R', 'ultimate-store-kit'), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'checkout_payment_order_button_tabs_hover_clr', [ 'label' => esc_html__('Color', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order:hover' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'checkout_payment_order_button_tabs_hover_bg', [ 'label' => esc_html__('Background', 'ultimate-store-kit'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .usk-checkout-payment #payment #place_order:hover' => 'background: {{VALUE}}', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } protected function checkout_payment_methods() { ?>
get_checkout_fields('account')): ?>