- Posts: 1
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Shopping Cart Problem
- TonyG
- Topic Author
- Offline
- New Member
Less
More
14 years 1 month ago - 14 years 1 month ago #5352
by TonyG
Shopping Cart Problem was created by TonyG
I've added DMS cart to my sales sequence - so when you choose a product it is shown in the cart, plus a Buy more button.
My problem is that clicking onto the Buy more button takes you back to DMS_DOCUMENTS, rather than DMS_CATEGORIES - so the user is presented with a random list of eBooks (including 'duplicates').
Is it possible to change this?
My problem is that clicking onto the Buy more button takes you back to DMS_DOCUMENTS, rather than DMS_CATEGORIES - so the user is presented with a random list of eBooks (including 'duplicates').
Is it possible to change this?
Last edit: 14 years 1 month ago by TonyG.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
14 years 1 month ago #5415
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Shopping Cart Problem
Hi Tony !
In the current version, when users click on Buy More button, they will be redirected the the last category page (display list of documents within a category) so that users can buy more documents from that category (this makes sense because we redirect users to lastest page users browsed) .
In this case, I think you want your users to be redirected to categories page (which list all categories). If so, please follow the below steps :
1. Open the file components/com_dms/views/checkout/tmpl/cart.php .
2. Look at the code from line 672 to 676 :
Change it to
After that, It will work as expected .
Thanks,
Tuan
In the current version, when users click on Buy More button, they will be redirected the the last category page (display list of documents within a category) so that users can buy more documents from that category (this makes sense because we redirect users to lastest page users browsed) .
In this case, I think you want your users to be redirected to categories page (which list all categories). If so, please follow the below steps :
1. Open the file components/com_dms/views/checkout/tmpl/cart.php .
2. Look at the code from line 672 to 676 :
Code:
function continueShopping() {
var form = document.adminForm ;
form.task.value = 'view_category';
form.submit();
}
Change it to
Code:
function continueShopping() {
location.href="index.php?option=com_dms&Itemid=" + <?php echo $this->Itemid; ?> ;
}
After that, It will work as expected .
Thanks,
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.