Overriding or Extending Functionalities
You can extend the functionality of Nosto extension and modify what data is sent to Nosto.
In order to extend Nosto extension's functionality (methods, data, etc.) you must create a small Magento extension. This way, you can override the product model, order model or any other functionality provided by Nosto extension.
Directory Structure
Creating an override requires a few files to be created. Follow the guide below and simply copy-paste the content into the specified locations. This will form the scaffold of your new override.
1. The module definition app/etc/modules/My_Nosto.xml
app/etc/modules/My_Nosto.xml
2. The module configuration app/code/local/My/Nosto/etc/config.xml
app/code/local/My/Nosto/etc/config.xml
Enabling the plugin
The module does not need to be explicitly installed. Assuming that you have followed the instructions above, your module should be automatically enabled. You can verify this by running the following command.
Disabling the plugin
There is no way to disable a module without uninstalling it and removing all files. In order to remove it, you will need to either remove all the associated files manually or run the following command.
Verifying
Once you have overridden the associated model and customised whatever fields you may need, you should verify that it, in fact, working as expected.
NOTE: Please note that in order to verify the changes using the debug-toolbar, you must have a Nosto account for the given store.
Last updated
Was this helpful?