- Posts: 1
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Change location after empty cart
- g-no
- Topic Author
- Offline
- New Member
Less
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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 :
3. Change it to :
After that, it will work as expected .
Tuan
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.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.