Поддержка WooCommerce Как сделать оплату и доставку select?

  • Есть стандартный набор темплейтов от Woo,

    <ul id="shipping_method" class="woocommerce-shipping-methods">
    				<?php foreach ( $available_methods as $method ) : ?>
    					<li>
    						<?php
    						if ( 1 < count( $available_methods ) ) {
    							printf( '<input type="radio" name="shipping_method[%1$d]" data-index="%1$d" id="shipping_method_%1$d_%2$s" value="%3$s" class="shipping_method" %4$s />', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ), checked( $method->id, $chosen_method, false ) ); // WPCS: XSS ok.
    						} else {
    							printf( '<input type="hidden" name="shipping_method[%1$d]" data-index="%1$d" id="shipping_method_%1$d_%2$s" value="%3$s" class="shipping_method" />', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ) ); // WPCS: XSS ok.
    						}
    						printf( '<label for="shipping_method_%1$s_%2$s">%3$s</label>', $index, esc_attr( sanitize_title( $method->id ) ), wc_cart_totals_shipping_method_label( $method ) ); // WPCS: XSS ok.
    						do_action( 'woocommerce_after_shipping_rate', $method, $index );
    						?>
    					</li>
    				<?php endforeach; ?>
    			</ul>

    и

    <ul class="wc_payment_methods payment_methods methods">
    			<?php
    			if ( ! empty( $available_gateways ) ) {
    				foreach ( $available_gateways as $gateway ) {
    					wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
    				}
    			} else {
    				echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine
    			}
    			?>
    		</ul>

    Нужно переделать их в селекты, может есть плагин под это дело?

    https://yadi.sk/i/k7WT3Qy7uAsFXg

    • Тема изменена 1 месяц назад пользователем vitas_159_.