[SOLVED]Access Product attributes after checkout/payment

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!
kartikbhat
Posts: 18
Joined: 02 Dec 2021, 17:18

[SOLVED]Access Product attributes after checkout/payment

Post by kartikbhat » 23 May 2022, 15:19

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 :)
Last edited by kartikbhat on 26 May 2022, 14:37, edited 1 time in total.

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

Re: Access Product attributes after checkout/payment

Post by aimeos » 24 May 2022, 17:19

If the attributes are stored along with the ordered product, you can use:

Code: Select all

foreach( $basket->getProducts() as $orderProduct )
{
	foreach( $orderProduct->getAttributeItems() as $attrItem )
	{
		echo $attrItem->getValue();
	}
}
Check the interfaces for available methods:
- 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, Image give us a star

Post Reply