Skip to content

coralsio/quote2order

Repository files navigation

Quote2Order - Magento 2 Extension

πŸ‡΅πŸ‡Έ Free Palestine πŸ‡΅πŸ‡Έ

This extension is dedicated to the people of Palestine. We stand in solidarity with those fighting for freedom and justice.

Support Palestine: Consider donating to organizations providing humanitarian aid:


Overview

The ** Quote2Order** extension is a powerful Magento 2 module that enables seamless conversion of quotes to orders through the admin panel. This free community extension streamlines the order management process by providing administrators with easy-to-use tools for converting customer quotes into actual orders.

Features

🎯 Core Features

  • Quote to Order Conversion: Convert customer quotes to orders with a single click
  • Bulk Conversion: Convert multiple quotes to orders simultaneously
  • Order Form Interface: User-friendly admin interface for order creation
  • Console Commands: Command-line tools for automated quote conversion
  • Smart Address Handling: Automatically fixes incomplete billing addresses using shipping information
  • Payment Method Assignment: Set payment methods during conversion
  • Order Status Management: Configure order status during creation
  • Email Notifications: Optional order confirmation emails
  • Duplicate Prevention: Prevents creating duplicate orders for the same quote

πŸ› οΈ Technical Features

  • Admin Grid Integration: Native Magento admin grid with quote listing
  • ACL Integration: Role-based access control for quote management
  • Logging: Comprehensive logging for troubleshooting
  • Error Handling: Robust error handling with meaningful messages
  • Extensible Architecture: Built with Magento 2 best practices

Installation

Method 1: Manual Installation

  1. Download or clone this repository

  2. Copy the extension files to your Magento installation:

    cp -r Quote2Order app/code/Corals/
  3. Enable the module:

    php bin/magento module:enable Corals_Quote2Order
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:flush

Method 2: Composer Installation

# Add to your composer.json repositories section
composer config repositories.corals-quote2order path app/code/Corals/Quote2Order

# Install the package
composer require corals/quote2order:*

# Enable and upgrade
php bin/magento module:enable Corals_Quote2Order
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Usage

Admin Panel Access

  1. Navigate to Sales > Quote2Order > Quotes in the Magento admin panel
  2. Browse available quotes in the grid
  3. Use the Actions column to:
    • View quote details
    • Convert individual quotes to orders
    • Access the order form for custom order creation

Bulk Operations

  1. Select multiple quotes using checkboxes
  2. Choose "Convert to Orders" from the Actions dropdown
  3. Click "Submit" to process all selected quotes

Console Commands

Convert quotes programmatically using the command line:

# Convert specific quotes by ID
php bin/magento quote2order:convert --quote-ids=1,2,3

# Convert all eligible quotes
php bin/magento quote2order:convert --all

# Convert with specific payment method
php bin/magento quote2order:convert --quote-ids=1,2 --payment-method=checkmo

# Convert with order status
php bin/magento quote2order:convert --quote-ids=1 --order-status=processing

# Send order emails after conversion
php bin/magento quote2order:convert --quote-ids=1 --send-email=1

API Usage

The extension provides service classes for programmatic use:

use Corals\Quote2Order\Service\QuoteToOrderConverter;

// Inject the service
public function __construct(
    QuoteToOrderConverter $quoteToOrderConverter
) {
    $this->quoteToOrderConverter = $quoteToOrderConverter;
}

// Convert single quote
$orderId = $this->quoteToOrderConverter->convertQuoteToOrder($quoteId);

// Convert with options
$orderOptions = [
    'payment_method' => 'checkmo',
    'order_status' => 'processing',
    'send_email' => true,
    'order_notes' => 'Converted from quote'
];
$orderId = $this->quoteToOrderConverter->convertQuoteToOrder($quoteId, $orderOptions);

// Convert multiple quotes
$results = $this->quoteToOrderConverter->convertMultipleQuotes([1, 2, 3]);

Configuration

Permissions

The extension uses Magento's ACL system. Configure user permissions under: System > Permissions > User Roles > Role Resources > Sales > Quote2Order

Menu Configuration

The admin menu is automatically added under: Sales > Quote2Order > Quotes

Requirements

  • Magento Version: 2.3.x - 2.4.x
  • PHP Version: 7.4+ (8.1+ recommended)
  • Required Modules:
    • Magento_Quote
    • Magento_Sales
    • Magento_Backend
    • Magento_Ui

File Structure

Quote2Order/
β”œβ”€β”€ Block/
β”‚   └── Adminhtml/
β”‚       └── Quote/
β”œβ”€β”€ Console/
β”‚   └── Command/
β”œβ”€β”€ Controller/
β”‚   └── Adminhtml/
β”‚       └── Quotes/
β”œβ”€β”€ Service/
β”‚   └── QuoteToOrderConverter.php
β”œβ”€β”€ Ui/
β”‚   └── Component/
β”œβ”€β”€ etc/
β”‚   β”œβ”€β”€ acl.xml
β”‚   β”œβ”€β”€ adminhtml/
β”‚   β”œβ”€β”€ di.xml
β”‚   └── module.xml
β”œβ”€β”€ registration.php
└── view/
    └── adminhtml/

Troubleshooting

Common Issues

  1. Quote has no items error

    • Ensure the quote contains products before conversion
  2. Quote has no customer email error

    • Verify the quote has a valid customer email address
  3. Permission denied

    • Check user role permissions for Quote2Order resources
  4. Order already exists

    • The extension prevents duplicate orders; this is expected behavior

Logging

Check logs for detailed error information:

  • var/log/system.log
  • var/log/exception.log

Contributing

This is a free community extension. Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Support

For community support and discussions:

  • Create an issue in the repository
  • Join Magento community forums
  • Check Magento Stack Exchange

License

This extension is released under the Open Source License for free community use.

Need Custom Magento Development? πŸš€

Looking for professional Magento 2 development services?

The team behind this extension specializes in custom Magento solutions. Whether you need:

  • Custom extension development
  • Store optimization and performance tuning
  • Third-party integrations
  • Migration services
  • Ongoing maintenance and support

Contact us at Corals

We specialize in Laravel platforms, PHP development, and modular web solutions for businesses of all sizes.


Free Palestine πŸ‡΅πŸ‡Έ

Remember those who fight for freedom. Every small action counts toward justice.

"Injustice anywhere is a threat to justice everywhere." - Martin Luther King Jr.


Version: 1.0.0
Author: Corals Development Team
Organization: https://github.com/coralsio
Website: https://corals.io
Location: Ramallah
Magento Compatibility: 2.3.x - 2.4.x
Release Date: 2025

Changelog

v1.0.0 (2025-01-01)

  • Initial release
  • Quote to order conversion functionality
  • Admin panel integration
  • Console commands
  • Bulk operations support
  • Smart address handling
  • Payment method configuration
  • Email notifications

About

seamless conversion of quotes to orders through the admin panel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published