WS Form file upload in Woocommerce order email - php

Im using WS Forms (pro) for a client, we have a form linked to all products in the woocommerce store. The form have the possibility to upload files, this works great but i want to show the attached file in the Woocommerce order email, or at least a link to the uploaded file(s). By default it only shows the filename and size info like: Attached file: "FJNE83_7.jpg (74.34 KB)"
Is it possible? Does anyone have an idea how to achieve this? Can i add something to the order e-mail template, or some intelligent code in functions? Ive searched around but could not find a solution.

Related

How can I unmask the first name and email address on Microsoft clarity of people who visit my checkout page

I linked my Wordpress website to Microsoft clarity in order to manage and see how users are interacting with my website. Now when users insert their first name and username in the input boxes field of the checkout (the plug-in that I’m using for checkout is cart flow, its responsible for managing the form fields) the information that they have added is masked when viewing it through “recording feature” of Microsoft clarity, even though I tried a variety solutions that I mentioned in the bottom to unmask the information they provided
**For anyone asking why i want to unmask, its just to give me a more in depth analysis of users who are facing difficulties signing up or buying a specific product **
Things I've done to unmask form input fields:
1- Added a parent CSS class selector for the the form. (doesn't work)
2- Added input & select selectors as umasked (doesn't' work)
3- Added data-clarity-unmask="true" to a parent div of the form (doesn't work)
The only think I haven't tried is adding data-clarity-unmask="true" to each individual form input. I'd have to modify the form plugin's code so I was trying to avoid that.
Any possible solutions to this problem ?

Upload files to orders backend in woocomerce

I have been searching for a solution to allow me to upload files via the order page backend
we do artwork for most of our orders and would like to be able to manually add the file into the already processing orders backend, this is mainly for our purposes when printing jobsheets etc, but if the customer has an account be handy for them to access it to (but not to important)
i have searched for plugins but all seem to be for frontend rather than backend.
only way i think could be done is via custom field which i have tried but failed
im new to this site so i hope this question is allowed sorry if it is not
Tried implementing via custom field backend but did not work

Custom Customer Edit Page: Upload PDF file and retrieve for display

I followed this tutorial Add Custom Edit Customer Tab to create a custom tab and page for my customer.
I would like to make it as dynamic page that fetches data from the database however I don't know how to start it.
So far this is my progress
All the codes were copied from Add Custom Edit Customer Tab.
I'm new to magento and I don't now how to start creating a dynamic page in the admin page.
My goal is to upload a PDF file for every customer and display it below.
UPDATE: My goal is to create a magento module that allow admin to upload pdf file in the backend and will dynamically display on the customer login page.
I would like to know were can I create/relate my database table/attribute so that it will get and store the exact customer ID and file.
Is there any tutorials or blogs that you can recommend?
In case I will create another similar customer page that uploads PDF file, is there a way also that I will not repeat my self doing the same code?
I hope you can help me.
Thanks!
The best way to solve that problem is to understand how to create a simple module.
Allan Storm has one of the best blogging tutorial that can help you.
If you already understand the basic of Magento module you can advance in making complicated admin backend.
You can start by building Magento Admin Grid.
You can start on this tutorial http://navaneeth.me/creating-magento-extension-with-custom-database-table/#.VkwhrXYrKUk upon following, update the rosource model and collection model, extend them with this
Mage_Core_Model_Resource_Db_Abstract - (extend this on your resource model)
Mage_Core_Model_Resource_Db_Collection_Abstract - (extend this on your collection model)
To create upload file, try to understand this link http://arabgento.com/en/techniques-of-uploads-files-inside-magento/
don’t forget to declare your from container with (‘enctype’ => ‘multipart/form-data’)
I hope this helps.
For upload pdf and display it :
If you want to display pdf than use use "iframe" tag.
If you want to convert pdf to png or jpg and display than upload the pdf using AJAX on server and convert that pdf using "imagemagick" and display.

how to attach downloadable file in virtuemart 2 in joomla

I am using virtuemart extension version 2.0.22a in my joomla site.
I want to sell digital products using vm(virtuemart). So when payment done user will be able to download product zip file.
But it seems i can't find where & how do I attach product download files in vm 2. Earlier versions of vm had downloads tab in configuration.
It's look like i have to buy another paid plugin for this said here -
help forum topic
This should not be accepted, there should be way to attach downloadable files(zip,..) with the product at least.Even many free e-commerce sites, extensions have at least downloadable files. So why should not be here in vm.
Any one help me to attach downloadable zip file with the product in vm or if its that i need to add a paid plugin then tell me alternatives.
If you can customize the VM little bit an alternative option in my mind, I am not sure this is acceptable for you.
When someone place an order in your site an order confirmation should send as email that email should have a proper order_id and expiry token. Also a download count in your custom table.
And order confirmation page should says check your inbox.(or even you can set the link inside confirmation page).
Check the link and validate order id,expiry token and download count.
Also if the files are not large in size you can choose attach file option for email.
Hope its give some idea for your task.

How to properly configure magento to include a file upload link during an order notification? integrated with joomla magebridge component

Our website is a printing type service and it has the capacity to take the order of customers with the following procedures:
They select the type of product that they want to order
Select the paper size and the quantity of the item
The customer needs to upload a file in pdf format (This is the file to which they include the design that want for their order)
The system will send an email to both the customer and the owner (The email should include the direct link on which the uploaded file should be downloaded)
The emails are successfully sent with the details of what items they want to order. A link is included on the email but what it displays is this sample code:
Item Sku Qty Subtotal
Letterhead 100gsm Matte A5 500
File Upload - File will upload after you click Buy Now
The "" should be the download link of the pdf file that the customer have uploaded on the server. I need help on this were currently using Magento 1.5.1.0 and I have been wondering were the bug is on how to include the proper link to the pdf file uploaded by the customer.
And also we have a joomla version of the site which is using a magebridge component the main purpose of the component is to connect joomla with a magento site to enable joomla to integrate some of the important functionalities of magento. So basically users would visit the joomla site and do the transactions they need to do.
Thanks
To display a link to the file that was uploaded in customer's email confirmation in magento v1.7.
Copy this template file to your local template folder /app/design/frontend/base/default/template/email/order/items/order/default.phtml
Then change this line (#37)
<?php echo (isset($option['print_value'] ) ? $option['print_value'] : nl2br($this->escapeHtml($option['value']))) ?>
to
<?php echo (isset($option['print_value'] ) && $option['option_type'] != 'file' ? $option['print_value'] : $option['value']) ?>
This may or may not work in version 1.5.1

Categories