News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Unable to view order details on the front-end from invoice and admin order view

Started by Abatap, January 31, 2024, 18:55:21 PM

Previous topic - Next topic

Abatap

Hello. Both the email invoice order details link and the "View order on the front-end" link of order details layout of administration's orders section bring you to the default page of Joomla! (the main page usually). The outcome is the same regardless of the Joomla! SEF option status or the "Order tracking mode" option in the checkout settings of the global VM configuration. The orderdone.php's link of the same purpose works as expected though and routes you to a correct menu item even.

This happens on VM versions 4.2.0 and 4.2.4 running on Joomla! 4.4.2 and 5.0.2 with PHP 7.4 and PHP 8.1.

Milbo

This links usually start a download, or a popup. What happens with the last version. Maybe it needs a menu item to "orders"?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Abatap

I'm talking about domain.com/index.php?option=com_virtuemart&view=orders&layout=list and domain.com/index.php?option=com_virtuemart&view=orders&layout=details links.

Even if I copy any of these links into the address bar of my browser, it routs me to the main page without any sort of error messages being queued and displayed in case of the first link (the 'list' layout) and system message requiring authorization to view order details which is consistent with J!3-based installations in case of the latter link specifically. Also, if I use a SEF-alias that I've created for this view in my main menu, then it works as expected the view is displayed properly even including additional GET-parameters like order code and its password. Calling something like Route::_('index.php?option=com_virtuemart&view=orders&layout=list') also returns a correct SEF-alias (domain.com/orders for instance).

I have at least two Joomla! installations affected by this issue and only Joomla! 4 and 5 series-based instances seem to be affected. The very same pair of projects, or rather backup copies of thereof, running on Joomla! 3 series with the exact same VM version are not affected by the issue. Even the PHP version of 7.4.X branch is the same when comparing J! 3 and J! 4-based instances of the same project.