CurrencyController has no method `editAction` as configured in `ext_localconf.php`
Bug Report
Current Behavior
Using the plugin "Cart: Currency Selector" throws the error TYPO3\CMS\Extbase\Mvc\Exception\NoSuchActionException
with the detailed information
"An action "editAction" does not exist in controller "Extcode\Cart\Controller\Cart\CurrencyController"."
Expected behavior/output No error shall occur
Environment
- TYPO3 version(s): 12.4
- cart version: 9.x-dev
- Is your TYPO3 installation set up with Composer (Composer Mode): yes
- OS: running in ddev
Possible Solution
Implement the method editAction in the CurrencyController.
public function editAction(): ResponseInterface
{
$this->restoreSession();
$this->view->assign('cart', $this->cart);
return $this->htmlResponse();
}
It will still not work because
- the form works at the moment with AJAX
- so the result will not be displayed because the form calls
updateAction - so the AJAX response returns with field which do not exist at the moment in the template.
- The JS tries to replace existing element with the updated elements but that does not work here because there are no original elements which could be replaced.
What was the idea? How is it intended to work?
@extcode Nobody seems to demand that feature, at least nobody seemed to miss it and I just found it by playing around. Do you want to solve the issue or can we remove the whole plugin?
In my experience this is in general not so useful because if I want to sells products in another currency that is in general another country so I would make a localized record with a real fitting price. I would remove it but that's of course breaking.