Coder Social home page Coder Social logo

mageplaza / magento-2-same-order-number Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 6.0 162 KB

Magento 2 Same Order Number Extension by Mageplaza allows store owners to easily create the ID of Invoice, Shipment and Credit Memo the same as the ID of the original Order. This will significantly contribute to a well-managed order information system.

Home Page: https://www.mageplaza.com/magento-2-same-order-number/

License: Other

PHP 100.00%
magento-2-extension mageplaza

magento-2-same-order-number's Introduction

Magento 2 Same Order Number Free Extension

Magento 2 Same Order Number Extension by Mageplaza allows store owners to easily create the ID of Invoice, Shipment and Credit Memo the same as the ID of the original Order. This will significantly contribute to a well-managed order information system.

Latest Stable Version Total Downloads

1. Documentation

2. FAQs

3. How to install Magento 2 Same Order Number Extension

  • Install via composer (recommend)

Run the following command in Magento 2 root folder:

With Marketing Automation (recommend):

composer require mageplaza/module-same-order-number mageplaza/module-smtp
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Without Marketing Automation:

composer require mageplaza/module-same-order-number
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

4. Highlight Features

Automatically same order ID update for billing documents

Magento 2 Same Order Number by Mageplaza helps create the ID number for billing documents, associated with the ID of the original order after customers purchase. Documents that are possible to be set with the same order number are Invoice, Shipment and Credit Memo.

Magento 2 Same Order Number

Automatically add the extra suffix

In case there are more than one Shipments, Invoices or Credit Memos for a single Order, the system will automatically create an extra suffix for the next shipments, start from the second one. For instance, Order ID is #100, the ID of Invoice will accordingly be #100, and from the next one, the ID of the second Invoice will be #100-1, the third will be #100-2, and so on.

Magento 2 Same Order Number extension

Billing documents united pack

The Invoice, Shipment and Credit Memo with the same increment IDs can be well displayed on the frontend. The united pack of billing documents allows both admin and customer to follow and track the order information easily and conveniently.

Magento 2 Same Order Number module

5. Full Magento 2 Same Order Number Features

For store owners

  • Enable/disable the module
  • Select billing documents (Shipment/Invoice/Credit Memo) to set ID according to the Order ID
  • Create an extra suffix for multiple billing documents of a single Order
  • Be compatible with any payment methods that create automated invoices
  • Work well with Mageplaza PDF Invoice

For customers

  • Easy to follow and manage the relationships among billing documents
  • View the record from the frontend, from the customer's login account.

6. Same Order Number User Guide

Login to your Magento Admin Panel, navigate to Store > Settings > Configuration > Mageplaza Extensions > Same Order Number.

same order number4

6.1. Same Order Number General Configuration

Magento 2 Same Order Number General Configuration

  • Enable: Select Yes to activate the extension
  • Apply for: Choose the billing documents to apply the extension. It is possible to apply to Invoice, Shipment and Credit Memo at the same time.
    • Apply to Shipment: ID increment of Shipment will be configured the same as ID of the Order. In case there are more than one Shipments for a single Order, the system will automatically create a following suffix for the next shipments, start from the second one. For instance, Order ID is #003, the ID of Shipment will accordingly be #003, and from the next one, the ID of Shipment will be in a format as follow: #003-1

Magento 2 Same Order Number Configuration

  • If you do not enable Same Order Number for Shipment ID, the ID of Shipment will be set as default.

    • Apply to Invoice: The ID of the Invoice will be set according to the Order ID.

      • Same Order Number is also possible to create Invoice ID automatically when purchasing via Paypal.

      • In case there are more than one Invoices for a single Order, ID of every next invoice will be added with an extra suffix. For example, when the ID of Order is Order #003, the Invoice ID will be #003 and the second Invoice will be #003-1.

Mageplaza Same Order Number

  • If you do not enable Same Order Number for Invoice ID, the ID of Invoice will be set as default.

    • Apply for Credit Memo: ID of Credit Memo will be set according to the Order ID. For Order that have more than one Credit Memos, ID of every next Credit Memo will be automatically added with a suffix. For example, ID of the Order is #003, ID of the Credit Memo will be #003, and the second Credit Memo ID will be #003-1.

Mageplaza Same Order Number for Magento 2

  • If you do not enable Same Order Number for Credit Memo ID, the ID of Credit Memo will be set as default.

6.2. Configuration for multi-stores

  • Stores will be set as Default Config.
  • To configure the extension for each store, go to Store View > Store. Next, uncheck the box Use Website of each option.
  • The configuration of each store will only be available right on that store, other stores are still unchanged.

6.3. Frontend

6.3.1. Invoice after being applied Same Order Number Extension:

Invoice after being applied Same Order Number Extension

6.3.2. Shipment after being applied Same Order Number Extension:

Shipment after being applied Same Order Number Extension

6.3.3. Credit Memo after being applied Same Order Number Extension:

Credit Memo after being applied Same Order Number Extension

Other free extension on Github

Get more Magento 2 extension on Marketplace:

magento-2-same-order-number's People

Contributors

desmond-mageplaza avatar haitv282 avatar haonv01 avatar imsamthomas avatar mpedward avatar rainy234 avatar victor-mageplaza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento-2-same-order-number's Issues

NOT PHP 8.1 compatible: passing null to parameter (explode deprecation)

Preconditions (*)

  1. Magento 2.4.5-p4
  2. PHP 8.1^
  3. /mageplaza/module-same-order-number (any version)

Steps to reproduce (*)

  1. Have magento 2 running on PHP 8.1
  2. Installed module-same-order-number via composer
  3. try to invoice an order

Expected result (*)

  1. Order invoices successfully
  2. no system log errors

Actual result (*)

  1. Order fails to invoice
  2. syslog displays:
    main.CRITICAL: Exception: Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/html/vendor/mageplaza/module-same-order-number/Helper/Data.php on line 45 in /home/html/vendor/magento/framework/App/ErrorHandler.php:62

Solution (*)

Modify /vendor/mageplaza/module-same-number/Helper/Data.php line 45

old:
$this->applyForOption = explode(',', $this->getConfigGeneral('apply', $storeId));

new:
$this->applyForOption = explode(',', (string)$this->getConfigGeneral('apply', $storeId));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.