• Resolved filippodotnext

    (@filippodotnext)


    Hi,
    I’m overriding shortcode-registration-form, my aim is to create a login form for my application in which there is only an input-text that can be used to register at the same time the Username and the vendor_name.

    I’ve created this field:

    <p class="form-row form-row-wide">
    <label for="wcpv-vendor-vendor-name"><?php esc_html_e( 'Username', 'woocommerce-product-vendors' ); ?> <span class="required">*</span></label>
    <input class="input-text" type="text" name="vendor_name" id="wcpv-vendor-name" value="<?php if ( ! empty( $_POST['vendor_name'] ) ) echo esc_attr( trim( $_POST['vendor_name'] ) ); ?>" tabindex="3" />
    <em class="wcpv-field-note"><?php esc_html_e( '', 'woocommerce-product-vendors' ); ?></em>
    </p>

    to get the username from the user, and then with this hidden field:

    <input type="text" class="input-text hidden" name="username" id="wcpv-username" value="<?php $_POST['vendor_name'] ?>;" />
    

    I’ve tried to set the username with the same value, so the user can login directly with the vendor name.

    The form work partially, because if I try to submit it a second time it blocks me by saying “Sorry that vendor name already exists. Please enter a different one.”, but when I check the DB I found that the user has not been added to the wprehu_users table and only in the table wprehu_term_taxonomy a record is added with a taxonomy of “wcpv_product_vendors”.

    If I have two distinct inputbox for username and vendor name I can insert the record in the wprehu_users table, but this is not my goal.

    Is it possible to accomplish what I’m trying to do ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support fevered – a11n

    (@fevered)

    Hey there!

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter filippodotnext

    (@filippodotnext)

    
    ### WordPress Environment ###
    
    WordPress address (URL): ---
    Site address (URL): ---
    WC Version: 4.0.1
    REST API Version: ? 1.0.7
    WC Blocks Version: ? 2.5.14
    Action Scheduler Version: ? 3.1.4
    WC Admin Version: ? 1.0.3
    Log Directory Writable: ?
    WP Version: 5.4.2
    WP Multisite: –
    WP Memory Limit: ? 40 MB - Consigliamo di impostare la memoria di almeno 64MB. Per i dettagli: Come aumentare la memoria assegnata a PHP
    WP Debug Mode: ?
    WP Cron: ?
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.41 (Unix) OpenSSL/1.1.1d PHP/7.3.10 mod_perl/2.0.8-dev Perl/v5.16.3
    PHP Version: 7.3.10
    PHP Post Max Size: 40 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.53.1
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: ? 5.5.37-0ubuntu0.12.10.1 - Consigliamo l'uso di MySQL con versione minima 5.6. Per i dettagli: Requisiti WordPress
    Max Upload Size: 40 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.0.1
    WC Database Prefix: wprehu_
    Dimensione totale database: 155.12MB
    Dimensione dati database: 135.81MB
    Dimensione indice database: 19.31MB
    wprehu_woocommerce_sessions: Dati: 0.48MB + indice: 0.02MB + motore InnoDB
    wprehu_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_woocommerce_downloadable_product_permissions: Dati: 0.25MB + indice: 0.48MB + motore InnoDB
    wprehu_woocommerce_order_items: Dati: 0.19MB + indice: 0.06MB + motore InnoDB
    wprehu_woocommerce_order_itemmeta: Dati: 1.52MB + indice: 1.92MB + motore InnoDB
    wprehu_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
    wprehu_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_actionscheduler_actions: Dati: 0.02MB + indice: 0.11MB + motore InnoDB
    wprehu_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_actionscheduler_logs: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_comments: Dati: 1.52MB + indice: 0.94MB + motore InnoDB
    wprehu_layerslider: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_layerslider_revisions: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_options: Dati: 3.52MB + indice: 0.08MB + motore InnoDB
    wprehu_postmeta: Dati: 51.56MB + indice: 11.03MB + motore InnoDB
    wprehu_posts: Dati: 69.52MB + indice: 0.97MB + motore InnoDB
    wprehu_termmeta: Dati: 0.38MB + indice: 0.45MB + motore InnoDB
    wprehu_terms: Dati: 0.09MB + indice: 0.16MB + motore InnoDB
    wprehu_term_relationships: Dati: 0.48MB + indice: 0.39MB + motore InnoDB
    wprehu_term_taxonomy: Dati: 0.11MB + indice: 0.13MB + motore InnoDB
    wprehu_usermeta: Dati: 1.52MB + indice: 0.59MB + motore InnoDB
    wprehu_users: Dati: 0.08MB + indice: 0.05MB + motore InnoDB
    wprehu_wcpv_commissions: Dati: 0.28MB + indice: 0.00MB + motore InnoDB
    wprehu_wcpv_per_product_shipping_rules: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_wc_admin_notes: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_wc_category_lookup: Dati: 0.09MB + indice: 0.00MB + motore InnoDB
    wprehu_wc_customer_lookup: Dati: 0.06MB + indice: 0.03MB + motore InnoDB
    wprehu_wc_download_log: Dati: 0.19MB + indice: 0.19MB + motore InnoDB
    wprehu_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_wc_order_product_lookup: Dati: 0.09MB + indice: 0.06MB + motore InnoDB
    wprehu_wc_order_stats: Dati: 0.08MB + indice: 0.05MB + motore InnoDB
    wprehu_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_wc_product_meta_lookup: Dati: 0.16MB + indice: 0.36MB + motore InnoDB
    wprehu_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_wpmm_subscribers: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_yith_vendors_commissions: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_yith_vendors_commissions_notes: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
    wprehu_yoast_indexable: Dati: 2.52MB + indice: 0.27MB + motore InnoDB
    wprehu_yoast_indexable_hierarchy: Dati: 0.31MB + indice: 0.42MB + motore InnoDB
    wprehu_yoast_migrations: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_yoast_primary_term: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
    wprehu_yoast_seo_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
    wprehu_yoast_seo_meta: Dati: 0.19MB + indice: 0.00MB + motore InnoDB
    
    ### Post Type Counts ###
    
    attachment: 57
    avia_framework_post: 10
    custom_css: 1
    nav_menu_item: 17
    oembed_cache: 1
    page: 74
    post: 2
    product: 1309
    revision: 2373
    shop_coupon: 1
    shop_order: 1205
    shop_order_refund: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?I messaggi di errore non saranno mostrati ai visitatori.
    
    ### Active Plugins (8) ###
    
    PL_Tools: by Me – 1.0
    Q2W3 Fixed Widget: by Thomas Maier
    Max Bond – 5.1.9
    
    SG Optimizer: by SiteGround – 5.5.1
    WooCommerce Stripe Gateway: by WooCommerce – 4.3.3
    WooCommerce Product Vendors: by WooCommerce – 2.1.18 – Non testato con la versione attiva di WooCommerce
    WooCommerce: by Automattic – 4.0.1 – 4.3.1 è disponibile
    Yoast SEO: by Team Yoast – 14.0.2
    WP Maintenance Mode: by Designmodo – 2.2.4
    
    ### Inactive Plugins (1) ###
    
    WooCommerce Services: by Automattic – 1.23.0 – 1.24.0 è disponibile
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #24 - /negozio/
    Carrello: #25 - /carrello/
    Cassa: #26 - /checkout/
    Il mio account: #27 - /mio-account/
    Termini e condizioni: ? La pagina non è impostata
    
    ### Theme ###
    
    Name: Enfold Child
    Version: 1.0
    Author URL: https://www.kriesi.at
    Child Theme: ?
    Parent Theme Name: Enfold
    Parent Theme Version: 4.5.7
    Parent Theme Author URL: https://kriesi.at
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: enfold-child/woocommerce/emails/customer-completed-order.php versione 3.5.0 è obsoleta. La versione attuale è 3.7.0
    enfold-child/woocommerce/emails/customer-processing-order.php versione 3.5.4 è obsoleta. La versione attuale è 3.7.0
    
    Outdated Templates: ?
    					
    					
    						Scopri come aggiornare
    
    ### Action Scheduler ###
    
    Completato: 23
    Oldest: 2020-08-04 15:11:24 +0000
    Newest: 2020-08-04 15:11:54 +0000
    
    
    Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Based on the status report you shared, I noticed that you’re using Product Vendors. For more support on that plugin, please open a ticket at https://woocommerce.com/my-account/tickets as this forum is only geared towards aspects of the core WooCommerce plugin itself.

    Please note, however, support for custom coding usually falls outside the scope of support offered at WooCommerce.com. For feedback/help with custom coding, we recommend getting in touch with the web developer community at large or contacting one of the customisation experts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Vendor Name as Username’ is closed to new replies.