View Single Post
  #5  
Old 07-30-2014, 07:56 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Remove Template From Lists Question

Well I made a mistake! I had a typo in my class. I have now successfully used your suggestion, and decorated the class \XLite\View\Product\Details\Customer\AttributesMod ify using the same code as above just changing the namespace and the extended class.

So I tried your other suggestion in order to further my knowledge. In my Main.php I have:
Code:
public static function runBuildCacheHandler() { parent::runBuildCacheHandler(); \XLite\Core\Layout::getInstance()->removeClassFromLists('\XLite\View\Product\Details\Customer\AttributesModify'); \XLite\Core\Layout::getInstance()->removeClassFromLists('\XLite\View\Product\AttributeValues'); }
I tried removing both classes just in case. Nothing happens. Any idea?
__________________
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