Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

remove "continue shopping" button from product page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-08-2013, 07:25 AM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

Default remove "continue shopping" button from product page

After you add a product to your cart, then go back to the product page, a button labled "continue shopping" is below "buy more"

How can i remove/delete this "continue shopping" button?

I'm sure this has been asked but I cannot find the correct file to modify (or if it can be done in the admin area).

Thank you.

i use: X-Cart Next core v.1.2.3
http://vcsigns.com/store/
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote
  #2  
Old 11-08-2013, 01:45 PM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

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

can anyone please help. I saw other posts go up after mine and they have responses already! Thanks.
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote
  #3  
Old 11-11-2013, 05:22 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!

It was described here: http://forum.x-cart.com/showthread.php?t=66688

Let me know if you need some more explanation.

Tony.
Reply With Quote
  #4  
Old 11-11-2013, 06:27 AM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

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

Hi Tony! Thank you for responding as your help is always appriciated!

I re-read that entire thread, it was helpful proir, but i didnt see where it discussed "removing the 'continue shopping' button"

When you click "continue shopping" [mine says category page because i renamed it] it goes back to the category page. I would like to request have it removed all toghter but not sure which file to do it in or what code to comment out. Thanks again for additiaonal help.
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote
  #5  
Old 11-12-2013, 04:10 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

Oh, yes. I missed that this part was not described.

In this case, you need to add the following lines into the runBuildCacheHandler() function in the Main.php file.

Do not forget to rebuild the cache after that and this change should do the trick.

Code:
$layout->removeTemplateFromList( 'product/details/parts/common.button-continue.tpl', 'product.details.page.info.buttons.cart-buttons' ); $layout->removeTemplateFromList( 'product/details/parts/common.button-continue.tpl', 'product.details.quicklook.info.buttons.cart-buttons' );
Reply With Quote
  #6  
Old 11-12-2013, 08:26 AM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

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

Thanks tony.
I applied that code in Main.php (which is located: store/classes/XLite/Module/CDev/CartCorrections/Main.php) [is this the correct location?]

After i "rebuild cache" from the admin area, i checked the cart product page which as already been added and the "continue shopping" - which says "category page" is still there.

(i manually added in the buttons above on the page, which is why i need to remove "continue shopping" which is labeled "category page"

http://vcsigns.com/store/cart.php?target=product&product_id=57

thanks
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote
  #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
  #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, 482 views)
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote
  #9  
Old 11-20-2013, 07:31 AM
 
daboy18 daboy18 is offline
 

Member
  
Join Date: Aug 2012
Posts: 21
 

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

I needed to ENABLE the add-on.

the last code you provided DID work.
After I rebuilt the cache, nothing showed, thats because the add-on was disabled.

After enabling it, the button was gone.

Thank you.
__________________
by LiteCommerce 3 integrated with Drupal. LC Core version 1.0.24
Reply With Quote

The following user thanks daboy18 for this useful post:
totaltec (11-20-2013)
  #10  
Old 11-21-2013, 03:39 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

Happy to hear it is resolved now!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:44 PM.

   

 
X-Cart forums © 2001-2020