IWD Onepage Checkout getItemHtml template in Magento

IWD Onepage Checkout getItemHtml template in Magento

August 9, 2026 · Illustrated author avatarBy Stefan Bogdanescu
IWD Onepage Checkout getItemHtml template in Magento

Solving Magento IWD Onepage Checkout Review Items Template Issue

If you’re working with the popular IWD Onepage Checkout extension for Magento and wanting to include thumbnail images in the reviews block under each product, you’ve come to the right place. Let’s dive into how to achieve this using the proper template files and methods.

Understanding the Default Behavior

By default, the IWD Onepage Checkout extension displays only the name of the products in the review section of the checkout page. The thumbnail images are not visible out-of-the-box. This is because the extension uses a specific template structure for rendering the reviews block.

Locating the Relevant Templates

The key to modifying this behavior lies in understanding where Magento renders these items and what templates it uses.

  1. info.phtml: This file is located under template/opc/onepage/review directory of your theme (or extension) folder. It’s responsible for looping through all the items and rendering them using the getItemHtml() method.
<?php foreach($this->getItems() as $_item): ?>
    <?php echo $this->getItemHtml($_item)?>
<?php endforeach ?>
  1. item.phtml: This is the default item template used by IWD Onepage Checkout. However, it’s important to note that this file is located under your base theme folder (template/opc/onepage/review/item.phtml). Modifying this directly won’t have any effect on the review block in checkout.

Finding the Right Template

To include a thumbnail image for each product in the reviews list, we need to locate and modify the correct template file that getItemHtml() is calling. The actual implementation of getItemHtml() is defined in the extension’s own codebase, not in your theme.

IWD Onepage Checkout provides its own customization options through XML layout files and template paths within the extension. By default, it uses a specific review item template provided by the extension itself.

Modifying the Extension’s Template

To add thumbnail images to the review items:

  1. Navigate to app/code/local/Iwd/Onepagecheckout/etc/config.xml in your Magento installation.
  2. Search for the <layout> section containing the checkout block.
  3. Locate the reference to reviews_item and note down its value.
<reference name="reviews_item">
    <block type="opc/review_items" name="opc.reviews.items" as="review_items" template="template/opc/onepage/review/item.phtml"/>
</reference>
  1. Open the item.phtml file located under app/code/local/Iwd/Onepagecheckout/template/opc/onepage/review. This is the actual template used by the extension for rendering review items.

  2. Inside this file, find the code snippet responsible for displaying the product name.

  3. Add the thumbnail image using the following syntax:

<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->setQuality(70)->resize(120, 120); ?>

This will generate a 120x120 pixel thumbnail for each product in the review list.

Conclusion

In conclusion, to add thumbnail images to the IWD Onepage Checkout review items:

  • Locate and open app/code/local/Iwd/Onepagecheckout/etc/config.xml.
  • Find the reference to reviews_item and note down its template value.
  • Open the corresponding item.phtml file under app/code/local/Iwd/Onepagecheckout/template/opc/onepage/review.
  • Add the thumbnail image generation code to display product thumbnails.

Remember, always backup your files before making modifications. If you’re not comfortable with this process or need further assistance, feel free to refer to our Magento development services for professional help in customizing Magento extensions.

By following these steps and understanding the extension’s template hierarchy, you can easily add thumbnail images to the review items in your IWD Onepage Checkout implementation.

Checkout Catalog Extensions Themes

Our network