View Single Post
  #8  
Old 11-19-2013, 12:38 PM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

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

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.
Attached Files
File Type: php Main.php (3.0 KB, 336 views)
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote