• Resolved kote38

    (@kote38)


    Hello,

    When you are in “Statistics > Stocks”, it is possible to download the list of stocks via a button. This list is sent by email:

    I would like to change the email address of the export destination.
    Currently it is my email address (site admin) that receives them while I would like it to be my customer (who is also admin role)

    The link contained in the email looks like :
    website-adresse.fr/wp-admin/?action=woocommerce_admin_download_report_csv&filename=wc-stock-report-export-16421720730052

    We notice a certain action named “woocommerce_admin_download_report_csv” (maybe useful ?)

    Any idea how to change the recipient of stock exports?

    Translated with http://www.DeepL.com/Translator (free version)

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @kote38

    As you mentioned, it is possible to download the list of stocks via a button.

    IMAGE
    Link to image: https://snipboard.io/059oFn.jpg

    But there is no inbuilt way in WooCommerce to send this downloaded report via email.

    Are you using any plugin or some custom code to achieve that? This information will be helpful towards understanding the requirement better. Please let us know.

    Thread Starter kote38

    (@kote38)

    I don’t know, on my end, on the other Woocommerce sites I develop, I always have a black button that appears (Capture) “Your stock report will be emailed to you”.

    And I don’t see any link between my plugins on the different sites.
    It’s still classic (WpRocket, Yoast, Woocommerce, Akismet..)

    Hi @kote38

    Got your point. You are only referring to the default sending of the reports over email.

    I understand that the other person is also a site admin.

    The report will go to the email address provided at Settings → Administration Email Address. You can change it here:

    IMAGE
    Link to image: https://snipboard.io/Le0giW.jpg

    Here are a couple of other ways to change the admin email.

    Thread Starter kote38

    (@kote38)

    I have already try :/
    It’s always my main mail adress who received it.

    Thread Starter kote38

    (@kote38)

    By the way, the mail template I receive is identical to the one managed in “Woocommerce > Settings > E-mails” (like “New Order”, etc.) but the latter does not appear in the list! (It would have been too easy to change the recipient email like for “New order”, “Cancelled order”, “Failed order”. )

    Hi @kote38

    Unfortunately, it is not possible to change the recipient admin email address for those individually.

    If you tried changing the email address from Settings → Administration Email Address but it is not working as expected then please let us know.

    If you’re interested, here’s the documentation for customizing emails.

    Thread Starter kote38

    (@kote38)

    This is indeed the case, when I go to Settings → Administration Email Address and change to my 2nd address, it’s always my main address (the old main one then) that receives the email!

    Thread Starter kote38

    (@kote38)

    There is no function in the WordPress code to bypass and define itself the destination email address of the function woocommerce_admin_download_report_csv?

    Hello,

    This is indeed the case, when I go to Settings → Administration Email Address and change to my 2nd address, it’s always my main address (the old main one then) that receives the email!

    Have you also tried the other methods described here?: https://www.wpbeginner.com/beginners-guide/how-to-change-the-wordpress-admin-email/

    There is no function in the WordPress code to bypass and define itself the destination email address of the function woocommerce_admin_download_report_csv?

    I’d recommend the following places for more development-oriented questions. These are where open-source developers hang out and they might be able to help you:

    WooCommerce Slack Community: https://woocommerce.com/community-slack/WooCommerce Community on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    Thread Starter kote38

    (@kote38)

    After several tries (by changing the addresses from the SQL database), it seems that the email containing the export link is not sent to the admin email address of the site (table ‘wp_options’) but rather to the email address of the table account (table ‘wp_users’).

    When the 2 email addresses are different, it is the one entered in ‘wp_users’ that receives the email containing the export.

    Hi @kote38 ,

    Just to clarify it a bit, are you using a plugin to export it?

    Could you please share a copy of your site’s System Status too? 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.

    All the best,

    Thread Starter kote38

    (@kote38)

    Hi,

    So I solved the problem: my client now receives the export link in his mailbox. He had an email address “@live.fr” which was supposed to be a problem (not received in spam either) since by changing it to a “pro” address it works.

    I repeat: it is the email address indicated in the account (WordPress -> Account) of the person who receives the export email and not the General of WordPress or in the Woocommerce configurations.

    No I simply use the nativ export system from “Statistiques ==> Stock”, then I just click on “Download” button (with arrow in front of the cloud pictogram).

    Here is my report :

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://horse-liberty.fr
    Site address (URL): https://horse-liberty.fr
    WC Version: 5.9.0
    REST API Version: ✔ 5.9.0
    WC Blocks Version: ✔ 6.1.0
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 2.8.0
    Log Directory Writable: ✔
    WP Version: 5.8.3
    WP Multisite: –
    WP Memory Limit: 512 Mo
    WP Debug Mode: –
    WP Cron: ✔
    Language: fr_FR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.25
    PHP Post Max Size: 130 Mo
    PHP Time Limit: 165
    PHP Max Input Vars: 16000
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.50-log
    Max Upload Size: 128 Mo
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Taille totale de la base de données: 94.24MB
    Taille de la base de données: 67.83MB
    Taille de l’index: 26.41MB
    wp_woocommerce_sessions: Données : 0.06MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_woocommerce_order_items: Données : 0.11MB + Index : 0.06MB + Moteur InnoDB
    wp_woocommerce_order_itemmeta: Données : 1.52MB + Index : 0.61MB + Moteur InnoDB
    wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_actions: Données : 2.02MB + Index : 2.23MB + Moteur InnoDB
    wp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_logs: Données : 2.02MB + Index : 1.77MB + Moteur InnoDB
    wp_apiChro: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_atum_order_itemmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_atum_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_atum_product_data: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_chrono_caisse: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_commentmeta: Données : 1.31MB + Index : 0.03MB + Moteur InnoDB
    wp_comments: Données : 1.45MB + Index : 0.45MB + Moteur InnoDB
    wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_lpc_inward_label: Données : 0.34MB + Index : 0.05MB + Moteur InnoDB
    wp_lpc_label: Données : 0.14MB + Index : 0.00MB + Moteur InnoDB
    wp_lpc_outward_label: Données : 15.52MB + Index : 0.03MB + Moteur InnoDB
    wp_lrgawidget_pro_global_settings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_options: Données : 7.09MB + Index : 1.17MB + Moteur InnoDB
    wp_pmxi_files: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_pmxi_history: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_pmxi_images: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_pmxi_imports: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_pmxi_posts: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_pmxi_templates: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_postmeta: Données : 19.55MB + Index : 11.53MB + Moteur InnoDB
    wp_posts: Données : 6.45MB + Index : 2.25MB + Moteur InnoDB
    wp_redirection_404: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_redirection_groups: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_redirection_items: Données : 0.06MB + Index : 0.09MB + Moteur InnoDB
    wp_redirection_logs: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_sbi_instagram_feeds_posts: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_sbi_instagram_feed_locator: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_sbi_instagram_posts: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_termmeta: Données : 0.13MB + Index : 0.17MB + Moteur InnoDB
    wp_terms: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
    wp_term_relationships: Données : 0.52MB + Index : 0.27MB + Moteur InnoDB
    wp_term_taxonomy: Données : 0.09MB + Index : 0.03MB + Moteur InnoDB
    wp_toolset_associations: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_toolset_associations_old: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_toolset_connected_elements: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_toolset_post_guid_id: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_toolset_relationships: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
    wp_toolset_type_sets: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_usermeta: Données : 1.47MB + Index : 0.45MB + Moteur InnoDB
    wp_users: Données : 0.05MB + Index : 0.05MB + Moteur InnoDB
    wp_wcpdf_invoice_number: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_admin_notes: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_admin_note_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_customer_lookup: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_etransactions_cards: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_etransactions_payment: Données : 0.19MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_order_product_lookup: Données : 0.09MB + Index : 0.06MB + Moteur InnoDB
    wp_wc_order_stats: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB
    wp_wc_order_tax_lookup: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_product_meta_lookup: Données : 0.41MB + Index : 0.59MB + Moteur InnoDB
    wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wdp_orders: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_wdp_order_items: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_wdp_rules: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_yoast_indexable: Données : 5.52MB + Index : 2.72MB + Moteur InnoDB
    wp_yoast_indexable_hierarchy: Données : 0.23MB + Index : 0.30MB + Moteur InnoDB
    wp_yoast_migrations: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_yoast_primary_term: Données : 0.08MB + Index : 0.06MB + Moteur InnoDB
    wp_yoast_seo_links: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
    wp_yoast_seo_meta: Données : 0.09MB + Index : 0.00MB + Moteur InnoDB
    
    ### Post Type Counts ###
    
    agenda: 12
    attachment: 2803
    categories-listing: 14
    nav_menu_item: 139
    oembed_cache: 61
    page: 19
    post: 3
    product: 822
    product_variation: 1902
    promotions: 6
    revision: 784
    shop_coupon: 10
    shop_order: 292
    shop_order_refund: 13
    un-seo-categorie: 2
    une-faq: 18
    une-section-cat: 6
    wp-types-group: 15
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (25) ###
    
    Admin Menu Editor Pro: par Janis Elsts – 2.16
    Akismet Anti-Spam: par Automattic – 4.2.1
    Classic Editor: par Contributeurs et contributrices WordPress – 1.6.2
    Colissimo shipping methods for WooCommerce: par Colissimo – 1.6.5
    Contact Form 7 Captcha: par 247wd – 0.1.0
    Contact Form 7: par Takayuki Miyoshi – 5.5.2
    Up2pay e-Transactions: par Up2pay e-Transactions – 1.0.2
    Facebook for WooCommerce: par Facebook – 2.6.9
    FileBird: par Ninja Team – 3.9
    Imsanity: par Exactement WWW – 2.7.2
    Smash Balloon Instagram Feed: par Smash Balloon – 2.9.10
    Lara's Google Analytics - Pro: par Amr M. Ibrahim – 3.3.2
    Redirection: par John Godley – 5.2.1
    Search By SKU - for Woocommerce: par Unroll Digital – 0.8.0
    Stock Exporter for WooCommerce: par Webdados – 1.0.0
    Toolset Types: par OnTheGoSystems – 3.4.14
    Variation Swatches for WooCommerce: par Woosuite – 2.1.1
    Chrono-Caisse: par Chrono-Caisse – 1.8.2
    Table Rate Shipping for WooCommerce: par JEM Plugins – 2.25
    WooCommerce PDF Invoices & Packing Slips: par Ewout Fernhout – 2.10.3
    WooCommerce: par Automattic – 5.9.0 (une mise à jour de la version 6.1.1 est disponible)
    WooSwipe: par Thrive Website Design – 1.1.12
    Yoast SEO: par L’équipe Yoast – 17.9
    WordPress Force HTTPS: par A. Kai Armstrong – 0.1.4
    YITH WooCommerce Bulk Product Editing Premium: par YITH – 1.5.0
    
    ### Inactive Plugins (1) ###
    
    ATUM Inventory Management for WooCommerce: par Stock Management Labs™ – 1.9.9
    
    ### 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 ###
    
    Base de la boutique: ❌ Page non définie
    Panier: #70 - /panier/
    Commander: #71 - /commande/
    Mon compte: #72 - /mon-compte/
    Conditions générales de vente et d’utilisation: #879 - /conditions-generales-de-vente/
    
    ### Theme ###
    
    Name: Koté Thème
    Version: (une mise à jour de la version 0 est disponible)
    Author URL: 
    Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement
    nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: kote-theme/archive-product.php version - est obsolète. La version du noyau est 3.4.0
    kote-theme/content-product.php
    kote-theme/content-single-product.php version 3.0.0 est obsolète. La version du noyau est 3.6.0
    kote-theme/single-product.php version - est obsolète. La version du noyau est 1.6.4
    kote-theme/taxonomy-product_cat.php version 1.6.4 est obsolète. La version du noyau est 4.7.0
    
    Outdated Templates: ❌
    					
    					
    						Apprenez comment mettre à jour
    
    ### Action Scheduler ###
    
    Terminé: 6 940
    Oldest: 2021-12-21 09:29:47 +0100
    Newest: 2022-01-21 09:08:49 +0100
    
    Échoué: 17
    Oldest: 2021-11-15 11:22:09 +0100
    Newest: 2021-11-15 11:22:09 +0100
    
    En attente: 2
    Oldest: 2022-01-21 15:58:42 +0100
    Newest: 2022-01-22 01:08:38 +0100
    
    ### Status report information ###
    
    Generated at: 2022-01-21 09:08:53 +01:00
    

    Hi @kote38

    So I solved the problem: my client now receives the export link in his mailbox.

    Great! Thanks for letting us know how you got this sorted by changing the the email address indicated in the account (WordPress -> Account).

    Please feel free to open a new thread if you have other questions.

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

The topic ‘Change stock export mail’ is closed to new replies.