Any questions about Documents Sellers, post it here .

Shopping Cart Problem

More
13 years 6 months ago - 13 years 6 months 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? :unsure:
Last edit: 13 years 6 months ago by TonyG.

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

More
13 years 6 months 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 :
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.