Hi I am totally new with Magento.
I extended the order/observer and it works well.
I want to add a page with a textbox and a button.
The goal is to call a .net wcfservice with the textbox input and return some data (an array of strings) and then to present it on the page as a result.
I read about widgets, blocks and other, but what is the best way to care of this?
Solved! Go to Solution.
It seems there are several things you will need to handle.
1) You've mentioned observers. What are you doing with observers?
2) Also, on which page you'll show that information?
3) How will be the call to the webservice exectued? Which gonna be the trigger?
I am software developer, but new to magento and php.
I mentioned the observer as an example to inform about the level of my knowledge.
and to let people know where i've already been in my few days of magento/php.
So it has nothing to do with my question.
But to answer your question. After an order has created. I send some order data to an external webservice. This .net wcf service executes some extra actions. I just followed some samples on the internet to get this going. It works well.
I want to create a page where people can insert a number in a textbox and there's a submit button. After they hit the submit button. Then this number will be send to another external webservice. In return it will receive some data, which should be presented on the same page
(as some labels). Just like below (from another webste) ...
In the main menu there will be a menuoption to start this page.
Hope it's more clear now. I just want to know what is the best way to start this.
So, basically, you'll need a custom page (controller + block + layout + phtml) and then, your form will post the data to your own controller and there you'll call your model who will call your webservice (or maybe a library instead a model).
Is this the main idea, right?
Some ideas (I know there are plenty of code over internet but I'll sugeest some core code).