New fields add into price of product
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
New fields add into price of product
Hello,
We want to add custom field into items like commission, internal delivery cost. Which we dont want to return into aimeos API request. How do we manage it & create new fields?
Thanks
We want to add custom field into items like commission, internal delivery cost. Which we dont want to return into aimeos API request. How do we manage it & create new fields?
Thanks
Re: New fields add into price of product
If you extend the item, don't include that values in the toArray() method or only if the $private flag is passed.
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
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: New fields add into price of product
Can you please explain in details? We need to add extra fields for internal purpose. We dont need them to return into api response too.
Re: New fields add into price of product
Then, simply don't add those fields to the toArray() method of your extended item. Thus, they won't show up in the API.
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