Undefined property: $prefix
Posted: 05 Sep 2016, 19:32
I made a little of progress trying to add custom fields to address part in checkout.
Now I am getting the following error:
Undefined property: Aimeos\MShop\Order\Item\Base\Address\MyExt::$prefix
(even if I use the Standard manager):
Undefined property: Aimeos\MShop\Order\Item\Base\Address\Standard::$prefix
It starts here:
https://github.com/aimeos/ai-controller ... d.php#L303
And breaks here:
https://github.com/aimeos/aimeos-core/b ... se.php#L66
And here is the var_dump of $address object:
Any hints on what I am missing?
Now I am getting the following error:
Undefined property: Aimeos\MShop\Order\Item\Base\Address\MyExt::$prefix
(even if I use the Standard manager):
Undefined property: Aimeos\MShop\Order\Item\Base\Address\Standard::$prefix
It starts here:
https://github.com/aimeos/ai-controller ... d.php#L303
And breaks here:
https://github.com/aimeos/aimeos-core/b ... se.php#L66
And here is the var_dump of $address object:
Code: Select all
/var/www/e-commerce/2marchio/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Order/Item/Base/Base.php:282:
object(Aimeos\MShop\Order\Item\Base\Address\Standard)[335]
private 'values' =>
array (size=2)
'order.base.address.siteid' => int 1
'order.base.address.type' => string 'payment' (length=7)
private 'prefix' (Aimeos\MShop\Common\Item\Address\Base) => string 'order.base.address.' (length=19)
private 'modified' (Aimeos\MShop\Common\Item\Base) => boolean true
private 'values' (Aimeos\MShop\Common\Item\Address\Base) =>
array (size=12)
'order.base.address.siteid' => int 1
'order.base.address.firstname' => string 'xxxxx' (length=5)
'order.base.address.lastname' => string 'xxxxx' (length=9)
'order.base.address.vatid' => string 'xxxxx' (length=11)
'order.base.address.address1' => string 'xxxxxx' (length=18)
'order.base.address.address2' => string 'uhehe' (length=5)
'order.base.address.address3' => string '931' (length=3)
'order.base.address.city' => string 'xxxx' (length=5)
'order.base.address.state' => string 'xx' (length=2)
'order.base.address.postal' => string '53444-222' (length=9)
'order.base.address.email' => string 'xxxxxx' (length=32)
'order.base.address.telephone' => string '3242312312' (length=10)
private 'prefix' (Aimeos\MShop\Common\Item\Base) => string 'order.base.address.' (length=19)
private 'values' (Aimeos\MShop\Common\Item\Base) =>
array (size=1)
'order.base.address.siteid' => int 1