MinoPress - How to add to Woocommerce attach image to order

Get FREE Premium WordPress Blog Theme

Download Now
MinoPress Logo
  • Home
  • Products
      • Azi Theme - $24
        Azi Theme - $24Multipurpose Woocommerce Theme
      • Muskan <br> $19
        Muskan
        $19
        Multipurpose 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
    • Documentation
    • Create Ticket
    • Contact Us

Search

No products in the cart.

Woocommerce attach image to order – simple snippet

WordPress Snippets

  • 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 this snippet we add to Woocommerce 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 from Woocommerce, 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 to Woocommerce 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

16 types of WordPress websites
December 21, 2021

16 types of WordPress websites

Digital Marketing Glossary
March 8, 2022

Digital Marketing Glossary

how to optimize images for WordPress
November 24, 2021

how to optimize images for WordPress

What is Woocommerce product archive?
March 15, 2022

What is Woocommerce product archive?

What is Woocommerce?
January 26, 2022

What is Woocommerce?

Catetories

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

Tags

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

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


  • My account
  • Documentation
  • 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