Hi all,
I'm currently working on the myaccount history page. More concrete, I'm updating the list of orders a user has ordered. Therefore, I'm updating the following view into my ext folder: /client/html/templates/account/history/list-body-default.php
In the list I'm showing:
So far so good. Next to this info I want to add the order total price. Which is not part of the order object, but its part of the base object. So I want to initiate a base object based on the order id and then call the getPrice() function.. Reading the Aimeos documentation, I found the following page explaining how to initiate an object in the view: https://aimeos.org/docs/Laravel/Extend_Aimeos
More concrete :
But I'm doing something wrong because this is not working.
Who can advise me on this one?
Thanks a lot!
Regards,
Kevin
I'm currently working on the myaccount history page. More concrete, I'm updating the list of orders a user has ordered. Therefore, I'm updating the following view into my ext folder: /client/html/templates/account/history/list-body-default.php
In the list I'm showing:
- Order id
Order date
Payment status
Delivery status
Link to order detail
So far so good. Next to this info I want to add the order total price. Which is not part of the order object, but its part of the base object. So I want to initiate a base object based on the order id and then call the getPrice() function.. Reading the Aimeos documentation, I found the following page explaining how to initiate an object in the view: https://aimeos.org/docs/Laravel/Extend_Aimeos
More concrete :
Code: Select all
$context = App::make('\Aimeos\Shop\Base\Context')->get(false);
$manager = \Aimeos\MShop\Factory::createManager( $context, 'order' );
But I'm doing something wrong because this is not working.
Who can advise me on this one?
Thanks a lot!
Regards,
Kevin