{"id":110986,"date":"2019-02-11T12:49:33","date_gmt":"2019-02-11T11:49:33","guid":{"rendered":"https:\/\/nl.wordpress.org\/support\/topic\/woocommerce-mijn-account\/"},"modified":"2019-02-11T13:03:50","modified_gmt":"2019-02-11T12:03:50","slug":"woocommerce-mijn-account","status":"publish","type":"topic","link":"https:\/\/nl.wordpress.org\/support\/topic\/woocommerce-mijn-account\/","title":{"rendered":"WooCommerce Mijn Account"},"content":{"rendered":"<p>Beste,<\/p>\n<p>Als ik een account heb gemaakt in mijn webwinkel, en dan naar &#8216;Mijn Account&#8217; ga, krijg ik een klein menuutje te zien:<br \/>\n&#8211; Dashboard<br \/>\n&#8211; Bestellingen<br \/>\n&#8211; Downloads<br \/>\n&#8211; Adressen<br \/>\n&#8211; Accountgegevens<br \/>\n&#8211; Uitloggen<\/p>\n<p>Alles staat in principe goed, behalve &#8216;Adressen&#8217; niet. Als ik op Adressen klik, wil ik mijn Adres kunnen bewerken, echter staat de content schots en scheef, zie screenshot:<\/p>\n<p><a href=\"http:\/\/nl.tinypic.com?ref=m956rc\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\"  src=\"\/\/i0.wp.com\/i65.tinypic.com\/m956rc.png\" border=\"0\" alt=\"Image and video hosting by TinyPic\" \/><\/a><\/p>\n<p>Ik zie mijn adres niet volledig en &#8216;bewerken&#8217; staat helemaal rechts in beeld.<\/p>\n<p>Hoe kan ik dit fixen zodat de adressen gewoon goed weergegeven worden, en ik ze kan bewerken indien gewenst? Ik heb al in de code gezocht maar kan bij edit-address niet 1 2 3 iets vinden&#8230; het zijn (geloof ik) kolommen, moet ik hier iets veranderen..?<\/p>\n<p>Alvast bedankt,<\/p>\n<p>Luuk<\/p>\n<p>Edit: dit is de code waar ik, denk ik, iets moet veranderen.<\/p>\n<pre><code>if ( ! defined( &#039;ABSPATH&#039; ) ) {\n\texit; \/\/ Exit if accessed directly\n}\n\n$customer_id = get_current_user_id();\n\nif ( ! wc_ship_to_billing_address_only() &amp;&amp; wc_shipping_enabled() ) {\n\t$get_addresses = apply_filters( &#039;woocommerce_my_account_get_addresses&#039;, array(\n\t\t&#039;billing&#039; =&gt; __( &#039;Billing address&#039;, &#039;woocommerce&#039; ),\n\t\t&#039;shipping&#039; =&gt; __( &#039;Shipping address&#039;, &#039;woocommerce&#039; ),\n\t), $customer_id );\n} else {\n\t$get_addresses = apply_filters( &#039;woocommerce_my_account_get_addresses&#039;, array(\n\t\t&#039;billing&#039; =&gt; __( &#039;Billing address&#039;, &#039;woocommerce&#039; ),\n\t), $customer_id );\n}\n\n$oldcol = 1;\n$col    = 1;\n?&gt;\n\n&lt;p&gt;\n\t&lt;?php echo apply_filters( &#039;woocommerce_my_account_my_address_description&#039;, __( &#039;The following addresses will be used on the checkout page by default.&#039;, &#039;woocommerce&#039; ) ); ?&gt;\n&lt;\/p&gt;\n\n&lt;?php if ( ! wc_ship_to_billing_address_only() &amp;&amp; wc_shipping_enabled() ) : ?&gt;\n\t&lt;div class=&quot;u-columns woocommerce-Addresses col2-set addresses&quot;&gt;\n&lt;?php endif; ?&gt;\n\n&lt;?php foreach ( $get_addresses as $name =&gt; $title ) : ?&gt;\n\n\t&lt;div class=&quot;u-column&lt;?php echo ( ( $col = $col * -1 ) &lt; 0 ) ? 1 : 2; ?&gt; col-&lt;?php echo ( ( $oldcol = $oldcol * -1 ) &lt; 0 ) ? 1 : 2; ?&gt; woocommerce-Address&quot;&gt;\n\t\t&lt;header class=&quot;woocommerce-Address-title title&quot;&gt;\n\t\t\t&lt;h3&gt;&lt;?php echo $title; ?&gt;&lt;\/h3&gt;\n\t\t\t&lt;a href=&quot;&lt;?php echo esc_url( wc_get_endpoint_url( &#039;edit-address&#039;, $name ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php _e( &#039;Edit&#039;, &#039;woocommerce&#039; ); ?&gt;&lt;\/a&gt;\n\t\t&lt;\/header&gt;\n\t\t&lt;address&gt;&lt;?php\n\t\t\t$address = wc_get_account_formatted_address( $name );\n\t\t\techo $address ? wp_kses_post( $address ) : esc_html_e( &#039;You have not set up this type of address yet.&#039;, &#039;woocommerce&#039; );\n\t\t?&gt;&lt;\/address&gt;\n\t&lt;\/div&gt;\n\n&lt;?php endforeach; ?&gt;\n\n&lt;?php if ( ! wc_ship_to_billing_address_only() &amp;&amp; wc_shipping_enabled() ) : ?&gt;\n\t&lt;\/div&gt;\n&lt;?php endif;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-110986","topic","type-topic","status-publish","hentry","topic-tag-mijn-account","topic-tag-woocommerce"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/110986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":3,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/110986\/revisions"}],"predecessor-version":[{"id":110989,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/110986\/revisions\/110989"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=110986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}