• Hi.
    When the customer is logged in, it is always correct to show the available delivery methods. Customers do not expand this option to select shipping. Always keeping the first option checked

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Alex Molina Maranho

    (@mixbee)

    The section – Already have an account? Log in – Could be in larger font to make it more visible

    Plugin Author Diego Versiani

    (@diegoversiani)

    Hi @mixbee,

    The shipping methods section will only be closed by default when the guest customer has already provided the shipping address, or when checking out as a registered customer.

    1. Could you send a step-by-step of how to reproduce the problem you are facing with the shipping methods section?

    2. Do you offer local pickup delivery methods? That could be a clue, as Fluid Checkout by default changes the behavior of the shipping sections based on local pickup.

    The section – Already have an account? Log in – Could be in larger font to make it more visible

    It is possible to change almost any aspect of the styles via CSS code. However, we are not able to send you a code snippet as part of our standard support.

    Best,
    Diego

    Thread Starter Alex Molina Maranho

    (@mixbee)

    Hi @diegoversiani
    I’m sending a print
    https://imgbox.com/upcaGbjS

    Plugin Author Diego Versiani

    (@diegoversiani)

    Hi @mixbee,

    The code snippet below might help you.

    This will prevent WooCommerce from auto-selecting the first shipping method available, prompting the user to make the selection explicitly.

    /**
     * Disable autoselect shipping method.
     */
    add_filter( 'woocommerce_shipping_chosen_method', '__return_false', 10, 3 );

    The downside is that Fluid Checkout will consider the entire Shipping step as incomplete, and returning customers will start every purchase from the shipping step, instead of jumping right to the payment step.

    You could also move the shipping methods section to the payment method with the code snippet below. Comment or remove the second “bail” statement if you want to move the section also for guest users.

    /**
     * Move shipping method substep to the payment step.
     */
    function fluidcheckout_move_billing_address_shipping_step() {
    	// Bail if steps class not available
    	if ( ! class_exists( 'FluidCheckout_Steps' ) ) { return; }
    	
    	// Bail if user is not logged in
    	if ( ! is_user_logged_in() ) { return; }
    	
    	remove_action( 'fc_output_step_shipping', array( FluidCheckout_Steps::instance(), 'output_substep_shipping_method' ), 20 );
    	add_action( 'fc_output_step_payment', array( FluidCheckout_Steps::instance(), 'output_substep_shipping_method' ), 5 );
    }
    add_action( 'init', 'fluidcheckout_move_billing_address_shipping_step', 300 );

    If you are unsure about how to add the code snippet, check our article:
    How to safely add code snippets to your WooCommerce website

    I’m closing this topic for now. If you need further assistance, please reply to this topic.

    Best,
    Diego

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shipping’ is closed to new replies.