View Single Post
  #2  
Old 07-04-2020, 11:43 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default Re: Replacing templates from common skins

This may be a "dirty" work around, but should work: instead of bothering with viewlist, just override the viewer. So override XLite/View/Invoice.php to change
getDefaultTemplate() or XLite/View/InvoicePage.php to modify getDir(), getBody() or getHead(), whichever is appropriate.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote