2

On product page I have popup opened on click on button. Its template is normally added to layout via XML and it's almost empty, but on click it content is replaced by ajax call.

So far controller instantiates another block, calls toHtml() and returns it as text/html. It works but, it is not elegant solution.

Is there any to better way to achieve it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.