• Resolved Simon Kane

    (@simonkane)


    The “page link” is to the original topic I opened in Woo itself.
    https://wordpress.org/support/topic/admin-order-edit-billing-shipping-field-layout/

    However, after extensive research, it appears it’s an FCF issue.
    Please read the other topic and tell me what you think.
    The images linked over there might be useful.

    Issue has to do with “form-left” and “form-right” classes.
    I suspect something changed with the last update – if not in FCF,
    then a change elsewhere that is affecting FCF.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @simonkane

    WooCommerce adds its own classes here (for some reason unknown to me).
    Please add this to the functions.php file of the active template. It will overwrite these settings.

    add_action( 'admin_head', function() {
    	?>
    	<style>
    	#order_data .order_data_column div.address[style*="display: none"] + div.edit_address {
    		display: flex;
    		flex-wrap: wrap;
    		justify-content: space-between;
    	}
    	</style>
    	<?php
    } );
    Thread Starter Simon Kane

    (@simonkane)

    Great! Thanks! It worked (your way).

    I tried adding this to my admin.css (already hooked in for various reasons, and is confirmed active on the Order Edit page), but it did not work. Full disclosure: While I am a good programmer, I know almost zero about CSS.

    #order_data .order_data_column div.address[style*=”display: none”] + div.edit_address {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    }

    For consistency, and my own education, might you enlighten me about why this did not work? Any insight is greatly appreciated!

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @simonkane

    I apologize for the waiting time for an answer.

    Please use this plugin to insert CSS into the admin panel.
    Add Admin CSS

    It should work. Just correct the quotation marks before and after display: none.

    #order_data .order_data_column div.address[style*="display: none"] + div.edit_address {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    Thread Starter Simon Kane

    (@simonkane)

    Hi!

    I’m not sure where the “bad” quotes got into the mix, but they are correct now.
    I think the original issue may have had to do with CSS caching.
    I encountered the same fault on this retry, but when I cleared out caches,
    It worked!

    Note that I am not using the plugin you recommend (although it looks good).
    I have already enqueued my child-theme’s admin.css file via action ‘admin_enqueue_scripts’ in my theme’s functions.php.
    The action is coded to limit the enqueue to:
    $hook == ‘post.php’ && $screen->post_type == ‘shop_order’
    This limits the possibility of unintended conflicts in other areas.
    (I believe in an abundance of caution when modifying/enhancing code.)

    Thanks again!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @simonkane Please do not create duplicate topics in these forums. I have archived your new topic.

    Creating multiple topics for the same plugin issue makes it harder for the volunteer support for this plugin to help you.

    Thread Starter Simon Kane

    (@simonkane)

    @jdembowski
    The OTHER ticket was NOT a duplicate of this one, but the plugin rep saw some relationship between this ticket and the other one.

    Again, THAT ticket is NOT a duplicate of this one, and the primary reason for that ticket is still under discussion.

    Please restore it, so that the bug reported in that ticket can be handled.
    https://wordpress.org/support/topic/order-section-fields-show-in-the-shipping-section/

    Moderator Yui

    (@fierevere)

    永子

    @simonkane

    but still consider the above warning in future.
    Creating multiple topics for same issue will make finding the solution harder

    Thread Starter Simon Kane

    (@simonkane)

    Like I said it’s not a duplicate.
    The vendor made reference to what turns out to be this solution first – NOT ME.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Admin order edit billing/shipping field layout’ is closed to new replies.