=== Custom Product Type for WooCommerce – Add-Ons, Data, Options, Layouts, Booking & Appointments ===
Contributors: wpsaad, arabianmido, freemius
Tags: custom-product-type, woocommerce-product-addons, woocommerce-product-fields, woocommerce-product-options, woocommerce-custom-fields
Requires at least: 2.8.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Create WooCommerce Add-Ons, Data, Options, Booking, Layouts, and Appointments as custom product types. Revolutionize store's possibilities!

== Description ==

<p><strong>Custom Product Type for WooCommerce</strong> helps you create unique WooCommerce product types with <strong>addons and options fields, custom admin data tab, tab custom fields (can be shown in front), layout control, and advanced booking fields.</strong></p>

<p>Designed for all types of products eg. (services, classes, tickets, or appointment-based businesses), this plugin gives you full visual control of WooCommerce single product data — from field structure to layout to display locations.</p>

<iframe width="560" height="315" src="https://www.youtube.com/embed/pEa15SWU8F8" frameborder="0" allowfullscreen></iframe>

<p>📺 <strong>YouTube Tutorials</strong>: <a href="https://www.youtube.com/playlist?list=PLKz5hMvo0UjRAi5lP0i1faLbTzuagXgIe" target="_blank">Watch the full playlist</a></p>

<p><strong>🔁 Create Multiple Product Types</strong>: Define as many types as you want, each with its own tab, fields, layout, and output position.</p>
<p><strong>📦 Move Your Product Types Easily</strong>: Easily transfer your custom product types, fields, and layouts from one site to another.</p>

<p><strong>🌐 WPML + Polylang Support</strong>: Fully multilingual ready.</p>

<p><strong>💳 Checkout-Safe</strong>: Fields do not conflict with WooCommerce cart, pricing, or payments.</p>

---

== Custom Fields (Free & Pro) ==

<p>The plugin includes a complete fields engine for building product types with user inputs, price modifiers, booking data, and admin-only metadata. All fields can be shown on the product page, cart, checkout, and order details automatically using the "Show on Frontend" toggle.</p>

<p>Every field supports:</p>
<ul>
  <li>Required/Optional setting</li>
  <li>Default values</li>
  <li>Field width controlling layout</li>
  <li>Frontend visibility toggle</li>
  <li>Admin-only mode</li>
</ul>

<h3>💫 Free Add-Ons Field Types</h3>
<ul>
  <li><strong>Title</strong>: Display a static heading or label to organize your fields.</li>
  <li><strong>Number</strong>: A numeric input field with support for minimum and maximum values.</li>
  <li><strong>Text</strong>: Standard single-line text input for names, notes, or short data.</li>
  <li><strong>Link (URL)</strong>: A field for web addresses with automatic format validation.</li>
  <li><strong>Email</strong>: Ensures the customer enters a correctly formatted email address.</li>
  <li><strong>Textarea</strong>: Multi-line text input for longer descriptions or special instructions.</li>
  <li><strong>Radio</strong>: A list of options where the user can select only one.</li>
  <li><strong>Select</strong>: A dropdown menu for picking a single option from a list.</li>
  <li><strong>Checkbox</strong>: A single checkbox for binary choices or confirmations.</li>
  <li><strong>Date Picker</strong>: A calendar popup allowing users to select a specific date.</li>
  <li><strong>Date/Time</strong>: Allows users to select both a date and a time.</li>
  <li><strong>Date/Time with Time Zone</strong>: Specialized picker including time zone information.</li>
  <li><strong>Hidden</strong>: Passes data through the form that is not visible to the customer.</li>
  <li><strong>Color Picker</strong>: A visual tool for selecting colors from a palette.</li>
</ul>

<h3>⭐ Pro Add-Ons Field Types</h3>
<ul>
  <li><strong>Price (Money Field)</strong>: A dedicated field for prices that can modify the total cost.</li>
  <li><strong>Select Taxonomy</strong>: Dropdown menu populated with terms from your WordPress taxonomies.</li>
  <li><strong>Radio Taxonomy</strong>: Radio button selection based on your site's taxonomy terms.</li>
  <li><strong>Radio Taxonomy Inline</strong>: Displays taxonomy radio buttons in a horizontal line.</li>
  <li><strong>Radio Taxonomy Hierarchical</strong>: Shows taxonomy terms in an organized parent-child structure.</li>
  <li><strong>Multicheck</strong>: Allows users to select multiple options from a list of checkboxes.</li>
  <li><strong>Multicheck Taxonomy</strong>: Multi-selection checkboxes based on taxonomies.</li>
  <li><strong>Multicheck Taxonomy Inline</strong>: Horizontal list of checkboxes for taxonomy terms.</li>
  <li><strong>Multicheck Taxonomy Hierarchical</strong>: Nested checkbox list for complex taxonomies.</li>
  <li><strong>Country Selector</strong>: A searchable dropdown list of all countries.</li>
  <li><strong>File Upload</strong>: Enables customers to upload a single file with their order.</li>
  <li><strong>Multiple Files Upload</strong>: Allows users to attach multiple files at once.</li>
  <li><strong>WYSIWYG Editor</strong>: A rich text editor for formatted customer input.</li>
  <li><strong>Booking Calendar</strong>: Advanced calendar for scheduling appointments and slots.</li>
  <li><strong>Buy Now Button Field</strong>: Adds a quick purchase button within the field group.</li>
</ul>

---

✅ What You Can Do with This Plugin

<ul>
  <li>🧩 Add custom fields to WooCommerce product types (text, select, checkbox, radio)</li>
  <li>📄 Display product data before/after title, add-to-cart, price, or meta</li>
  <li>🧠 Create <strong>Custom Product Types</strong> with dedicated admin tabs</li>
  <li>🎨 Choose from <strong>4 built-in layout templates</strong> for the single product page</li>
  <li>🏷️ Apply custom badges per product type</li>
  <li>🧾 Add static structured data like instructor name, ticket ID, session time, etc.</li>
  <li>🔎 Use shortcodes: <code>[cwpt_products product_type="your_type"]</code></li>
  <li>🌐 Multilingual with WPML/Polylang</li>
  <li>🛒 Hide/show product types from shop/catalog</li>
  <li>🔒 Add user input fields (text, textarea, select, etc.) [Pro]</li>
  <li>🔒 Enable interactive booking calendars & date pickers [Pro]</li>
  <li>🔒 Add file upload, WYSIWYG, email, color picker fields [Pro]</li>
  <li>🔒 Create field-based pricing logic [Pro]</li>
</ul>


🆓 Free Features

<ul>
  <li>✅ Create unlimited custom product types</li>
  <li>✅ Move your custom product types between sites in just a few steps</li>
  <li>✅ Add custom WooCommerce admin tabs with fields</li>
  <li>✅ Choose field display locations (before/after title, price, cart, meta)</li>
  <li>✅ Field types: Text, Textarea, Select, Radio, Checkbox</li>
  <li>✅ 4 Single product page layout templates</li>
  <li>✅ Product badge support per product type</li>
  <li>✅ Shortcode: <code>[cwpt_products product_type="your_type"]</code></li>
  <li>✅ Show/hide product types from shop/catalog</li>
  <li>✅ Custom taxonomy support</li>
  <li>✅ WPML and Polylang compatible</li>
  <li>✅ Works with all WooCommerce payment gateways</li>
</ul>


💎 Premium Add-On Features

<p>Unlock advanced control over your product types with the Pro version:</p>

<ul>
  <li>🔓 Advanded WooCommerce Product Add-Ons Options & Extras</li>
  <li>🔓 Interactive Booking Calendar and Date Picker</li>
  <li>🔓 File Upload, Email, URL, and WYSIWYG fields</li>
  <li>🔓 Color Picker and Taxonomy-based fields (radio/select)</li>
  <li>🔓 Field pricing logic per selection</li>
  <li>🔓 More Advanced Layouts</li>
  <li>🔓 Buy Now Button field for fast checkout.</li>
</ul>

👉 <a href="https://wpsaad.com/product/custom-product-type-for-woocommerce/" target="_blank"><strong>Upgrade to PRO</strong></a>

---

🧠 Popular Use Cases

<ul>
  <li>📚 <strong>Books</strong>: Show author name, ISBN, edition, or series</li>
  <li>🎟️ <strong>Event Tickets</strong>: Show date, seat category, meal preference</li>
  <li>🎓 <strong>Courses</strong>: Display session type, instructor, language, duration</li>
  <li>🔧 <strong>Services</strong>: Add service details, duration, or booking slots</li>
  <li>🍱 <strong>Food Orders</strong>: Display ingredients, allergens, or category</li>
</ul>

<h3>== Upgrade to Pro ==</h3>
<p><strong>Unlock custom product workflows with booking fields, pricing logic, file uploads, WYSIWYG, and more advanced field types.</strong></p>
<p><a href="https://wpsaad.com/product/custom-product-type-for-woocommerce/" target="_blank">Upgrade to Pro</a></p>

== Demo & Tutorials ==
<ul>
  <li>🌐 <a href="https://cwpt-demo.wpsaad.com" target="_blank"><strong>Live Demo</strong></a></li>
  <li>📺 <a href="https://www.youtube.com/playlist?list=PLKz5hMvo0UjRAi5lP0i1faLbTzuagXgIe" target="_blank"><strong>YouTube Tutorials</strong></a></li>
</ul>

<p><strong>💡 Need Help?</strong><br>
👉 Get support on the <a href="https://wordpress.org/support/plugin/custom-product-type-for-woocommerce/" target="_blank">WordPress.org Support Forum</a><br>
👉 Access <a href="https://wpsaad.com/support/" target="_blank">Premium Support</a></p>
<p>🎥 <a href="https://www.youtube.com/@wpsaad" target="_blank">YouTube Channel</a></p>

<h3>== More by WPSaad ==</h3>
<ul>
  <li>🖼️ <a href="https://wordpress.org/plugins/alt-manager/">Image Alt Text Manager</a> – <a href="https://wpsaad.com/product/image-alt-text-manager-wordpress-plugin-for-images-seo/" target="_blank">Pro Version</a></li>
  <li>🚚 <a href="https://wordpress.org/plugins/shipping-manager-for-woocommerce/">Shipping Manager for WooCommerce</a> – <a href="https://wpsaad.com/product/shipping-manager-for-woocommerce/" target="_blank">Pro Version</a></li>
  <li>🧱 <a href="https://wordpress.org/plugins/wpsaad-addons-for-dokan-and-elementor/">WPSaad Addons for Dokan and Elementor</a> – <a href="https://wpsaad.com/product/wpsaad-addons-for-dokan-and-elementor/" target="_blank">Pro Version</a></li>
  <li>💲 <a href="https://wordpress.org/plugins/bulk-wholesale-dynamic-pricing-buttons-for-woocommerce/">Bulk Wholesale Dynamic Pricing Buttons</a> – <a href="https://wpsaad.com/product/bulk-wholesale-dynamic-pricing-buttons-for-woocommerce/" target="_blank">Pro Version</a></li>
  <li>⚙️ <a href="https://wordpress.org/plugins/product-add-ons-custom-fields-booking-extra-options-for-woocommerce/">Product Add-Ons, Custom Fields, Booking & Extra Options</a> – <a href="https://wpsaad.com/product/product-add-ons-custom-fields-booking-extra-options-for-woocommerce/" target="_blank">Pro Version</a></li>
</ul>

<h3>== Other Services ==</h3>
<ul>
  <li>🔧 <strong><a href="https://support.motkhases.com/%d8%a3%d9%81%d8%b6%d9%84-%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d8%b5%d9%85%d9%8a%d9%85-%d9%85%d9%88%d8%a7%d9%82%d8%b9-%d9%81%d9%8a-%d9%85%d8%b5%d8%b1-%d9%88%d8%a7%d9%84%d9%88%d8%b7%d9%86-%d8%a7%d9%84%d8%b9/" title="best web design company">WordPress Design & Development Services</a></strong></li>
  <li>⚙️ <strong><a href="http://support.motkhases.com/" title="WordPress Professional Support">WordPress Professional Support Services</a></strong></li>
</ul>

== Installation ==

<ol>
  <li>Upload the plugin files to <code>/wp-content/plugins/</code></li>
  <li>Activate the plugin through the 'Plugins' screen</li>
  <li>Go to WooCommerce → Product Types to start building</li>
</ol>


== Frequently Asked Questions ==
<dl>

<dt id="nocode"><h3><button formaction="#nocode">🛠️ Do I need coding knowledge?</button></h3></dt>
<dd><p>No. All fields and layouts are created visually from the admin.</p></dd>

<dt id="layout"><h3><button formaction="#layout">🖼️ Can I choose how data looks?</button></h3></dt>
<dd><p>Yes! Use one of 4 layout styles and choose placement locations (title, cart, meta, etc.).</p></dd>

<dt id="translate"><h3><button formaction="#translate">🌍 Does it support WPML or Polylang?</button></h3></dt>
<dd><p>Yes. It is fully translation-ready and supports WPML, Polylang, and Loco Translate.</p></dd>

<dt id="transfer"><h3><button formaction="#transfer">📦 Can I move product types to another site?</button></h3></dt>
<dd><p>Yes. You can move your custom product types to another site with ease.</p></dd>

<dt id="appointment"><h3><button formaction="#appointment">🛠️ Can I use this plugin to create appointment products?</button></h3></dt>
<dd><p>Yes. The Pro version includes date and time picker fields for booking or scheduling services.</p></dd>

<dt id="theme"><h3><button formaction="#theme">🎨 Will it work with my WooCommerce theme?</button></h3></dt>
<dd><p>Yes. It uses native WooCommerce hooks and is compatible with any properly coded theme.</p></dd>

<dt id="editable"><h3><button formaction="#editable">💬 Can customers enter values for fields in the free version?</button></h3></dt>
<dd><p>No. The free version displays admin-defined fields as static product data.
The Pro version enables interactive input fields on the frontend.</p></dd>

</dl>


== Screenshots ==
1. General Settings
2. Custom Tab And Fields
3. Addons and Options
4. Single product page custom tab and data
5. Front product page addons and options


== Changelog ==
= 1.4.0 =
* Fixed URL Field
* New Front Data Styling
= 1.3.9 =
* Refactored structure.
* Addons Fields tab feature added
* Added Number Field in admin tab and addons
= 1.3.8 =
* Added PRO Layout 5
* Added PRO Buy Now Button
= 1.3.7 =
* Fixed product type selector
= 1.3.5 =
* Added polylang integeration
* Fixed class retrive in sync
= 1.3.4 =
* Metabox Removed
* Fixed Calendar Issue
* Fixed custom WooCommerce single product layout issues
= 1.3.3 =
* Added Custom WooCommerce Product Layouts feature
= 1.3.2 =
* Converted classes generator to inline code
= 1.3.1 =
* Added Required Asterisk
= 1.3.0 =
* Admin tab and fields pro to free
* Added product addons and booking field
= 1.2.4 =
* Added group div container
