Quote:
Originally Posted by tony_sologubov
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.
|
Thanks for the info again Tony!
I did as you said, after rebuilding the cache, the button was still there; unless im sure im doing something wrong. I attached the file which you told me to modify. Maybe you can see something in the code that I cant. thanks again.