Multiple Contact Forms on Magento - forms

I'm looking to create a new contact form for enquiries on Magento. Creating a module from scratch for this seems like a bit of a waste of time. Does anyone know the most sensible and quickest way for this to happen?
Thanks!

In CMS>Manage Pages create and enable a new page (or you could use a static block) e.g. call the page My Contact Form with a url ID of my-contact-form and a layout that matches your theme. For the content of the new page add
{{block type='core/template' template='contacts/mycontactform.phtml'}}
Now in your template folder (app/design/frontend/default/default/template/contacts for default theme in Magento 1.3.x) copy the existing form.phtml file, rename it to mycontactform.phtml and copy it back to the contacts folder. Edit the new mycontactform.phtml code and html as you wish to create your new contact form.
Load the new form by going to http://www.example.com/my-contact-form
Hope that helps...

In adendum to paj answer: You also have to edit the email template to include whatever new fields you just added.
Keep in mind that both your new contact form and Magento original contact form (an whatever future contact forms you may add in the future with in this way) will all use the same email template.
So in order to have meaningful emails sent, you need to "program" the template using the {{depend}} directive

Related

How to override contact us from in shopify?

I am new to Shopify and I want to create feedback form and for that, I would needed base of the contact form. Now the thing is how to override contact us form.
There would be template suffix of contact form page in the online store > Pages.
Open your Theme Editor and create a new page template and give it a name of your choice. Now open your contact page's admin screen and simply change the page template to the one you created.

Dynamic CRM - insert external hyperlink with dynamic parameters in Email workflow

I have a Workflow in CRM 2016 on premise that sends an email to a customer when an order is created. The email contains a URL link to external website used for scheduling. The problem is that the hyperlink in the email doesn't fill the parameters we are using from the CRM entities.
I tried several ways to do this. the first way was using the Insert Hyperlink when creating the email through the workflow. this creates the following tags:
<hyperlink><name>Pro Services Online Scheduling Portal</name><value>https://secure.website.com/ProServices?name={Ship To Contact(Order (Order))}&email={Email(Ship To Account (Account))}&OrderID={Order ID(Order (Order))}&Company={Customer(Order (Order))}&skip=0</value></hyperlink>
This correctly adds the hyperlink into the email but the actual link looks exactly as it does in value tag without the CRM values.
I tried just adding the link as plain text like so:
https://secure.website.com/ProServices?name={Ship To Contact(Order (Order))}&email={Email(Ship To Account (Account))}&OrderID={Order ID(Order (Order))}&Company={Customer(Order (Order))}&skip=0
This displays the correct URL with the correct CRM values like: https://secure.website.com/ProServices?name=JonDoe&email=jdoe#email.com&OrderID=ORD-123456&Company=FakeCompany&skip=0
However, the URL itself is still missing the values so if the customer clicks on the link, the incorrect parameters will be sent. It does work if the customer were to copy and paste the link text instead of clicking the URL but most customers would rather click the link.
I even tried used an HTML anchor tag but that also didnt work.
Has anyone else encountered this problem?
Any help would be appreciated.
Here's some blog posts that helped but still looking for answers.
http://dotnetskills-reenapatel.blogspot.com/2014/02/how-to-form-dynamic-hyperlink-url-for.html
http://www.magnetismsolutions.com/blog/paulnieuwelaar/2012/06/25/dynamic_clickable_email_hyperlink_dynamics_crm_2011_workflow
If you want to use hyperlink then you have to do something similiar to what CRM does for field Record URL(Dynamic).
You can create a new field on the entity say 'EntityName Hyperlink'. Then use plugins to set this value to the desired link on create event.
You can then use this field to create your hyperlink. We do something similair for our case entity we have field Case Hyperlink which i set on create event.
Then we insert it on outgoing emails like this
<hyperlink><name>Hyperlink</name><value>{Case Hyperlink(Case)}</value></hyperlink>
We ended up creating a custom workflow activity to add the hyperlink using SparkleXRM

Joomla Contact Form (from the ground up)

I'm looking to create a customized contact form in a Joomla 3 site I have created. I know how to write the php code for the form, but I'm unsure of where to place the code.
Ok, the form is located at http://www.theoscorner.com/contact-us. What you see there is only the design, and there is currently no script for the form to submit to. If I wanted to create a new php page for the form to submit to, what is the best method of doing this? For example:
Should I create a completely new php file where the template's index.php file sits, and use a module (instead of an article) to hold the form.
Should I create a new article page, and place my php script in that article?
Should I hard-code my form into a module, and place a php function at the end of the index.php page which gets called when the page is refreshed and the POST values are set.
I'm just looking for any type of guidance I can get right now. I don't want to use a third-party plugin, because I want a little more control than they allow. Thank you for your time.
Just use RS Forms or Contact Enhanced, they are both Joomla extensions available on extensions.joomla.org
There is no need to create your own MVC component.

Form (phpmailer) in joomla error

I'm having the following problem, i created a folder (named 'forms') to storage the files of phpmailer, then i have to put the action in the form this way: action="forms/mail.php".
But when i tried the form it open a not found page e in the url it appears this: "perfilo/index.php/forms/mail.php", i tried to delete the part "index.php/" and execute the script and it looks like would work without it.
Can anyone tell me how to get rid of this "index.php/" part? Am i doing something wrong or what?
Thanks
You are on the wrong track.
Search for documentation on using Joomla! Mailer.
Some resources to get you started:
JFactory/getMailer
How To Send Email from Your Joomla Extension
You are on the wrong path.
In joomla you need to implement a contact form.You can implement it like following.
Joomla Provides you a default component com_contact Any of the files from com_contact\views\contact\tmpl\ or you can create new layout with your custom design.
And you can access the files in url via wwww.domain.com/index.php?option=com_contact&view=contact&layout=default or your custom layout.
then joomla itself providing some forms if you want to customize that you can do that too.
The action they set in the form to contact controller. and sending the mail.
I got your point of view you are trying to create custom design and set it as article .
If you want to follow your own method.
You can work like this.
the form action leave as empty.
and onclick you have to set the action via jquery and then submit
Hope this may solve your issues

Add extra fields to Joomla registration forms

I need to add some extra field to Joomla registration form without using any extension. Please does anyone know how I can go about. I have created the extra fields in the db and added the html for the textfields but I don't know what to do next.
Some articles here that describe how to add extra fields:
http://joomla-and-more.com/2010/02/05/how-to-velden-toevoegen-bij-de-joomla-registration-form/
http://blog.manchumahara.com/2010/03/18/how-to-add-extra-fields-in-joomla-registration/
http://www.youtube.com/watch?v=dk_86nHu3AM