How to fetch multiple prices added by supplier for an product attribute

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
swhhhub
Posts: 8
Joined: 29 Dec 2021, 10:57

How to fetch multiple prices added by supplier for an product attribute

Post by swhhhub » 23 Jun 2022, 16:15

Hi,
Added multiple prices for an attribute from backend
attribute-backend.png
attribute-backend.png (168.48 KiB) Viewed 44 times
Now want to display these multiple prices for attribute in Product detail page, currently its showing only one price
attribute-frntend.png
attribute-frntend.png (11.71 KiB) Viewed 44 times
How can I display multiple prices for a product attribute at Product detail page?

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

Re: How to fetch multiple prices added by supplier for an product attribute

Post by aimeos » 26 Jun 2022, 07:49

The prices are both fetched from the database and you should be able to display them using:

Code: Select all

foreach( $attributeItem->getRefItems( 'price' ) as $priceItem ) {
	echo $priceItem->getValue();
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply