how to update an order in the job? (merge two order or add product to an order)

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

how to update an order in the job? (merge two order or add product to an order)

Post by Ahmad » 18 May 2021, 14:44

aimeos/laravel 2020.10
laravel/framework 7.0

I want to make some changes to an order from code layer (for example during run a job) to do the following things:

- create an order for a customer automatically
- add or remove a coupon and update order payment price
- add or remove a product and update order payment price
- merge two orders from one person (merge products) and update delivery price

how can I make or change an order from code layer?

I need this because of some solutions, for example I want to use a sms service provider and create and order for a customer when that customer send a message.

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

Re: how to update an order in the job? (merge two order or add product to an order)

Post by aimeos » 19 May 2021, 08:25

Ahmad wrote: 18 May 2021, 14:44 - create an order for a customer automatically
- add or remove a coupon and update order payment price
- add or remove a product and update order payment price
- merge two orders from one person (merge products) and update delivery price
Use the order mangers and the order base item (which represents the basket) to create new orders as you need:
- https://github.com/aimeos/aimeos-core/t ... er/Manager
- https://github.com/aimeos/aimeos-core/t ... /Item/Base
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply