Get Product 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 Product Detail
Hi there;
I've added new fields to products table, in the product detail I could show the additional information, but when I want to show that information in basket I cann't get it, when you use $this->summaryBasket->getProducts() we get some basic information.
How can I get all fields for those products from product table, in the view ?
Thanks
I've added new fields to products table, in the product detail I could show the additional information, but when I want to show that information in basket I cann't get it, when you use $this->summaryBasket->getProducts() we get some basic information.
How can I get all fields for those products from product table, in the view ?
Thanks
--
Jorge A Ramirez
System Engineer
PHP Developer
Jorge A Ramirez
System Engineer
PHP Developer
Re: Get Product Detail
The order product item is a flattend and condensed version of the product item.
To get your additional product data into the order product item, you have to extend the order product item and manager and add the new properties also to the copyFrom() method:
https://github.com/aimeos/aimeos-core/b ... d.php#L727
To get your additional product data into the order product item, you have to extend the order product item and manager and add the new properties also to the copyFrom() method:
https://github.com/aimeos/aimeos-core/b ... d.php#L727
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