To Add a new field to order ,below the invoice number
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: To Add a new field to order ,below the invoice number
Seems like after your change it fails to send the "refid" to the server correctly.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: To Add a new field to order ,below the invoice number
I applied the above steps for the additions I made to the mshop_order_address table.
default/shema/order.php
I don't have a problem displaying these fields in the address form. However, I couldn't understand how to edit the order/item.php in the last section.
How can I access the fields I have newly added in the address?
default/shema/order.php
Code: Select all
<?php
return [
'table' => [
'mshop_order_address' => function (\Aimeos\Upscheme\Schema\Table $table) {
$table->string('care_fund');
$table->string('insurance_number');
$table->integer('care_level');
}
]
]
Code: Select all
$context = app('aimeos.context')->get(true);
$controller = new \Aimeos\Controller\Frontend\Basket\Standard($context);
$include = ['basket/address', 'basket/product'];
$basket = $controller->get()->setCustomerId($context->user());
$basketData = json_decode(json_encode($basket), true);
Log::debug('created basket: ' . json_encode($basketData));
Re: To Add a new field to order ,below the invoice number
You need to add a decorator to the customer address manager for the new fields in the customer address table:
https://aimeos.org/docs/latest/models/e ... /#easy-way
https://aimeos.org/docs/latest/models/e ... /#easy-way
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star