=== Product Attachment for WooCommerce ===
Contributors: dots,jitendrabanjara1991,niravcse006
Donate link: https://www.thedotstore.com/
Tags: attachment,woocommerce,productattachment,orderattachment,dots
Requires at least: 5.0
Tested up to: 6.7.2
WC tested up to: 9.7.1
Stable tag: 2.3.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Plugin lets you easily upload any file type (images, documents, videos, etc.) to customer orders.

== Description ==

<a href="https://bit.ly/3qjiooM"> Product Attachment for WooCommerce </a> Plugin will help you to attach/ upload any kind of files for a customer orders.

You can attach any type of file like Images, documents, videos and many more.

Create a Product Attachment for WooCommerce Plugin let admin user add attachments to products and offer them when customer purchases the product.

Attachment download link can be set to auto-expire after a set period of time. Attachments can also be shown on product details page.

Pro Plugin Demo: <a href="https://pluginsdemo.thedotstore.com/woocommerce-product-attachment/"> View Demo </a>

[youtube https://www.youtube.com/watch?v=w6PxtXKwG60]

== HOW IT WORKS? ==
* Store Owner will be able to attach single or multiple files directly from the "product Edit Page"?.
*  Attachments can be downloadable/viewable on the Order details and/or Product pages. In the case of visibility on order details page, every file can be visible for different order statuses.

<strong>Note:</strong> Some type document WordPress does not allow to upload for security reasons so you can add below code in wp-config.php file for allowing all type upload in Attachment.

` define('ALLOW_UNFILTERED_UPLOADS', true); `

== Key Features ==

* Multiple attachments can be added
* Attachments can be downloadable in the Order details OR Product Detail pages.
* This Attachment is set status(Pending payment, Processing, On hold, Completed, Cancelled, Refunded, Failed) after that match this status then auto enable on each order download available.
* Set auto expiry date for order attachment ( Download link Expire)
* Enable attachment on Product page.
* Any type attachments you can attach with order
* Add Attachment in all  products.
* Each Attachment have own settings (Name, Description, Uploads file, select Order status, Set expiry Date and more)

== Product Attachment for WooCommerce Pro version: ==

Need even more? upgrade to <a href="https://bit.ly/3qjiooM">Product Attachment for WooCommerce Pro</a> version and get access to all extra features available in Product Attachment for WooCommerce Pro.

== Add attachment with below key features ==
<ol>
<li>Enable attachment on Product page</li>
<li>Add Attachment in all products/variable Products</li>
<li>Bulk products attachments assign directly to multiple products</li>
<li>Bulk products attachments assign directly to categories</li>
<li>Include/Exclude selected Products and Categories</li>
<li>Select Attachment Type with File Upload or External URL</li>
<li>Any type of attachments can attach with the order. Includes: File type – Doc, JPG, Videos, PDF and more.</li>
<li>Each Attachment have its own settings (Name, Description, Uploads file, select Order status, Set expiry Date and more)</li>
<li>Enable or disable attachment on email or not</li>
</ol>

== ☎️ CONTACT US ==

<ul>
 <li><strong>Free plugin:</strong> Need Technical Help? - <a href ="https://wordpress.org/support/plugin/hide-shipping-method-for-woocommerce/" target="_blank">Click here</a></li>
 <li><strong>Pro Plugin:</strong>  PRE-SALE Questions - <a href ="https://www.thedotstore.com/support/" target="_blank">Click here</a> or <a href ="https://docs.thedotstore.com/category/178-introduction-getting-started" target="_blank">Review Help Document</a></li>
</ul>

== 🎯 Supercharge Your Store Performance ==

Gain access to <strong>50 expert tips</strong> covering everything from <strong>site speed</strong> and <strong>user experience</strong> to advanced sales strategies, each with impact scores to help you prioritize what truly drives results.

<a href ="https://www.thedotstore.com/?popup_id=76452&utm_source=freeplugin&utm_medium=content&utm_id=ebook1_attachment" target="_blank">Download Free eBook</a>

== Explore our other plugins to supercharge your WordPress website ==
== 👉 Premium WooCommerce Plugins list ==

<ol>
<li>
<a href ="https://www.thedotstore.com/flat-rate-shipping-plugin-for-woocommerce/" target="_blank">Flat-rate shipping plugins for WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-extra-fees-plugin" target="_blank">WooCommerce Extra Fees</li>
<li><a href ="https://www.thedotstore.com/hide-shipping-method-for-woocommerce" target="_blank">Hide Shipping Method For WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-advanced-product-size-charts/" target="_blank">Advanced Product Size Charts Plugin</a></li>
<li><a href ="https://www.thedotstore.com/product-sample-woocommerce/" target="_blank">Product Sample for WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-blocker-lite-prevent-fake-orders-blacklist-fraud-customers/" target="_blank">Blocker – Prevent Fake Orders And Blacklist Fraud Customers</a></li>
<li><a href ="http://www.thedotstore.com/woocommerce-enhanced-ecommerce-analytics-integration-with-conversion-tracking" target="_blank">Enhanced Ecommerce Google Analytics for WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/conditional-payments-for-woocommerce/" target="_blank">Conditional Payments For WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-advanced-usps-shipping-method/" target="_blank">Advanced USPS Shipping Plugin</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-multi-vendor-shipping-addon/" target="_blank">WooCommerce Multi-Vendor Shipping Addon</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-category-banner-management/" target="_blank">Category Banner Management for Woocommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-product-finder" target="_blank">Product Finder For WooCommerce</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-conditional-discount-rules-for-checkout" target="_blank">Conditional Discount Rules For WooCommerce Checkout</a></li>
<li><a href ="https://www.thedotstore.com/woocommerce-checkout-for-digital-goods/" target="_blank">WooCommerce Checkout For Digital Goods</a></li>
<li><a href ="https://www.thedotstore.com/attribute-stock-woocommerce/" target="_blank">WooCommerce Attribute Stock</a></li>
</ol>

== Installation ==

This section describes how to install the plugin and get it working.

e.g.

1. Upload `woo-product-attachment` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

= Q. Is it possible to attach Multiple attachments by Product Attachment for WooCommerce. =

Ans: Yes, you can upload multiple attachments like Images, documents, videos and many more by Product Attachment.(Product Attachment for WooCommerce)

= Q. How do I set downloadable attachment link on product detail pages and Completed order? =

Ans: Yes, you have to enable “show on Product page�? option and select order status “Completed�?. After that it will be visible on product page and Completed order page.(Product Attachment for WooCommerce)

= Q. How do I set downloadable attachment link as per order status? =

Ans: By Product Attachment for WooCommerce plugin you can downloadable attachment link as per order status. You can set on Pending payment, Processing, On hold, Completed, Cancelled, Refunded, Failed) after that match this status then auto enable on each order download available.

= Q. How do set auto expiry date for order attachment ( Download link Expire)? =

Ans: By Product Attachment for WooCommerce plugin you can enable “set date expires�? option. After that you have set expiry date. If an order is placed after the  set expiry date, then attachments will be no longer visible for download.


== Screenshots ==

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

== Changelog ==
= 2.3.1 =
* [Bug Fix] Minor bug fixes releted to attachment display.
* [Bug Fix] Fixed HPOS compatibility issues in the backend order page.
* [Enhancement] Introduced sorting for product attachments.
* [Enhancement] Optimized plugin layout
* [Enhancement] Compatible with WooCommerce 9.7.x
* [Enhancement] Compatible with WordPress 6.7.x

= 2.3.0 =
* [Bug Fix] Minor fixes related to edit product attachments
* [Bug Fix] Minor fixes related to the order attachments
* [Enhancement] Plugin UI enhancement
* [Enhancement] Plugin compatibility with PHP 8.2.x
* [Enhancement] Compatible with WooCommerce 8.9.x
* [Enhancement] Compatible with WordPress 6.5.x

= 2.2.3 =
* [Bug Fix] Minor bug fixed
* [Enhancement] Compatible with WooCommerce 8.7.x
* [Enhancement] Compatible with WordPress 6.4.x

= 2.2.2 =
* [Bug Fix] Resolved issue with empty brackets appearing when using external URLs for downloads.
* [Enhancement] Added product page attachment sorting
* [Enhancement] Compatible with WooCommerce 8.7.x
* [Enhancement] Compatible with WordPress 6.4.x

= 2.2.1 – 15-09-2023 =
* [Bug Fix] Quick fix related to an Uncaught error on the admin order page by using the valid date function
* [Enhancement] Compatible with WooCommerce 8.1.x
* [Enhancement] Compatible with WordPress 6.3.x

= 2.2.0 – 18-08-2023 =
* [Bug Fix] Minor fixes related to the plugin version switching issues
* [Bug Fix] Minor fixes related to the Cross Site Request Forgery (CSRF) vulnerability
* [Enhancement] Plugin compatibility with WooCommerce High-Performance Order Storage (HPOS)
* [Enhancement] Plugin UI enhancement
* [Enhancement] Introduced plugin setup wizard
* [Enhancement] Added free user upgrade dashboard
* [Enhancement] Compatible with WooCommerce 8.0.x
* [Enhancement] Compatible with WordPress 6.3.x

= 2.1.8 – 24-07-2023 =
* [Bug Fix] Minor fixes related to the compatibility issue with the Flatsome theme
* [Enhancement] Quick fix related to the Cross Site Scripting (XSS) vulnerability
* [Enhancement] Compatible with WooCommerce 7.9.x
* [Enhancement] Compatible with WordPress 6.2.x

= 2.1.7 – 21-02-2023 =
* [Bug Fix] Minor fixes related to the bulk attachments save message.
* [Bug Fix] Minor fixes related to the plugin settings label.
* [Bug Fix] Minor fixes related to the get attachments from product SKU.
* [Enhancement] Plugin compatibility with PHP 8.1.x
* [Enhancement] Compatible with WooCommerce 7.4.x
* [Enhancement] Compatible with WordPress 6.1.x

= 2.1.6 – 29-12-2022 =
* [Bug Fix] Minor fixes related to the allow bulk attachments with user roles.
* [Bug Fix] Minor fixes related to the attached file size with bulk attachments.
* [Bug Fix] Minor fixes related to the attachments size visibility on the order details page.
* [Bug Fix] Minor fixes related to the attachments expire date visibility on the order details page.
* [Bug Fix] Minor fixes related to the my account page attachments.
* [Bug Fix] Minor fixes related to the admin order details page attachments.
* [Bug Fix] Minor fixes related to the attachments link target on the order details page.
* [Enhancement] Made order listing page attachment button label dynamic. It will get the label from the "Frontend Product Page Tab Title" feature.
* [Enhancement] UI enhancement
* [Enhancement] Compatible with WooCommerce 7.2.x
* [Enhancement] Compatible with WordPress 6.1.x

= 2.1.5 – 13-09-2022 =
* Enhancement - Added filter to display WPML main language attachments if no attachments were added.
* Enhancement - Compatibility of the plugin with WooCommerce Extra Product Options Plugin.
* Enhancement - Compatibility with ACF and Rank Math SEO plugins.
* Fixed - Fixed a minor bug concerning Elementor page templates.
* Update - Compatible with WooCommerce 6.8.x
* Update - Compatible with WordPress 6.0.x

= 2.1.4 – 28-06-2022 =
* New - Set attachments action as download or view
* Fixed - Compatibility issue with Rank Math SEO plugin
* Fixed - Compatibility issue with Kadence WooCommerce Email Designer plugin
* Fixed - Minor bug fixed related to not found order ID
* Fixed - File download not working with multisite
* Enhancement – Improvise Plugin layout and design
* Update - Compatible with WooCommerce 6.6.x
* Update - Compatible with WordPress 6.0.x

= 2.1.3 – 10-03-2022 =
* Enhancement – Security patch
* Update - Compatible with WooCommerce 6.3.x
* Update - Compatible with WordPress 5.9.x

= 2.1.2 – 22-02-2022 =
* New - Added option to select download type for the attachments
* Fixed - Removed default title and description when there are no attachments in the order
* Fixed - JS file confliction issue with the ACF plugin
* Update - Compatible with WooCommerce 6.2.x
* Update - Compatible with WordPress 5.9.x

= 2.1.1 – 27-12-2021 =
* Fixed - JS file confliction issue with the ACF JS.
* Compatible with WooCommerce 6.0.x
* Compatible with WordPress 5.8.x

= 2.0 – 22-10-2021 =
* New - Allow users to upload their own attachments during the checkout process
* New - Showcase attachments based on shortcode attributes
* New - Send email attachments as the default email attachments
* Compatible with WooCommerce 5.8.x
* Compatible with WordPress 5.8.x

= 1.9.4 =
* Compatible with WooCommerce 5.7.x
* Compatible with WordPress 5.8.x

= 1.9.3 =
* New - Fully compatible with "Enable Media Replace" plugin
* Fixed - Minor bug
* Compatible with WooCommerce 5.5.x
* Compatible with WordPress 5.8.x

= 1.9.2 =
* Compatible with WooCommerce 5.4.x
* Compatible with WordPress 5.7.x

= 1.9.1 =
* Compatible with WooCommerce 5.2.x
* Compatible with WordPress 5.7.x

= 1.9 – 05-04-2021 =
* New - Supported grouped products
* New - Compatibility with Loco Translate
* Compatible with WooCommerce 5.1.x
* Compatible with WordPress 5.7.x

= 1.8 – 19-03-2021 =
* New - Option to show each attachment for guest or members only
* New - Option to open each attachment in new/same window 
* New - Global settings to show attachments with size
* New - Global settings to set product attachment tab default selected
* Compatible with WooCommerce 5.1.x
* Compatible with WordPress 5.7.x

= 1.7 – 31-12-2020 =
* Compatible with WooCommerce 4.8.x
* Compatible with WordPress 5.6.x
* Minor bug fixed

= 1.6.3 =
* Compatible with WooCommerce 4.7.1
* Compatible with WordPress 5.5.3

= 1.6.2 – 25-11-2020 =
* Minor bug fixed

= 1.6.1 – 20-11-2020 =
* Maintenance Release

= 1.6 - 25-09-2020 =
* New - Show Attachments Button on Orders Listing Page
* New - Hide/show attachments on thank you page
* New - Allow only one bulk attachment 
* Update: UI Change
* Update: Upload all type of attachment
* Update: Compatible with WooCommerce 4.5.x
* Update: Compatible with WordPress 5.5.x

= 1.5.4 - 27-04-2020 =
* Update: Changed default "Show on Product page" option to Yes
* Compatible with WooCommerce 4.0.x
* Compatible with WordPress 5.4.x

= 1.5.3 - 04-02-2020 =
* Fix issue if site hosted on shared hosting with sub directory path then attach file display the blank screen.

= 1.5.2 - 30-01-2020 =
* Fix issue require cron file after activate plugin

= 1.5.1 - 29-01-2020 =
* Resolved Undefined index bug in wc-product-attachment-admin
* Compatible with WooCommerce 3.9.x

= 1.5 - 28-01-2020 =
* Compatible with Freemius
* Resolved Minor Bugs

= 1.3.0 - 18-11-2019 =
* Compatible with WordPress Version 5.3.x and WooCommerce version 3.8.x

= 1.2.9 - 04-11-2019 =
* Fix product attachment title display issue for the product variation in order page and email page.

= 1.2.8 - 04-11-2019 =
* Fix product attachment title display in order page and email issue if there is no attachment in order.

= 1.2.7 - 23-09-2019 =
* Fix vulnerable plugin issue

= 1.2.6 - 23-09-2019 =
* Minor Bug Fix

= 1.2.5 - 20-09-2019 =
* Maintenance Release

= 1.2.4 - 10-09-2019 =
* New: Is default behaviour of the attached PDF is viewable? for admin option

= 1.2.3 - 30-08-2019 =
* Repeat attachment main title issue has been fixed.
* Section tag hierarchical order not properly maintain issue has been fixed.

= 1.2.2 - 28-05-2019 =
* Compatible with WordPress Version 5.2.x and WooCommerce version 3.6.x
* Minor bug fixing

= 1.2.1 - 14-05-2019 =
* Minor bug fixing.
* Removed Product variation selection row from the backend attachment as no needed any more.
* Changed Popular plugin links and removed old promo code banner.

= 1.2.0 - 18-04-2019 =
* Alert display on product page load issue has been fixed.

= 1.1.9 - 16-04-2019 =
* Minor big fixing.

= 1.1.8 - 12-04-2019 =
* Admin Product Attachment Section resolve empty download link.
* Design the Product Attachment section.

= 1.1.7 - 26-03-2019 =
* Minor bug fixing

= 1.1.6 - 21-02-2019 =
* Compatible with Wordpress 5.0.3 version
* Compatible with PHP 7.2.0 version
* Minor bug fixing

= 1.1.5 - 26-11-2018 =
* Downladable file issue in edit order section

= 1.1.4 - 07-06-2018 =
* Fix vulnerable plugin issue

= 1.1.3 - 06-06-2018 =
* Fix: Normal bug
* Compatible with WordPress Version 4.9.6
* Compatible with WooCommerce Version 3.4.2

= 1.1.2 - 16-05-2018 =
* Fix: Expired issue for downloading issue

= 1.1.1 - 16-04-2018 =
* Fix: download file issue

= 1.1.0 - 24-02-2018 =
* Subscription form added

= 1.0.9 - 23-02-2018 =
* Fix: PHP Notice error resolve.
* Fix: Multiple attachment order page issue.

= 1.0.8 - 12-01-2018 =
* New: Expire Date Label show option.
* Fix: PHP Notice error resolve.
* Design Update.

= 1.0.7 - 12-12-2017 =
* Fix: PHP Notice error resolve.
* Download File issue resolved.

= 1.0.6 - 10-11-2017 =
* Fix: PHP Notice error resolve.

= 1.0.5 - 20-10-2017 =
* Premium Features Page added.
* UI change.
* Fix: js/css issue resolved.
* Fix: PHP error resolve.

= 1.0.4 - 16-10-2017 =
* Fix: js/css conflict issue resolve.
* UI change.
* Newsletter subscription added.

= 1.0.3 - 13-10-2017 =
* Fix: large File download issue
* Premium version link added.
* UI change.

= 1.0.2 - 09-08-2017 =
* FIX:Translate compatible
* Added FR.po file for french language.

= 1.0.1 - 15-07-2017 =
* New version Release.
* Fix Order Tab Text show when satisfied attachment status.

= 1.0 - 12-07-2017 =
* Initial Release.