Any questions about Documents Sellers, post it here .

Shopping cart link problem in 2.5.4

  • Clint Herron
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 weeks ago #2611 by Clint Herron
Shopping cart link problem in 2.5.4 was created by Clint Herron
When I add an item to my shopping cart, and the shopping cart module is displayed in the sidebar, the URL of the added item in my cart looks something like:

mysite.com/index.php/component/dms/view_...ry/1-my-product-v125

However, if I clink on that link, it takes me to the category, not to the item.

I think that the problem is that the link should be show_document, not view_document.

The offending line is in:
mod_dms_cart/tmpl/default.php

Line 11 is currently:
$link = JRoute::_( 'index.php?option=com_dms&task=show_document&category_id='.$doc->category_id.'&id='.$doc->id.'&Itemid='.$Itemid);


I think it should be:
$link = JRoute::_( 'index.php?option=com_dms&task=view_document&category_id='.$doc->category_id.'&id='.$doc->id.'&Itemid='.$Itemid);



When I make that change, my problem goes away, and items link properly from the sidebar shopping cart.

Thanks!

--clint

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

More
14 years 4 weeks ago #2613 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re:Shopping cart link problem in 2.5.4
I am sorry this bug. There was a small change from the previous version to support Joomla core SEF and I forgot to update it to Joomla cart module. I modified the module and updated code to the server . All is working fine now. Thanks so much for your report .

Tuan

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