So I'm using the marketplace plugin and have usernames for my users. Usernames are synced with the vendor's "public name" in the extension, so I'm really just trying to fetch the public name in a new column on the customer order table (both history.phtml and recent.phtml). I've tried multiple methods and still cannot get it. Sometimes errors are thrown, sometimes just nothing appears.
The only place I've seen it done is on csmarketplace/sales/order/items/renderer/default.phml using the code:
$vendor = Mage::getModel('csmarketplace/vendor')->load($_item->getVendorId());
I've tried using this code, but replacing $item with $order and $order, but it doesn't work. I've tried calling the block class of Default.php to try to use similar functions but still can't get it to work. I assume I just need to pull a specific item (parent or child) from the order and then use that specific item to call the vendor ID, and then grab the public name, but again I'm having trouble successfully doing that.
Any help or ideas would be awesome!
Share on Facebook Share on Twitter