cart icon indicating copy to clipboard operation
cart copied to clipboard

CurrencyController has no method `editAction` as configured in `ext_localconf.php`

Open rintisch opened this issue 2 years ago • 1 comments

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?

rintisch avatar Dec 16 '23 14:12 rintisch

@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.

rintisch avatar Oct 17 '24 12:10 rintisch