how to change one page to another pages with the same url with the help of a parameter

we can change one page to another page with the same url with the help of parameter

for that first we need to add the parameter value and we need to change the condition to it

for this we need to add the code in extension and template also

first we need to add the parameter to template file:

and we need to give values for that.

in extension: in this we need to add the view file to the define

for adding to a extention we need to find the correct file to add the code and view file otherwise it wont work

after passing a parameter value we need to check in console it was coming or not.

Leave a comment

Your email address will not be published. Required fields are marked *