Search found 7 matches

by PraveenJayakody
23 Dec 2022, 01:35
Forum: Laravel package
Topic: Aimeos Laravel events
Replies: 2
Views: 616

Aimeos Laravel events

Hi, I'm on Laravel 9, Aimeos 2022.x and PHP 8.1 on Mac. I want to send an SMS to the user (i.e. call a third party API) when an order is created. What is the standard way to accomplish this? Does Aimeos propagates Laravel Events that can be listened to? At this point, I should also be able to get at...
by PraveenJayakody
18 Dec 2022, 23:48
Forum: Laravel package
Topic: Override order item
Replies: 7
Views: 1409

Re: Override order item

I had to add this to my Rental.php from earlier: public function save( $items, bool $fetch = true ) { $rental_start_date = parent::context()->view()->request()->getParsedBody()['data']['attributes']['rental_start_date']; $items['rental_start_date'] = $rental_start_date; return parent::save($items, $...
by PraveenJayakody
14 Dec 2022, 21:29
Forum: Laravel package
Topic: Override order item
Replies: 7
Views: 1409

Re: Override order item

I have the decorator in packages\<extension>\src\MShop\Order\Manager\Decorator\Rental.php <?php namespace Aimeos\MShop\Order\Manager\Decorator; class Rental extends \Aimeos\MShop\Common\Manager\Decorator\Base { private $attr = [ 'rental_start_date' => [ 'code' => 'rental_start_date', 'internalcode' ...
by PraveenJayakody
06 Dec 2022, 01:04
Forum: Laravel package
Topic: Override order item
Replies: 7
Views: 1409

Re: Override order item

Hi thank you for the reply. At this point, I have only added the rental_start_date and rental_end_date to the mshop_order table schema. 'mshop_order' => function( \Aimeos\Upscheme\Schema\Table $table ) { $table->engine = 'InnoDB'; $table->bigid()->primary( 'pk_msord_id' ); $table->string( 'siteid' )...
by PraveenJayakody
05 Dec 2022, 00:12
Forum: Laravel package
Topic: Override order item
Replies: 7
Views: 1409

Override order item

Hi, I'm on Laravel 9, Aimeos 2022.x and PHP 8 on Mac. I want to override Order Item so that I can introduce a custom field (that would be shown when `GET /basket` is called. I tried to do it using a decorator approach. I was able to add the decorator but this would not change the attributes shown on...
by PraveenJayakody
18 Nov 2022, 02:40
Forum: Laravel package
Topic: Setup default currencies
Replies: 3
Views: 705

Re: Setup default currencies

Thank you for the fast reply. I used the `before()` function to run my custom code before the default setup file
by PraveenJayakody
15 Nov 2022, 23:11
Forum: Laravel package
Topic: Setup default currencies
Replies: 3
Views: 705

Setup default currencies

Hi, I'm on Laravel 9, Aimeos 2022.x and PHP 8 on Mac. When you run `php artisan aimeos:setup`, a bunch of currencies and locales are added to the database. I'm creating an extension so I want to change the currencies that would be added to the db when the setup command is run. I created a Task in pa...