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

Continue Shopping

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-10-2014, 04:05 PM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Continue Shopping

After the user buys an item I need to be able to send them back to a url to continue shopping. How do I do this?

vers 5.0.11
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #2  
Old 03-10-2014, 06:28 PM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Continue Shopping

When you go to the cart and it is empty there is a button that says continue shopping. This button should go to a user defined url. Presently it goes to the last product you were looking at rather that the listing of all products.
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #3  
Old 03-11-2014, 12:03 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Continue Shopping

Is it X-Cart 5, or X-Cart 4?

How do you get onto the empty cart page? In X-Cart 5 the link appears only when there are products in the cart.

Have tried to open the cart page on my local X-Cart 5 installation (with the direct link) - the Continue button redirects me to the home page, not a product page.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 03-11-2014 at 12:34 AM.
Reply With Quote
  #4  
Old 03-11-2014, 05:07 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: Continue Shopping

Quote:
Originally Posted by mworsnop
After the user buys an item I need to be able to send them back to a url to continue shopping. How do I do this?

vers 5.0.11

Quote:
When you go to the cart and it is empty there is a button that says continue shopping. This button should go to a user defined url. Presently it goes to the last product you were looking at rather that the listing of all products.

In this case, you can create a simple mod that will apply this change.
1) Create a simple mod according to the article here: http://kb.x-cart.com/display/XDD/How+to+create+a+module
2) Create two files in your module:
<your-module>/Controller/Customer/ACustomer.php
<your-module>/Controller/Customer/Cart.php

and extend the following classes in them while implementing \XLite\Base\IDecorator
\XLite\Controller\Customer\ACustomer
\XLite\Controller\Customer\Cart

These classes will have your own implementation of the getContinueShoppingURL() method, e.g.:

Code:
public function getContinueShoppingURL() { return \XLite::getInstance()->getShopURL($url); }

Please, let me know if you need extra help with that.

Tony.
Reply With Quote
  #5  
Old 03-12-2014, 09:23 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: Continue Shopping

I haven't made a module yet, and dont have a problem trying to doing that. But I would think the continue button would go back to the last category listing. Right now it seems to go to an arbitrary single product. Shouldnt this be the case for the default system?
I am working on a new clean install in my store10 directory. The store directory is still there also. You are welcome to try it if that helps
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #6  
Old 03-12-2014, 11:53 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: Continue Shopping

Quote:
Originally Posted by mworsnop
I haven't made a module yet, and dont have a problem trying to doing that. But I would think the continue button would go back to the last category listing. Right now it seems to go to an arbitrary single product. Shouldnt this be the case for the default system?

This is nice little suggestion and here is my thoughts about it. Initially, I thought that Continue Shopping button is not something very useful. I never used it myself while shopping, neither from cart page, nor from thank you page.

However, now I think, it makes sense to return customer to the last viewed product list like search results, category page, etc. But in this case, we should clearly state something like "Go to the last set of products" as a button text. We can plan such change - not with the highest priority, but still.

Could you please guys tell me more about your own real use-cases for Continue Shopping button?
Reply With Quote
  #7  
Old 03-12-2014, 12:35 PM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: Continue Shopping

If you are only going to buy one item you dont use it. But I want to encourage the user to go on and look at more items. I added a menu selection that might help on my store10 site but he continue button doesnt make any sense going back to the item you just added to the cart.

I just visited a handful of other places and they all go back to a list of items. So I guess I am not nutty,

If you cant change it soon I will start implementing your module idea as I cant go live like that.
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote

The following 2 users thank mworsnop for this useful post:
seyfin (03-14-2014), tony_sologubov (03-12-2014)
  #8  
Old 03-14-2014, 07:43 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: Continue Shopping

Tony do you think you will make changes soon for the shopping cart?
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #9  
Old 03-19-2014, 05:38 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: Continue Shopping

I cannot give you ETA, because now we need to decide how this button should work. I opened a discussion here:
http://forum.x-cart.com/showthread.php?p=370995#post370995

Anyway, I can help you to create a mod that will make this button work precisely as you need. If you want to go for this option, please create an empty module according to the article here:
http://kb.x-cart.com/display/XDD/How+to+create+a+module

Once you are done, please let me know and I will tell you what to do next.
Reply With Quote
  #10  
Old 03-19-2014, 08:26 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: Continue Shopping

I modified the cart.php for now. But I guess I need to make a module so it doesnt get overwritten ever time. I wil do that shortly.
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:48 AM.

   

 
X-Cart forums © 2001-2020