• Resolved jiswebsite

    (@jiswebsite)


    Hello, is it possible to display images from the shopping cart in the emails? I use cpo Builder, and some images visible in the shopping cart, are not visible in the emails. This is not a variant, cpo builder allows me to create custom boards, with dimensions that appear only if they are checked. This appears in the cart, but not in the mail.

    Thanks to you

    shopping cart ok

    E-mail photos different

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    By default, the WooCommerce order emails will not display the product images (though this can be changed via snippets/customization).

    However, themes often override the default email templates, and this can also be affected by plugins as well.

    Were you adding the image to the email using that “cpo builder”? Or were the images being added to the emails as part of your theme? Please explain a bit about how you were adding the images to the emails.

    Also, 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, you can paste it here in your reply.

    Thread Starter jiswebsite

    (@jiswebsite)

    So I use the divi theme and no plugin for emails. I use woocommerce for the main image of the product and cpo to set up the selectable options (length, width, edge which make other image appear depending on the choice selected by the customer etc…).

    I also use this code to display images in emails in PHP function, but it doesn’t display all the image info like in the cart, but just the main woocommerce image.

    // Adds image to WooCommerce order emails
    function w3p_add_image_to_wc_emails( $args ) {
        $args['show_image'] = true;
        $args['show_image'] = array( 100, 50 );
        return $args;
    }
    add_filter( 'woocommerce_email_order_items_args', 'w3p_add_image_to_wc_emails' );

    I would just like to display the same images for the emails as in the cart…
    Here is my System Report

    Thanks to you

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://4cotes.com
    Site address (URL): https://4cotes.com
    WC Version: 4.9.1
    REST API Version: ? 4.9.1
    WC Blocks Version: ? 4.0.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.8.3
    Log Directory Writable: ?
    WP Version: 5.6
    WP Multisite: –
    WP Memory Limit: 256 Mo
    WP Debug Mode: –
    WP Cron: ?
    Language: fr_FR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.26
    PHP Post Max Size: 80 Mo
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.74.0
    OpenSSL/1.1.1i
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.27-MariaDB
    Max Upload Size: 80 Mo
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.9.1
    WC Database Prefix: wpwl_
    Taille totale de la base de données: 17.71MB
    Taille de la base de données: 13.10MB
    Taille de l’index: 4.61MB
    wpwl_woocommerce_sessions: Données?: 0.45MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_api_keys: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_woocommerce_attribute_taxonomies: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_downloadable_product_permissions: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_order_items: Données?: 0.01MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_woocommerce_order_itemmeta: Données?: 0.19MB + Index?: 0.11MB + Moteur MyISAM
    wpwl_woocommerce_tax_rates: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_tax_rate_locations: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_shipping_zones: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_shipping_zone_locations: Données?: 2.35MB + Index?: 2.47MB + Moteur MyISAM
    wpwl_woocommerce_shipping_zone_methods: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_payment_tokens: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_payment_tokenmeta: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_woocommerce_log: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_actionscheduler_actions: Données?: 0.12MB + Index?: 0.06MB + Moteur MyISAM
    wpwl_actionscheduler_claims: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_actionscheduler_groups: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_actionscheduler_logs: Données?: 0.08MB + Index?: 0.06MB + Moteur MyISAM
    wpwl_bwf_contact: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB
    wpwl_bwf_contact_meta: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_bwf_wc_customers: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB
    wpwl_cli_scripts: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_commentmeta: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_comments: Données?: 0.02MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_links: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_loginizer_logs: Données?: 0.02MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_options: Données?: 2.14MB + Index?: 0.35MB + Moteur MyISAM
    wpwl_pmxe_exports: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_pmxe_google_cats: Données?: 0.39MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_pmxe_posts: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_pmxe_templates: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_pmxi_files: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_pmxi_history: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_pmxi_images: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_pmxi_imports: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_pmxi_posts: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_pmxi_templates: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_postmeta: Données?: 3.50MB + Index?: 0.51MB + Moteur MyISAM
    wpwl_posts: Données?: 2.90MB + Index?: 0.12MB + Moteur MyISAM
    wpwl_termmeta: Données?: 0.01MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_terms: Données?: 0.01MB + Index?: 0.03MB + Moteur MyISAM
    wpwl_term_relationships: Données?: 0.03MB + Index?: 0.05MB + Moteur MyISAM
    wpwl_term_taxonomy: Données?: 0.01MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_usermeta: Données?: 0.07MB + Index?: 0.03MB + Moteur MyISAM
    wpwl_useronline: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_users: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_wcpdf_invoice_number: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_admin_notes: Données?: 0.01MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_admin_note_actions: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_category_lookup: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_customer_lookup: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_wc_download_log: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_order_coupon_lookup: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_order_product_lookup: Données?: 0.01MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_wc_order_stats: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_wc_order_tax_lookup: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_product_meta_lookup: Données?: 0.01MB + Index?: 0.02MB + Moteur MyISAM
    wpwl_wc_reserved_stock: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_tax_rate_classes: Données?: 0.00MB + Index?: 0.01MB + Moteur MyISAM
    wpwl_wc_webhooks: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wc_zapier_history: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wfacp_stats: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB
    wpwl_wfco_report_views: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB
    wpwl_woof_query_cache: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    wpwl_wpie_template: Données?: 0.05MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_wpmailsmtp_tasks_meta: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB
    wpwl_yoast_indexable: Données?: 0.31MB + Index?: 0.23MB + Moteur InnoDB
    wpwl_yoast_indexable_hierarchy: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB
    wpwl_yoast_migrations: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB
    wpwl_yoast_primary_term: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB
    wpwl_yoast_seo_links: Données?: 0.13MB + Index?: 0.09MB + Moteur InnoDB
    wpwl_ywsfl_list: Données?: 0.00MB + Index?: 0.00MB + Moteur MyISAM
    
    ### Post Type Counts ###
    
    areamaps: 3
    attachment: 391
    customize_changeset: 20
    custom_css: 1
    et_body_layout: 7
    et_footer_layout: 1
    et_header_layout: 1
    et_pb_layout: 152
    et_template: 24
    et_theme_builder: 3
    nav_menu_item: 11
    oembed_cache: 4
    page: 54
    post: 2
    product: 109
    product_variation: 3
    project: 2
    revision: 98
    shop_order: 4
    szbdzones: 2
    uni_cpo_option: 15
    wc_order_email: 2
    wc_order_status: 9
    wfacp_checkout: 2
    xlwcty_thankyou: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (32) ###
    
    All-in-One WP Migration File Extension: par ServMask
    Inc. – 1.7
    
    All-in-One WP Migration: par ServMask – 7.33
    GDPR Cookie Consent: par WebToffee – 1.9.5
    Divi Carousel: par DiviGear – 2.0.19
    Divi Breadcrumbs Module: par Divi Codex – 2.1.2
    Divi Coming Soon: par Divi Life — Tim Strifler – 1.0.1
    Divi Next Button: par Divi Next – 1.8
    Divi Toolbox: par Divi Lover – 1.6.10
    Email Address Encoder: par Till Krüss – 1.0.22
    MonsterInsights - Google Analytics pour WordPress: par MonsterInsights – 7.15.0
    Loginizer: par Softaculous – 1.6.6
    Menu Icons: par ThemeIsle – 0.12.5
    Post Types Order: par Nsp Code – 1.9.5.4
    Product Options and Price Calculation Formulas for WooCommerce – Uni CPO (Premium): par MooMoo Agency – 4.9.7
    UpdraftPlus - Sauvegarde/Restauration: par UpdraftPlus.Com
    DavidAnderson – 2.16.46.24
    
    Widget Logic: par WPChef – 5.10.4
    Advanced Order Export For WooCommerce: par AlgolPlus – 3.1.7
    NextMove Lite - Thank You Page for WooCommerce: par XLPlugins – 2.13.1
    WooCommerce Stripe Gateway: par WooCommerce – 4.7.0
    WooCommerce Map delivery Area: par timersys – 1.0.2.7 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.0
    WooCommerce Order Status Manager: par SkyVerge – 1.13.1
    WooCommerce PDF Invoices & Packing Slips: par Ewout Fernhout – 2.7.4
    WOOF - WooCommerce Products Filter: par realmag777 – 2.2.4
    Woocommerce Side Cart Premium: par XootiX – 3.0 – La version installée n’a pas été testée avec la version en cours de WooCommerce 4.0
    WooCommerce: par Automattic – 4.9.1 (une mise à jour de la version 4.9.2 est disponible)
    AeroCheckout: Custom WooCommerce Checkout Pages: par WooFunnels – 2.3.0
    Yoast SEO: par L’équipe Yoast – 15.6.2
    WP Mail SMTP: par WPForms – 2.5.1
    WP Rocket: par WP Media – 3.8.3
    WP Sitemap Page: par Tony Archambeau – 1.6.2
    WP-UserOnline: par Lester 'GaMerZ' Chan – 2.87.5
    YITH WooCommerce Customize My Account Page: par YITH – 3.0.4
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CAD ($)
    Currency Position: left
    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: #3996 - /boutique/
    Panier: #3997 - /panier/
    Commander: #3998 - /commande/
    Mon compte: #3999 - /mon-compte/
    Conditions générales de vente et d’utilisation: #233715 - /conditions-generales-dutilisation-4cotes-com/
    
    ### Theme ###
    
    Name: 4c?tés enfant
    Version: 1.1
    Author URL: https://www.divi-community.fr
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 4.8.1
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Terminé: 480
    Oldest: 2021-01-22 14:27:25 +0000
    Newest: 2021-01-26 20:33:40 +0000
    
    
    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    That snippet/filter is good for displaying the product images in the email.

    It looks like you are setting it to display images and also set the size, however both of those are being set on the $args['show_image'] argument.

    Instead, please try changing it to this (changed the line setting the size to $args['image_size'] instead):

    
    // Adds image to WooCommerce order emails
    function w3p_add_image_to_wc_emails( $args ) {
        $args['show_image'] = true;
        $args['image_size'] = array( 100, 50 );
        return $args;
    }
    add_filter( 'woocommerce_email_order_items_args', 'w3p_add_image_to_wc_emails' );
    
    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image mail cart’ is closed to new replies.