Is it possible to add an extra column named "Merchant" on the admin page. The datafeed name is not always clear for showing which feed belongs to which merchant.
No it didn't.
First column is named Merchant but lists the datafeeds.
So I made Merchants second column, but it stays empty. Even after new import.
And I could only import 1 product. It is busy for a while, but the result is 1 product.
Hi John,
There was an error on this line:
print "<td>".$feeds["merchant"]."</td>";
It should be:
print "<td>".$feeds[$filename]["merchant"]."</td>";
I've corrected this in the code above, and i've also emailed you my test copy (to the address that you've registered on the forum with).
Cheers,
David.
Received it > uploaded it > works perfect > thanks.
I think this is the fastest forum on the Internet. If you would have been an employee you should have a raise.
Hi John,
This should be quite easy to do as the merchant name (if the feed is registered) is present in the loop when the table is being generated.
In admin/index.php; first add a new column for the merchant name.
print "<th>Merchant</th>";
If you want to make this the first column, insert the new heading immediate before the following line (68 in the distribution):
print "<td> </td>";
Then, beginning on line 104 you will see the following code:
if (isset($feeds[$filename]["registered"]))
{
print "<td> ";
Change this as follows to display the registered merchant name in the new column:
if (isset($feeds[$filename]["registered"]))
{
print "<td>".$feeds["merchant"]."</td>";
print "<td> ";
Finally, you will also have to insert a blank cell for unregistered feeds. Slightly lower down, look for (line 132):
else
{
print "<td> ";
..and change as follows:
else
{
print "<td> </td>";
print "<td> ";
Hope this helps,
Cheers,
David.