I am a WordPress developer and using woocomerce hook woocommerce_email_attachments to attach a file with completed order email
This works fine , it attaches the required file
But I want to get that downloadable link of particular attachment , so i could use it in the email template anywhere instead of having it at the bottom of the email
(So when user clicks the link it should download that attachment)
I tried reading so many woocommerce classes but unfortunately couldn't find any function that returns the download link of attachment
Thank You
Related
I have added custom fields to my product. I don't want to display those into "WooCommerce Thankyou Order" email. Please, can someone tell me, how to hide the custom fields?
For ex: I want to hide the details that are highlighted email template
Go WooCommerce in the wordpress Dashboard, click on Email tab. At the end you have Email Template.
In order to override the default email template edit woocommerce/templates/emails/customer-process-proshop/woocommerce/emails/customer-processing-order.php
At least that's WooCommerce instructions says. I do not have a wordpress with commerece to test or check that file but I suppose in there you could decide what information is actually sent to the customer.
I would like to replace the Add to Cart button in woocommerce to a button that links to the "file url"specified for all downloadable products. I did find some plugins like "download now", but they expect an actual file while i often entered an url pointing to an external html page as file url instead of the actual file url.
You need external products instead of downloadable products. There are many plugins in the market which supports external products.
You can use default woocommerce feature. Follow these steps:
Make product Virtual & Downloadable
Goto Woocommerce >> Settings >> Products >> Downloadable products
Here for "File download method" option select redirect only
This will work as you want!
I have a WordPress page and a form. The form is generated by Contact Form 7 and Email Before Download. Currently it works like this:
[email-download download_id="***" contact_form_id="***"]
So when the user fills out the form, he gets the download link to the file. Can I add a download without a file? I want to just hide a URL behind this registration form. So when the user registers, he gets an email with the url, but there's no file, just a webpage.
Is there a way to do this?
Thank you!
It looks like you are using "Email Before Download"-wordpress plugin.
This plugin (v2.0 and newer) has an option to only email the link to the user;
[email-download download_id="***" contact_form_id="***" delivered_as="Send Email"]
(EDIT) To use an external link:
[email-download download_id="***" contact_form_id="***" file="http://www.google.com"]
I am using sendpress plugin. I want to add subscribers through code without using sendpress shortcode .like i have checkbox signup for news letter if it is checked email address will automatically added to newsletter plugin database
Use Sendpress:SUBSCRIBE-user() function which takes email and listid as an argument which updates all table in sendpress.
I want to Make a contact form in wordpress including input fields and some checkboxes , I want the form data to go to my email address.
How do I make one from scratch ?
Go to the wordpress dashboard and click "Contact" on the left hand side.
Click add new.
In this area you have two boxes, form and mail. Form is what is displayed on your website and mail generates what is sent to you (ie the e-mail address the form will be sent to and the default template of that e-mail).
Directing mail to your e-mail address is very simple - just change the "To" box to your e-mail.
The form box is completed by generating tags using the plugin. For example, to generate a file upload box you click generate tag -> file upload -> and change the options within (required field, etc) and then paste the given code to the form and the mail boxes where it directs you to.
Once this process is finished for all forms click save and copy the generated shortcode to the page you want to include this contact form in.
Hope this answers your question,
Paul
You can find all you need in their documentation.
Contact Form 7 Documentation