Get Attribute detail

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!
jramirezgranada
Posts: 40
Joined: 12 Jul 2018, 19:57

Get Attribute detail

Post by jramirezgranada » 13 Aug 2018, 20:32

Hi there;

So i'm trying to show some additional information in the basket.

I have set up a hidden attribute for a product, and the attribute has a specific price,

I get the hidden type attributes with this line in detail-standard.php

Code: Select all

$product->getAttributes('hidden')
But I need to get the attribute detail information to show in the basket.

Is there a way from the view to get that needed information?

Thanks
--
Jorge A Ramirez
System Engineer
PHP Developer

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

Re: Get Attribute detail

Post by aimeos » 15 Aug 2018, 15:48

Unfortunately not. The attribute information in the basket/order only contains type/key/value triples but not information that is attached to the original attribute item like its price.

If you want to show that information in the frontend, you have to create a HTML client decorator that fetches the original attribute items and add those to the view: https://aimeos.org/docs/Developers/Html ... components
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply