Any questions about Documents Sellers, post it here .

Change location after empty cart

More
12 years 2 months ago #19858 by g-no
Change location after empty cart was created by g-no
Dear Support,

When a user is in his shopping cart / checkout, and removes all the documents in the cart he is automatically redirected to the category page. I would like to change this so they will be redirected to the home page instead. What file / code would I need to change in order to achieve this?

Thanks in advance.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #20036 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change location after empty cart
Hi

You will need to edit code alitle. Please follow the steps below :

1. Open the file components/com_dms/controller.php

2. Find the function remove_cart

3. Find the code below within the function :
Code:
$url = JRoute::_('index.php?option=com_dms&view=categories&Itemid='.$Itemid, false) ;

3. Change it to :
Code:
$url = 'index.php' ;

After that, it will work as expected .

Tuan

Please Log in or Create an account to join the conversation.