To add the product image to the checkout review order page, you want to add the following into your functions.php file of your theme.
function my_add_order_review_product_image( $product, $product_obj ) {
$image = wp_get_attachment_image( get_post_thumbnail_id( $product_obj->post->ID ), 'shop_thumbnail' );
return $image . $product;
}
add_filter( 'woocommerce_checkout_product_title', 'my_add_order_review_product_image', 10, 2 );
This is utilizing the filter hook that is present in order reviews file template of WooCommerce.
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- How to rotate the header image per day?
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Creating Search Engine Friendly URL’s with Word Press
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- Woocommerce – Print Product’s Custom Field In Email
- How Can I limit the visible part of the short-description on the Category page?
- Translating (WooCommerce) placeholder text
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- Change post template the proper way
- How to make my wordpress site responds for 2 domains
- Custom Slider Per Page created
- Admin new order email customization
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- Best Practices for Regression Testing WordPress Websites?
- Custom Walker: how to get ID in function start_lvl
- How to include own css on wordpress tinymce editor?
- What is true chmod for WordPress?
- wp_trim_words() does not trim the_content() in WordPress
- How can I create an alternative home page?
- Gallery Shortcode: using link attribute to link to a specific image size
- Limit comments displayed on basis of user_id
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- How to merge all my pages into one, while keeping a menu bar?
- Outputting Page Content in Two Places
- How to use get_option() without any filter?
- Multiple Instances sharing the same database in a development environment
- Hide custom field if empty
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How to customize core admin pages within a theme?
- URLs and navigation in custom themes
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Automatically check parents (in a taxonomy) when child is selected
- Adding custom field in all widgets, but at the top of the form, in admin area
- Load MediaPlayerElement after Infinity Scroll loads more posts
- Always logged in even if remember me is unchecked?
- Getting Theme element into plugins page editor in wp admin
- How do I remove a customiser option from a parent theme in a child theme?
- Keep Title and Description always
- Your thoughts on the interaction with one custom database table from WP?
- Is there a way to override require_once of the main theme on the child theme?
- Make RSS feed only accesible by Mailchimp
- WP custom routing does not work
- Best Practice for Displaying Categorized Posts on Front Page
- I tried to change my URL and ended up losing access to my site? I went into general settings and changed both WordPress URL and Site URL
- How do I modify the size of the text in my page titles?
- How to create “custom page types” with different custom fields in them?
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Grabbing a data from wp_usermeta
- wordpress shortcode not working
- WordPress Code Snippet to count total posts by author
- How To Style Links in Content Area With Tag Automatically?
- Meta Tags by Meta Box
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Get whole linked with wp_list_pages
- Force WordPress to load a specific template
- Widget where it can make changes to the container
- Inline-Table under TwentyTwelve not working
- Allow a subscriber to be an author and view only his post
- Troubles about insering a POST with a SQL query, post_status
- Custom Post Type, Custom Columns List
- How to activate flash cards
- Transferring theme and imported post attachments
- Personalized Gallery what are my options?
- Trying to use .htaccess to redirect /profile to /login-2?action=profile
- How to prevent plugin, theme installation failures on WordPress?
- Embed Latest Track (Dynamic Updating) SoundCloud
- Adding category base to url in custom post giving 404?
- What is my error trying to create a new table in the database?
- Gender based user avatar
- How to add a template – so that i can choose a different menu for some pages
- Allow WP users to sort search result on a videos site
- Javascript Tooltip not fully working on my wordpress page
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- Woocommerce list variations that are added already to cart in Single Product
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- bulk generate wp taxonomy tags from wp title with self php script
- Structure of post types for TV Shows and episodes
- Share on social media created listing after submission
- Build custom pdf from users choices
- Show Header When Not In Iframe
- Background setting isn’t applied to entire sidebar height
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Function to query by custom field and category
- Confused about customising widgets
- Posts are deleted everyday at night
- Changes in comments.php in the child theme does not show up on the site
- Share user access between two wordpress sites
- how to modify request to get_template_part()?
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Loop display only 5 posts