Add new fields to products and other stuff
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Add new fields to products and other stuff
I would add a new property to the Product.
How can i do that. In Extbase i do that in the Domain/Model/Object.php...
How can i do that. In Extbase i do that in the Domain/Model/Object.php...
Re: Add new fields to products and other stuff
In Aimeos you don't need to extend existing tables to store new properties. Instead, the mshop_product_property table can store any product data you have for your products. Use the product property manager to save that information, you can retrieve it together with the basic product data if you add 'product/property' to the domain parameter:
If you have data that is shared by several products, store them in attributes. This will automatically generate a faceted search filter in the frontend if you add the attribute type to the list of allowed attribute types for the faceted search.
Code: Select all
$products = $productManager->searchItems( $filter, ['product/property'] );
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
Re: Add new fields to products and other stuff
What i want do is works with the FE-Usergroups.
I know there is an additional Extension but i need it just for the products and would have a own field where i fetch all the USergroups.
i allready got it in the view. All what i must do is just to save it in the backend and get this field in the template.
I know there is an additional Extension but i need it just for the products and would have a own field where i fetch all the USergroups.
i allready got it in the view. All what i must do is just to save it in the backend and get this field in the template.
Re: Add new fields to products and other stuff
Using the ai-customergroups extension would be much simpler. If you want to do this yourself, you need to extend the item, manager, JQAdm class and template as well as the frontend template. For the JQAdm interface there's no documentation yet.
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