WooCommerce Extra Product Options is a very nice plugin to add extra fields to the products with pricing options for individual option. I implemented this plugin into one of my client’s website. He asked me to show the uploaded image for a product within the cart. By default, this plugin shows the URL of the uploaded image within the cart, which looks a little awkward.

I tried finding a solution for it but could not succeeded. Therefore, I decided to modify this plugin on my own and here is what I did. I added following two lines to:

/wp-content/plugins/woocommerce-tm-extra-product-options/include/class-tm-extra-product-options.php

 

After adding above lines it successfully displayed my uploaded image within the cart.

Similar is the case with the email. So, to cater that issue, I made some modifications in:

/wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php

Problem solved!

 

Note: You need to re-add the item to cart to see the changes.