You are here:  » New column in automation_tool.php (filesize of feed)


New column in automation_tool.php (filesize of feed)

Submitted by sirmanu on Sun, 2021-01-24 16:50 in

Hi David.

Is it possible to add a new column showing the file size of the feed, if available? It would be easier to spot errors or drop products.

Thank you!

Submitted by support on Mon, 2021-01-25 08:06

Hi,

Sure - edit admin/automation_tool.php and look for the following code at line 32:

    print "</tr>";

...and REPLACE with:

    print "<th>".translate("Size")."</th>";
    print "</tr>";

And then the following code at line 59:

      print "</tr>";

...and REPLACE with:

      print "<td class='pta_num'>".(file_exists($$directoryVar.$job["filename"])?filesize($$directoryVar.$job["filename"]):"")."</td>";
      print "</tr>";

Cheers,
David.
--
PriceTapestry.com

Submitted by sirmanu on Fri, 2021-01-29 07:37

Thank you as usual David, it is working as expected