I'd like to add the sales guest form to a cms page? This is the form you find at yourdomain.com//sales/guest/form/ it's template is app/design/frontend/base/default/template/sales/guest/form.phtml
I've tried using this method which outlines how to do it for the Magento contacts form but am not sure how to re-work this method for the sales/guest/form, I think my action
attribute is wrong.
This is what I have
<!– Order Search Form –>
{{block type="core/template" name="orderSearchForm" form_action="/sales/guest/view" template="sales/guest/form.phtml"}}
<!– Order Search Form –>
This displays the form on the page but when I submit it, it just reloads the page rather than find the order at ourdomain.com/sales/guest/view/
Best Answer
In the
layout/sales.xml
layout file the block is included as followsIn the phtml file
sales/guest/form.phtml
the methodgetActionUrl
retrieves the post action URL. This method returns a standard value that can't be set from layout XMLIncluding the block like this would solve it I'd say