[SOLVED]Access Product attributes after checkout/payment
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!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
[SOLVED]Access Product attributes after checkout/payment
It is possible to loop basket products after checkout ?
I need to access attributes and their values of specific products after doing checkout; I need to utilize for further different operation; help me to get it;
TIA
I need to access attributes and their values of specific products after doing checkout; I need to utilize for further different operation; help me to get it;
TIA
Last edited by kartikbhat on 26 May 2022, 14:37, edited 1 time in total.
Re: Access Product attributes after checkout/payment
If the attributes are stored along with the ordered product, you can use:
Check the interfaces for available methods:
- https://github.com/aimeos/aimeos-core/b ... #L401-L425
- https://github.com/aimeos/aimeos-core/b ... /Iface.php
Code: Select all
foreach( $basket->getProducts() as $orderProduct )
{
foreach( $orderProduct->getAttributeItems() as $attrItem )
{
echo $attrItem->getValue();
}
}
- https://github.com/aimeos/aimeos-core/b ... #L401-L425
- https://github.com/aimeos/aimeos-core/b ... /Iface.php
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