Access Aimeos orders in my extension

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
vikram
Posts: 23
Joined: 16 Jul 2015, 06:38

Access Aimeos orders in my extension

Post by vikram » 19 Sep 2015, 12:31

Hi,

I want to access orders placed by an user in my extension.

I have done the following:
added to ext_localconf.php

Code: Select all

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['extDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Extensions/';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['confDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Private/Config/';
copied /aimeos/Resources/Private/Config to my extension

And then
class SaleController extends \Aimeos\Aimeos\Controller\AbstractController {

but the actions do not output any thing. Echo/print_r works but not the fluid templates output.

What did I miss ?

regards
Vikram

vikram
Posts: 23
Joined: 16 Jul 2015, 06:38

Re: Access Aimeos orders in my extension

Post by vikram » 22 Sep 2015, 03:23

I missed the TS.. after adding the TS I get the following:

Code: Select all

Fatal error: Call to a member function assign() on a non-object
Someone please suggest where can I look for some solution.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Access Aimeos orders in my extension

Post by aimeos » 22 Sep 2015, 08:39

vikram wrote:I missed the TS.. after adding the TS I get the following:

Code: Select all

Fatal error: Call to a member function assign() on a non-object
Someone please suggest where can I look for some solution.
The TYPO3 Aimeos abstract controller removes the Fluid view for performance reasons. You can re-enable it if you add this method:

Code: Select all

protected function resolveView()
{
	return \TYPO3\CMS\Extbase\Mvc\Controller\ActionController::resolveView();
}

Post Reply