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.