You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, each time the plugin is reinstalled, the shopping world element is removed from the shopping world and a new copy of the element is created. This results in multiple copies of the element in database and in shopping worlds designer and the element in the shopping world has to be added again.
The function createOrUpdate() should first check if the element is present in the database and create it only if it isn't.
The text was updated successfully, but these errors were encountered:
The function
createOrUpdate()
of theComponentInstaller
class is used in a plugin'sinstall()
to create custom shopping world element (as described here https://developers.shopware.com/developers-guide/custom-shopping-world-elements/#registering-a-new-element).The problem is, each time the plugin is reinstalled, the shopping world element is removed from the shopping world and a new copy of the element is created. This results in multiple copies of the element in database and in shopping worlds designer and the element in the shopping world has to be added again.
The function
createOrUpdate()
should first check if the element is present in the database and create it only if it isn't.The text was updated successfully, but these errors were encountered: