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
- Steps for custom data retrieval
- Send reply with pre-prepared answers
- changing font size and font of a custom message added after comment
- Edit sticky header html – How to locate corresponding php file
- Include custom JS without child theme
- help to change some colors (woocomerce and store locator) [closed]
- Remove add news page and posts from menu
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Custom Status of Custom Post type need to EXCLUDE from Taxonomy pages
- Show Featured Post Only On The Homepage
- Prepopulating a specific page template with HTML/CSS
- The function can not create a table on MariaDB server
- Child theme .css files are not overriding their parent .css files
- redirect post id to post full url
- Allow a Widget to be used one time only?
- One WordPress Installation for 2 Domains
- custom meta box for page default template
- result from custom filter admin table list backend does not work
- Save custom attributes of product in woocommerce
- How can I create a second multisite network in a subdirectory?
- Silo Structure; Will links from home page to a Sub-category or Post undermine silo seo advantage? [closed]
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- education system [closed]
- How to wrap the list with custom class using wp_nav_menu?
- Custom search to display results within same page
- How can I get the custom post type assigned to a current custom taxonomy for query?
- Search widget will search everything in the site, how to limit to only search gallery name
- $wpdb->replace: WHERE?
- How can I display a PHP foreach loop’s answers by AJAX
- Use of Templates in a Plugin
- No shipping method has been selected [closed]
- Why can’t I access my Intranet LDAPS with NADI?
- Alphabetical Custom Menu
- How Can I Move Data From Form 1 To Form 2
- Add Custom API Call to WP-Login.php
- wp_query get post custom taxonomy in search.php
- How can I setup up an a pre-populated pdf based on what was entered? [closed]
- External Domain on WordPress Multisite
- Theme Customization through admin panel. (Appearance-Customize)
- Get rid of title from static front page
- In the archive widget, how do I sort in between two years?
- How can I setup a wordpress site with multi country & multi lingual support
- Make custom page look exactly as homepage
- Integrate wordpress into index page
- Extra theme – header customization help [closed]
- Disable widgets in customizer for sidebar
- Is there a way to use LaTeX formatting for WordPress?
- Highlight comments of all the site authors
- Customization API for plugin development
- Best practice – pages – ACF or inline coding
- Custom wp-content and upload directory
- How do i remove animated icon [closed]
- How do I change .css versioning?
- Set Title from Custom Template
- For a specific theme, how do I build a list of all the possible theme modification names?
- Fromcraft Plugin On click submit button [closed]
- Manage multiple domains from one backend
- Get ORIGINAL image links from get_post_gallery
- Custom link for wp_insert_post
- Login/Logout Session Sharing – Multiple WordPress Installations
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- change url for static files in /wp-admin with a cdn url
- creating a custom shop page display on archive woocommerce
- Child Theme with multiple css files
- Static admin page for all multisite users
- Using custom image resizing script in a page
- custom post type – page template
- Unable to edit the “customize” section and the “widget” section is populating unknown code
- Sub menu indicator that links to sub menu
- Choose sidebars column in widgets.php page [closed]
- Can’t receive $args[ ] to my custom widget
- How to add custom control to a page?
- Navigation label for page in custom theme
- Setup page on first login on multisite
- Unable to sanitize in customizer and escape in theme without removing ability for user to use “< br >” to insert a line break
- polylang + category/tag custom language link
- Auto login from custom registration form
- How to get Related Custom Posts?
- Background image not appearing
- Anspress Customization: How to show logged in user votes on a single answer?
- Organizing the position of widgetized areas in the backend