Plugin Directory

Changeset 3318161


Ignore:
Timestamp:
06/26/2025 10:18:33 AM (8 months ago)
Author:
tsplugins
Message:

Added woocommerce integration

Location:
invoice-generator
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • invoice-generator/trunk/invoice-generator.php

    r3306362 r3318161  
    44 * Plugin URI:        https://oplugins.com
    55 * Description:       Generate invoices and download them as PDFs without a database.
    6  * Version:           1.0.6
     6 * Version:           1.0.7
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
     
    1717
    1818require_once INGEN_DIR_PATH . 'includes/generate-invoice-pdf-from-data.php';
    19 
     19require_once INGEN_DIR_PATH . 'includes/woo-integration.php';
    2020
    2121add_action('admin_menu', 'ingen_add_admin_menu');
    2222add_action('admin_enqueue_scripts', 'ingen_enqueue_assets');
    2323add_action('wp_ajax_ingen_generate_pdf', 'ingen_generate_pdf');
     24add_action('woocommerce_order_status_completed', 'ingen_generate_invoice_for_order');
    2425
    2526
     
    203204    <p id="invoice-message" class="mt-4"></p>
    204205
    205    <div class="mt-8 mb-8 text-center text-sm text-gray-500">
    206        <p>
    207            <a style="padding:0 10px" href="mailto:[email protected]?subject=Invoice%20Tool%20Help" class="text-blue-600 hover:underline">
    208                <?php esc_html_e( 'Contact support', 'invoice-generator' ); ?>
    209            </a> |
    210            <a style="padding:0 10px" href="mailto:[email protected]?subject=Feature%20Request%20for%20Invoice%20Tool" class="text-blue-600 hover:underline">
    211                <?php esc_html_e( 'Request a new feature', 'invoice-generator' ); ?>
    212            </a> |
    213            <a style="padding:0 10px" href="mailto:[email protected]?subject=Bug%20Report%20for%20Invoice%20Tool" class="text-blue-600 hover:underline">
    214                <?php esc_html_e( 'Report a bug', 'invoice-generator' ); ?>
    215            </a>
    216        </p>
    217    </div>
     206 <div class="mt-8 mb-8 text-center text-sm text-gray-500">
     207     <p>
     208         <a style="padding:0 10px" href="mailto:[email protected]?subject=Invoice%20Tool%20Help" class="text-blue-600 hover:underline">
     209             <?php esc_html_e( 'Contact support', 'invoice-generator' ); ?>
     210         </a> |
     211         <a style="padding:0 10px" href="mailto:[email protected]?subject=Feature%20Request%20for%20Invoice%20Tool" class="text-blue-600 hover:underline">
     212             <?php esc_html_e( 'Request a new feature', 'invoice-generator' ); ?>
     213         </a> |
     214         <a style="padding:0 10px" href="mailto:[email protected]?subject=Bug%20Report%20for%20Invoice%20Tool" class="text-blue-600 hover:underline">
     215             <?php esc_html_e( 'Report a bug', 'invoice-generator' ); ?>
     216         </a>
     217     </p>
     218 </div>
    218219
    219220</div> <?php
  • invoice-generator/trunk/readme.txt

    r3306362 r3318161  
    11=== Simple Invoice Generator ===
    22Contributors: tsplugins
    3 Tags: invoice, pdf, generator, invoice generator, invoice-generator
     3Tags: invoice, generator, invoice generator, invoice-generator, woocommerce
    44Requires at least: 5.2
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Generate beautiful PDF invoices from the WordPress admin panel. No database needed — all data is handled in-browser.
     11Generate beautiful PDF invoices from the WordPress admin panel — and with full WooCommerce integration! No database needed — all data is handled in-browser or on the fly.
    1212
    1313== Description ==
    1414
    15 Invoice Generator is a lightweight WordPress plugin for generating PDF invoices directly from the admin dashboard. It allows you to:
     15**Simple Invoice Generator** is a lightweight, easy-to-use WordPress plugin for generating PDF invoices. It also includes powerful **WooCommerce support**, allowing automatic invoice generation when customers complete an order.
    1616
     17🎉 **In 1.0.7 — WooCommerce Integration!**
     18Automatically generate and attach a PDF invoice when a WooCommerce order is placed (e.g. after checkout or when an order is marked as completed).
     19You can also view and download the generated invoice directly from the order admin screen.
     20
     21### Core features:
    1722- Input invoice details (bill from / to, items, prices, tax, currency, etc.)
     23- Automatically generates WooCommerce order invoices with proper customer data
    1824- Choose between two built-in PDF styles: **Standard** and **Blue Accent**
    1925- Upload a custom logo to display on the invoice
     
    2127- All done without storing anything in the database
    2228
    23 Great for freelancers, small businesses, or anyone who wants a fast way to generate invoices without complex setup.
     29Great for freelancers, small businesses, or WooCommerce shops needing a simple invoice workflow!
    2430
    2531== Installation ==
     
    27331. Upload the plugin files to the `/wp-content/plugins/invoice-generator` directory, or install the plugin through the WordPress Plugins screen directly.
    28342. Activate the plugin through the 'Plugins' menu in WordPress.
    29 3. Navigate to the **Invoice Generator** section in the admin menu to begin creating invoices.
     353. Navigate to the **Invoice Generator** section in the admin menu to begin creating invoices manually.
     364. (Optional) To use WooCommerce integration, simply have WooCommerce active — no extra setup required.
    3037
    3138== Usage ==
    3239
     40🧾 **Manual Invoice Creation**
    33411. Go to the **Invoice Generator** menu item in your admin panel.
    34422. Fill in invoice details: invoice number, dates, billing info, line items, currency, and tax.
     
    36444. Select your preferred template style: **Standard** or **Blue Accent**.
    37455. Click **Generate Invoice** to create and download your PDF.
    38 6. Use the **Reset** button to clear the form if needed.
     46
     47🛒 **WooCommerce Invoices**
     48- When a WooCommerce order is completed (or placed), an invoice is automatically generated.
     49- You’ll see the **Invoice PDF** download link directly inside the WooCommerce order admin panel.
     50- The generated invoice uses the order’s billing data, products, prices, currency, and tax details.
    3951
    4052== Frequently Asked Questions ==
    4153
    4254= Does this plugin store data in the database? =
    43 No. This plugin is purely frontend-driven and does not persist any invoice data in the database.
     55No. This plugin is purely frontend-driven for manual invoices. For WooCommerce orders, the generated PDF link is saved as order meta only.
    4456
    45 = Can I send invoices via email? =
    46 Not yet. Currently, the plugin only generates and downloads PDF files locally. Email integration may be added in the future.
    47 
    48 = Can I customize the PDF layout? =
    49 At this moment, the PDF generation is based on static HTML and styles. Advanced customization is possible by editing the template in the plugin code (coming soon).
     57= Is WooCommerce required? =
     58No, WooCommerce is optional. But if WooCommerce is active, the plugin will auto-enable invoice generation for orders.
    5059
    5160== Screenshots ==
    52 1. Page of **invoice generator** form in WP admin panel.
    53 2. Example of generated PDF invoice.
     61
     621. **Invoice form in admin panel** – Easy-to-use invoice editor directly in the WordPress admin area.
     632. **Generated PDF in Standard style** – A clean, professional invoice layout without logo.
     643. **Generated PDF in Blue Accent style** – An alternative layout with bold styling and accent color.
     654. **Standard PDF with logo** – Example of a branded invoice using the Standard template with a custom logo.
     665. **Blue Accent PDF with logo** – Example of a branded invoice using the Blue Accent template and logo.
     676. **WooCommerce admin view** – Invoice PDF download link inside a WooCommerce order in the WordPress admin.
     687. **WooCommerce customer view (Checkout)** – Downloadable invoice link shown to the customer after placing an order.
     69
    5470
    5571== Changelog ==
     72
     73= 1.0.7 =
     74* Full WooCommerce integration!
     75* Auto-generates invoices for WooCommerce orders (on checkout or order completion)
     76* Shows download link in WooCommerce order admin screen
     77* Stores PDF link as order meta
    5678
    5779= 1.0.6 =
     
    7193
    7294= 1.0.1 =
    73 * Update styles and data pickr.
     95* Update styles and data pickr
    7496
    7597= 1.0.0 =
     
    78100== Upgrade Notice ==
    79101
    80 = 1.0 =
    81 Initial stable version. No database required, pure frontend-based invoice generation.
     102= 1.0.7 =
     103Big update: WooCommerce support added! Automatically generate and view PDF invoices for orders.
    82104
    83105== License ==
Note: See TracChangeset for help on using the changeset viewer.