WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. BayouBill
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/eshop-order-emailer/

  2. paulswebsolutions
    Member
    Posted 2 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

    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic