Hi Dave!
Sorry, it was my bad. I mentioned the incorrect List in my previous code. The correct code for removing these buttons is:
Code:
$layout->removeTemplateFromList(
'product/details/parts/common.button-continue.tpl',
'product.details.page.info.buttons-added'
);
$layout->removeTemplateFromList(
'product/details/parts/common.button-continue.tpl',
'product.details.page.info.buttons-added'
);
You should these lines instead of ones I provided earlier.
Put them into the body of the runBuildCacheHandler() function in the Main.php file (you are right about its path) and regenerate the cache. It should do the trick.