Get Attribute detail
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: 12 Jul 2018, 19:57
Get Attribute detail
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
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
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')
Is there a way from the view to get that needed information?
Thanks
--
Jorge A Ramirez
System Engineer
PHP Developer
Jorge A Ramirez
System Engineer
PHP Developer
Re: Get Attribute detail
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
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, give us a star
If you like Aimeos, give us a star