Magento: How to set and get registry?

Registry means registering or creating a new variable which is to be used later on in the project/code. The registry variable acts as a global variable which can be used anywhere. Here are the functions to register, unregister and fetch a registry variable. register(): register a variable unregister(): unregister a variable registry(‘VARIABLE_NAME’): fetch registry variable … Read more