• Resolved soyaforcemeat

    (@soyaforcemeat)


    Hi!
    Billing city field disappears after plugin activation.
    I use different shipping zones and shipping methods.
    I don’t use shipping address, use force shipping to the customer billing address.
    Can i use default woocommerce billing form? Plugin only for Venipak pickup and courier. How to prevent form override?

    <p class=”form-row address-field form-row-wide woocommerce-validated” id=”billing_city_field” data-priority=”70″ data-o_class=”form-row form-row-wide address-field validate-required” style=”display: none;”><label for=”billing_city” class=””>Town / City <span class=”optional”>(optional)</span></label><span class=”woocommerce-input-wrapper”><input type=”text” class=”input-text ” name=”billing_city” id=”billing_city” placeholder=”” value=”” maxlength=”50″ autocomplete=”address-level2″></span></p>

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter soyaforcemeat

    (@soyaforcemeat)

    Solved by commenting filter in class-mp-woocommerce.php

    Plugin Author multiparcels

    (@multiparcels)

    Hello @soyaforcemeat ,

    Did you comment out the hide_fields_for_terminal_delivery filter?

    Did you enable hiding fields in the checkout? The option is disabled by default, if you enabled it then it is the expected behaviour

    Best wishes,
    MultiParcels Team

    Thread Starter soyaforcemeat

    (@soyaforcemeat)

    I have commented this filter
    // Hide unneeded fields for terminal delivery
    //add_filter(‘woocommerce_checkout_fields’, [$this, ‘hide_fields_for_terminal_delivery’], 9999);
    Is this safely?
    Now billing_city field appears and enabled

    Plugin Author multiparcels

    (@multiparcels)

    Yes @soyaforcemeat that is safe but the filter is activated by the settings in Checkout tab, if you want delivery to pickup points to have all address fields just turn off the setting there in MultiParcels settings and you will not have to modify the code

    Thread Starter soyaforcemeat

    (@soyaforcemeat)

    But in checkout settings it’s set to NO
    https://monosnap.com/file/Vnz5YQJFyVLZsNvK5RMBRp12uvdAqG

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Billing city field is hidden’ is closed to new replies.