View Single Post
  #7  
Old 11-13-2013, 03:57 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: remove "continue shopping" button from product page

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.
Reply With Quote