STEP-9 render Plugins and MSTP Plugin, Component creation
Now we going to create plugins for the Product Page.
We want to display our social share under the product short description. Product short description rendering is located inside the ProductAction component, so at first, we going to plugin into ProducAction Container mapStateToProps adding our redux state, and then into Short description render.
In <SOURCE>/plugin create file ProductActionContainerMSTP.plugin.js
2. In <SOURCE>/plugin create file ProductActionComponent.plugin.js
3. Using console navigate to scandipwa-socialshare and execute
scandipwa create component SocialShare
4. Edit render method of the newly created component
5. Go to the frontend product page and check if the content is rendered.
Last updated
Was this helpful?