MinoPress - How to add to Woocommerce attach image to order

Get FREE Premium WordPress Blog Theme

Download Now
MinoPress Logo
  • Home
  • Products
      • Muskan <br> $19
        Muskan
        $19
        Multipurpose Woocommerce Theme
      • Azedw - $39
        Azedw - $39Multipurpose Woocommerce Theme
      • AAnglo - FREE
        AAnglo - FREELifestyle Blog WordPress Theme
      • Jusako - $19
        Jusako - $19eCommerce HTML5 Template
      View all products
    • Muskan Theme
    • Azedw Theme
    • Aanglo Theme
    • Jusako Template
  • Services
    • WordPress theme Customization
    • WordPress theme installation
    • Custom WP plugin development
    • Convert HTML to WP Theme
    • Convert PSD to WP Theme
    • Custom website design with Figma / Sktch / Xd
    • Convert psd / Figma / Sktch / Xd to html
    • View all services
  • Pricing
  • Blog
    • eCommerce
    • JavaScript
    • Maintenance And Code
    • Review
    • Security
    • Server
    • Snippets
    • SEO And Digital Marketing
    • Speed And Performance
    • Tutorial
    • User Experience
    • WordPress
    • All Articles
  • About
  • Support
    • Muskan Documentation
    • Create Ticket
    • Contact Us

Search

No products in the cart.

Woocommerce attach image to order – simple snippet

Snippets WordPress

  • By: mino-press
  • January 15, 2022
woocommerce attach image to order
Woocommerce attach image to order

Woocommerce attach image to order

By default Woocommerce does not have product images in orders, with thissnippet we add toWoocommerce attach image to order sometimes it’s annoying because as a webmaster you can not remember by name what they ordered and on the part of a customer much more.

Comfortable to see what he ordered if it is a shirt then also its color, meaning the image of Variation.

Anyway, there is a simple code that you can put in function.php and it will add an image to the invitation sent to the customer and the webmaster by email.

We will present a photo from an order fromWoocommerce, what does an order without a photo look like.

befor add Woocommerce attach image to order

Note that in case there were variations in the order it was much clearer to the customer with the need for an image for each product

This simple snippet adds toWoocommerce attach image to order

// Adds image to WooCommerce order emails
function minoPress_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', 'minoPress_add_image_to_wc_emails' );

Just copy and paste, and that’s it! You have photos of the product that you ordered in the e-commerce email for both the customer and the webmaster

This is the result after adding the snippet:

after add Woocommerce attach image to order

If you want to know the differences WooCommerce vs Shopify, you can find information in this article I wrote

  • twitter
  • facebook
  • WhatsApp
  • Google+
  • Pinterest
  • LinkedIn
  • Buffer

    Previous Post

    Choosing color combinations for a website – color psychology

    Next Post

    What is Gzip compression on websites

    0 0 votes
    Article Rating
    Subscribe
    Login
    Notify of
    guest
    guest
    0 Comments
    Inline Feedbacks
    View all comments

    Search


    Recent post

    async and await in JavaScript example
    November 25, 2021

    async and await in JavaScript example

    The Differences Between Elementor vs Gutenberg: Which Web Builder is Better?
    March 31, 2022

    The Differences Between Elementor vs Gutenberg: Which Web Builder is Better?

    Content Writing SEO
    December 29, 2021

    Content Writing SEO

    Website optimization – the basis for promoting your website
    December 23, 2021

    Website optimization – the basis for promoting your website

    Best Free Review Plugins for WooCommerce
    May 1, 2022

    Best Free Review Plugins for WooCommerce


    MULTIPURPOSE WORDPRESS THEME

    MULTIPURPOSE WORDPRESS THEME

    $59

    View Details

    Catetories

    • category image eCommerce
    • category image General
    • category image JavaScript
    • category image Maintenance And Code
    • category image Review
    • category image Security
    • category image SEO And Digital Marketing
    • category image Server
    • category image Snippets
    • category image Speed And Performance
    • category image Tutorial
    • category image User Experience
    • category image WordPress

    Tags

    • 301
    • 302
    • action
    • archive
    • blogging
    • CDN
    • code example
    • colors
    • compression
    • Content
    • CSS
    • Dark Mode
    • Digital Marketing
    • Domain
    • domain name
    • Elementor
    • filter
    • Glossary
    • Guide
    • Gutenberg
    • gzip
    • hook
    • hosting
    • how to
    • image optimization
    • Improving
    • javascript
    • localStorage
    • Mistakes
    • optimization
    • PHP
    • plugin
    • Plugins
    • promoting
    • psychology
    • redirect
    • Review
    • Security
    • SEO
    • Shopify
    • snippet
    • Speed
    • SVG
    • Tips
    • UI
    • User Experience
    • User Interface
    • UX
    • Woocommerce
    • WordPress
    • wordpress security
    • wordpress security headers

    Newsletter signup

    Subscribe to the MinoPress newsletter to get the latest news Tutorial and guides, premium and free theme releases, updates, promotions, and more!

    Please wait...

    Thank you for sign up!

    Logo footer logo

    Our goal is to make life easy for web developers in the most optimal way, with modern and contemporary designs, (even without knowledge of code writing to succeed in creating amazing websites). Our motto is quality above all

    Follow us:
    • FB
    • YU
    • LI

    Contact info

    • Email: admin@minopress.com
    • Submit Ticket: Support


    • Affiliate Program
    • My account
    • MinoPress FAQ

    © 2021 WP Studio , All Rights Reserved

    payment methods
    • Contact Us
    • Support
    • Terms and Conditions
    • Refund and Returns Policy

    This website uses cookies to improve your experience. By using this website you agree to our Data Protection Policy.

    Read more

    PREMIUM WORDPRESS THEMES & SERVICES Dismiss

    wpDiscuz