Get Prices of Attributes added by Supplier
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
Get Prices of Attributes added by Supplier
Product's each attribute has certain price variables defined by it 'Supplier/Vendor' (Site Admin);
Eg: delivery price based on location
[/attachment]
I need to fetch those all price ranges of that attribute using product id and attribute id on Catalog Detail Page
Help me to get id
TIA
Eg: delivery price based on location
- $20 for 10km
- $30 for 20km
[/attachment]
I need to fetch those all price ranges of that attribute using product id and attribute id on Catalog Detail Page
Help me to get id
TIA
- Attachments
-
- attributePriceVariables.png (127.73 KiB) Viewed 447 times
Re: Get Prices of Attributes added by Supplier
The attributes and their prices are already available in the catalog detail view and you can display them using:
Code: Select all
foreach( $this->detailProductItem->getRefItems( 'attribute', 'delivery' ) as $attrItem )
{
foreach( $attrItem->getRefItems( 'price' ) as $priceItem ) {
echo $priceItem->getValue();
}
}
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