Add an upload button to the frontend contact form - orocommerce

I try to add an upload button to the standard contact form in Orocommerce.
I extended the entity as described in
https://doc.oroinc.com/master/backend/entities/attachments/#backend-entity-attachments and the "contact us" entity now shows a button to add an attachment in the backend.
But I still dont't understand how to actually add an upload field to the frontend (preferably in costum forms, too).
How can I change the fields that are available in the frontend?

You can use the form type extension to add a field to the frontend form:
https://symfony.com/doc/4.4/form/create_form_type_extension.html

Related

When can a shopify field connect to a dynamic source?

I have added a text input field to my page template, in the hope of linking it to a metafield I have created within the page.
When editing the page template, the input field does not have the icon to link to a dynamic source.
Is there anyway I can make the connection for the page metafield through the template editor?
There are no connections from a Shopify Page to a Metafield for saving. They would be read-only. If you require to save information and write it, you would have to wire up your own App Proxy based save App.

Sitefinity add fields through backend code

enter image description here
I have a project where I need to add the customized field use code dynamically , now siteifinity provides user to add in the backend pages as the picture shows. Is any there way to add through code? Now I can add more field column into the table use fluent API, but the newly added field is not shown in the backend page. how to make the newly added field to show in the backend module ?

submit form data to custom page for emailing

I created a custom form on a shopify page and when the submit button is pressed i want all the data within the form fields to go to another page that is a request form where the user would enter data and upon submission the data will be emailed instead of buying anything. How is this done in shopify? the page that i'm talking about is this one
https://pharaohmfg.com/collections/billiard-pool-tables/products/luxor-pool-table
You can redirect to another page with a custom form but the email will not be send since you are required to use /contact#contact_form as the form action.
One way to bypass that is to submit the form as a contact form and redirect the user upon form success. Please note that this way if you submit the form more than once you will get a google challenge for spam protection which is not user friendly.
Another way is to create a custom APP and using a proxy to submit to that page and handle the request from there.
Or an another option is to use a third party app of some sort and use their form builder ( hopefully allowing you to tie the product variants in some way to the actual form ).
There are free services like formspree that allows direct submissions to an email but I don't know what are the limits there.

How to add a custom TPL on whmcs cart

We are trying to add a new .TPL file inside our Cart Template, we already did everything but when we try acessing:
site.com/cart?a=newfile
It does not work, is there any way to make WHMCS see the new file as part of the template in question?
I trying to create a custom register page to my template.
Thank you
If your aim is to create a custom registration page, I suggest you to continue with whmcs default templates instead of creating your own template.
In your custom registration page :
-if you want to customize the style,
you can do that by just editing css and html within viewcart.tpl.
-if you want to addcustom field and inputs into your custom registration form,
using in Admin area of whmcs Setup-> Custom Client Fields section,
you can add various of inputs with validation.
-if you want to some action on the registration event,
use this hook to catch the event and take your action,
it will fire whenever someone registers from your website :
http://docs.whmcs.com/Hooks:ClientAreaRegister

How to add custom form before "add to cart" page

I am using Magento 1.7. I need to get input from user so how to add custom form for taking input from user.
Let me explain: when click on any product it display product information. Now there should be a button.On click that button it should show custom form. After submit that form it should redirect to "add to cart" page with all the details of that product and values of custom form fields which is filled by user.
Is there any extension or any other way to do this?
On zennioptical.com the "ORDER" button is located on the product listing template
magento template : /app/design/frontend/base/default/template/catalog/product/list.phtml
The prescription form is actually shown on the product detail page
magento template : /app/design/frontend/base/default/template/catalog/product/view.phtml
To accomplish this in magento create a simple product the add custom option for ('Prescription Type' etc) then you will need to do some custom css and javascript to accomplish that layout