1

I Have Cms Page I want to add contact us block withing it so I do as follows

<!– CONTACT FORM CODE BEGIN–>
{{block type="core/template" name="contactForm" form_action="/~argentaustcom/contacts/index/post" template="contacts/form.phtml"}}
<!– CONTACT FORM CODE END–>

but url not correct so I Do As follows

<!– CONTACT FORM CODE BEGIN–>
{{block type="core/template" name="contactForm" form_action={{store_url=""}}/contacts/index/post" template="contacts/form.phtml"}}
<!– CONTACT FORM CODE END–>

but I echo block code instead of echoing form this echo

{{block type="core/template" name="contactForm" form_action={{store_url=""}}/contacts/index/post" template="contacts/form.phtml"}}

not form I am trying to change "" to '' but not work

2
  • Try this: {{block type="core/template" name="contactForm" form_action="{{store url=''}}/contacts/index/post" template="contacts/form.phtml"}} , not sure what's the problem you are facing though. Commented Jan 12, 2016 at 3:39
  • yes i check not working Commented Jan 12, 2016 at 3:48

2 Answers 2

3

{{store url=""} and {{store direct_url=''}} will not work in cms page within block tag.

{{store url=""} and {{store direct_url=''}} only convert to domain.com if it will put separately, Not within any tag. in your case it is in block tag

You need to put the block like following

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

OR

{{block type="core/template" name="contactForm" form_action="http://domain.com/contacts/index/post" template="contacts/form.phtml"}}

Hope it helps you

2
  • i think issue is {{store url=""} and {{store direct_url=''}} will not work in cms page within block tag. however i put url static url to solve it Commented Jan 12, 2016 at 5:40
  • yes. you can also use static url. i have updated answer Commented Jan 12, 2016 at 5:45
0

Try this:

{{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}}

OR

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.