eShop Order Emailer
[resolved] ug & Fix: underscored field values missing (2 posts)

  1. BayouBill
    Posted 4 years ago #

    In models > orders.model.php, in the formatReportRow() function, the line in the foreach() loop that reads:

    $formatted_row[$text] = $row[$name];

    should read:

    $formatted_row[$text] = $row[str_replace(" ", "_", $name)];

    Otherwise, the returned $formatted_row will contain blank values for any $row element that has an underscore in the name, e.g. "ship_address".

    I do not know whether the line above that that reads $formatted_row[$k] = $v; must be changed as well, because I do not go through that line of code with my Settings and have not tested it.


  2. paulswebsolutions
    Posted 4 years ago #

    Hi BayouBill

    Thanks for letting me know and thanks for providing a solution. I've uploaded the fix in version 2.0.1.

    Best wishes


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • eShop Order Emailer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic