• Resolved Christiaan

    (@christiaan-grob)


    Hi,

    i’m building my website but there is no possibility to view or edit the street addres, house number and addition in the users profile. I have seen this is on all my websites. All other fields are working.

    I need to have this because the user is not able to edit there billing address because we are company to company.

    Does anyone have an idea why this is or how to make this possible?

    Thank you πŸ™‚

    WordPress Omgeving
    Home-URL: http://TT.nl
    Site URL: http://TT.nl
    WC-versie: 2.5.2
    Log Directory Beschrijfbaar: βœ” /home/sieser/domains/TT.nl/public_html/wp-content/uploads/wc-logs/
    WP-versie: 4.4.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Taal: nl_NL
    Serveromgeving
    Serverinformatie: Apache/2
    PHP-versie: 5.4.45
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    SUHOSIN GeΓ―nstalleerd: –
    MySQL-versie: 5.6.28
    Max Upload Grootte: 64 MB
    Standaard Tijdzone is UTC: βœ”
    fsockopen/cURL: βœ”
    SoapClient: βœ”
    DOMDocument: βœ”
    GZip: βœ”
    Multibyte String: βœ”
    Remote Post: βœ”
    Remote Get: βœ”
    Database
    WC-databaseversie: 2.5.2
    woocommerce_sessions βœ”
    woocommerce_api_keys βœ”
    woocommerce_attribute_taxonomies βœ”
    woocommerce_termmeta βœ”
    woocommerce_downloadable_product_permissions βœ”
    woocommerce_order_items βœ”
    woocommerce_order_itemmeta βœ”
    woocommerce_tax_rates βœ”
    woocommerce_tax_rate_locations βœ”
    Actieve plugins (11)
    iThemes Security door iThemes – 5.2.0
    Contact Form 7 door Takayuki Miyoshi – 4.3.1
    WPBakery Visual Composer door Michael M – WPBakery.com – 4.9.2
    WooCommerce MyParcel door Ewout Fernhout – 1.5.2
    WooCommerce door WooThemes – 2.5.2
    Wordfence Security door Wordfence – 6.0.23
    Yoast SEO door Team Yoast – 3.0.7
    WP GeoIP Country Redirect door Crivion – 2.5
    WP Smush door WPMU DEV – 2.1.3
    Clef door Clef – 2.3.4
    YITH WooCommerce Zoom Magnifier door Yithemes – 1.2.16
    Instellingen
    Forceer SSL: –
    Valuta EUR (€)
    Valutasymbool-positie left
    Duizendtalscheiding ,
    Decimaalscheiding .
    Aantal decimalen 2
    API
    API Geactiveerd: βœ”
    API-versie: 3.1.0
    WC pagina’s
    Winkelbasis: Pagina niet ingesteld
    Winkelmand: #30 – /winkelwagen/
    Afrekenen: #31 – /afrekenen/
    Mijn account: #32 – /mijn-account/
    Indelingen
    Producttypes: external (external), grouped (grouped), simple (simple), variable (variable)
    Thema
    Naam: TT
    Versie: 1.0
    URL van de maker: http://TT.nl/
    Subthema: βœ• – Als je wijzigingen aanbrengt in WooCommerce of in een hoofdthema dat je niet zelf gebouwd hebt, raden we het gebruik van een subthema aan. Zie: Hoe maak je een subthema
    WooCommerce Support: βœ”
    Templates
    Overschrijvingen (WooCommerce): TT/woocommerce/checkout/thankyou.php,
    TT/woocommerce/content-product.php versie 2.4.0 is verlopen. De core versie is 2.5.0,
    TT/woocommerce/myaccount/my-account.php,
    TT/woocommerce/single-product/short-description.php,
    TT/woocommerce/single-product/tabs/description.php
    Meer informatie over het bijwerken van verouderde templates

    https://wordpress.org/plugins/woocommerce/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    If these are custom address fields you’re adding, you need to add them to the backend profile page too via hooks. It’s not automatic.

    Thread Starter Christiaan

    (@christiaan-grob)

    @mike Jolley

    Thank you for the reaction but these are not custom fields.
    It is the customers address.

    billing_street_name
    billing_house_number
    billing_house_number_suffix

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    They are custom though, because WooCommerce core doesn’t include these fields.

    Thread Starter Christiaan

    (@christiaan-grob)

    But how to add them to the backend?
    Because, we are using Woocommerce in dutch.
    Also, we are not added this fields by ourself to the functions or something.

    See functions:

    /**
     * Woocommerce
     */
    
    function wc_empty_cart_redirect_url() {
    	return 'http://zoo.nl';
    }
    add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
    
    function sv_remove_product_page_skus( $enabled ) {
        if ( ! is_admin() && is_product() ) {
            return false;
        }
    
        return $enabled;
    }
    add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
    
    add_action( 'after_setup_theme', 'woocommerce_support' );
    function woocommerce_support() {
        add_theme_support( 'woocommerce' );
    }
    
    add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' );
    
    function woo_remove_category_products_count() {
      return;
    }
    
    add_filter( 'woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment' );
    function woocommerce_header_add_to_cart_fragment( $fragments ) {
    	ob_start();
    	?>
    	<a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php echo sprintf (_n( '%d item', '%d items', WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a>
    	<?php
    
    	$fragments['a.cart-contents'] = ob_get_clean();
    
    	return $fragments;
    }
    
    add_filter('woocommerce_show_page_title', create_function('$result', 'return false;'), 20);
    
    function woo_related_products_limit() {
      global $product;
    
    	$args['posts_per_page'] = 6;
    	return $args;
    }
    
    add_filter( 'woocommerce_output_related_products_args', 'related_products_amount' );
      function related_products_amount( $args ) {
    	$args['posts_per_page'] = 4;
    	return $args;
    }
    
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 20 );
    
    add_action('after_setup_theme','activate_filter') ;
    
    function activate_filter(){
    add_filter('woocommerce_get_price_html', 'bbloomer_show_price_logged');
    }
    
    function bbloomer_show_price_logged($price){
    if(is_user_logged_in() ){
    return $price;
    }
    else
    {
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
    }
    }
    
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Also, we are not added this fields by ourself to the functions or something.

    Thats not possible. They have either been added by custom code or plugin. They don’t exist in core.

    Thread Starter Christiaan

    (@christiaan-grob)

    Can I send you the login so you can take a look? Because we have on functions.php with that codes for Woocommerce and overriding some woocommerce themes. When i delete theme and turn off the overrided templates it is also not working.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Does the shipping method add those fields perhaps?

    Ewout

    (@pomegranate)

    @christiaan-grob This is added by the WooCommerce MyParcel plugin, of which I am the developer. I will add this to the plugin so you don’t have to do this manually!
    Also, note that these can already be edited via the My Account page and the order admin.

    Ewout

    Thread Starter Christiaan

    (@christiaan-grob)

    @ewout Thank you, I have contacted My Parcel yet and they gave me your e-mailaddres. Any idea how long it is gonna take?

    Thread Starter Christiaan

    (@christiaan-grob)

    @mike Jolley

    Thansk for support anyway.

    Ewout

    (@pomegranate)

    If you’re feeling lucky you can already try the development version from github:
    https://github.com/Spreeuw/woocommerce-myparcel

    I’ll see if I can release the update this week.

    Ewout

    Thread Starter Christiaan

    (@christiaan-grob)

    @ewout

    Works fine Ewout! Tested it out!
    Thanksssss

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Street Address, house number and addition not showin in users profiel backend’ is closed to new replies.