Publish products in frontend
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!
Publish products in frontend
Hey there,
We are using typo3 7.6.9 and aimeos 16.4.3. We have to add/create the product creation form in the fontend. is there a way to enable the basic mode in the frontend? somehow?
Thanks in advance!
We are using typo3 7.6.9 and aimeos 16.4.3. We have to add/create the product creation form in the fontend. is there a way to enable the basic mode in the frontend? somehow?
Thanks in advance!
Re: Publish products in frontend
No, the admin interface is a backend module.
You should create a TYPO3 Extbase frontend plugin with a form for the product details you need, extend your Extbase controller from the Aimeos AbstractController and use the Aimeos product manager to create/update your products.
For the start in your controller action:
You should create a TYPO3 Extbase frontend plugin with a form for the product details you need, extend your Extbase controller from the Aimeos AbstractController and use the Aimeos product manager to create/update your products.
For the start in your controller action:
Code: Select all
$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'product' );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Publish products in frontend
I did exactly that (i tried), I created some managers for product, price, catalog, etc. but i don't understand how to attach a product with a price for example or how to create a product and see it in the catalog or the index staff.aimeos wrote: You should create a TYPO3 Extbase frontend plugin with a form for the product details you need, extend your Extbase controller from the Aimeos AbstractController and use the Aimeos product manager to create/update your products.
Re: Publish products in frontend
It's all about the lists, i.e. the list tables like mshop_product_list.
Use the product lists manager to create entries in the mshop_product_list table, use the product ID as parentid and the ID of the text/price/media as refid. The domain is text/price/media depending on the referenced item and the typeid is almost always the "default" code for the domain in the mshop_product_list_type table.
You can get the typeid via
A product must be in a category to be visible, so add a list item to the category (catalog domain) using the product ID as refid. After everything is complete, the product must be added to the index with
Use the product lists manager to create entries in the mshop_product_list table, use the product ID as parentid and the ID of the text/price/media as refid. The domain is text/price/media depending on the referenced item and the typeid is almost always the "default" code for the domain in the mshop_product_list_type table.
You can get the typeid via
Code: Select all
$listTypeManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'product/lists/type' );
$textTypeId = $listTypeManager->findItem( 'default', array(), 'text' )->getId();
Code: Select all
\Aimeos\MShop\Factory::createManager( $this->getContext(), 'index' )->saveItem( $product );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Publish products in frontend
I almost got it, just one last question, how i add a list item to the category? i tried thisaimeos wrote:A product must be in a category to be visible, so add a list item to the category (catalog domain) using the product ID as refid.
Code: Select all
$catalogListManager = \Aimeos\MShop\Factory::createManager( $context, 'catalog/lists' );
I'm still kinda confused with mshoplib, sorry
Re: Publish products in frontend
Sure, they do! These methods are inherited via the base class.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Publish products in frontend
I made itaimeos wrote:Sure, they do! These methods are inherited via the base class.
