View Single Post
  #43  
Old 04-09-2014, 06:04 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Webinar for X-Cart 5 developers on March,18th.

Tony,
I have made some progress on this issue, I edited XLite\Module\Baby\DropDown\Controller\Admin and added this code:
Code:
/** * Get parent name * * @return string */ public function getParentName() { $parent_id = $this->getParent_Id(); $parent = \XLite\Core\Database::getRepo('\XLite\Module\Baby\DropDown\Model\DropDown')->findOneById($parent_id); $parentName = $parent->name; return $parentName; }
At least now I can echo the name to myself, I need to figure out how best to use it in the template next.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote