Table of Content
- Extension Installation Guide
- Configuration
- Display Settings
- Product Specific Pre Order Settings
- Pre Order Products in Frontend
- Pre Order Details in Sales Orders Grid in Backend
- Pre Order Item Details in Order Confirmation Email to Customers
- For Magento Marketplace Customers
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento-2-pre-order --ignore-platform-reqs
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_PreOrder --ignore-platform-reqs
-
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
-
- php bin/magento module:enable Meetanshi_PreOrder --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- php bin/magento module:status Meetanshi_PreOrder --ignore-platform-reqs
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- Configuration
To configure the extension, login to Magento 2 backend, move to Stores à Configuration à Meetanshi à Pre Order, where you can find various settings to configure the extension.
- Pre Order: Enable Pre Order extension from here.
Note: The Pre Order extension basically works on default Magento backorder functionality and therefore pre order works only with in-stock products. Make sure that the product’s Stock Status is set to In Stock from Catalog > Products > Product edit, prior to using the extension.
- Allow Pre Orders for Products with Zero and Below Zero Qty:
- Yes: Set YES to allow pre orders only for the products with the 0 or below 0 quantity.
- No: If you set it to NO, pre orders will be allowed for the product quantities 1 or above only. This is useful when you want to allow pre orders only for the limited product quantities.
- Pre Order Quantity Limit Warning for Below Zero Qty: Enter text to show on the product page when there is not enough quantity of an ordered product and “Allow Pre Orders for Products with Zero and Below Zero Qty” is set to “No”. Here the '%1$s' is the product name and the '%2$s' is the available product qty.
- Disable Pre Order for Items with Qty above Zero:
- Yes: Set YES to allow pre orders for the items with quantity 0 and lower.
- Pre Order Quantity Limit Warning in Shopping Cart: Enter warning message to show when there is no enough quantity for the ordered items and “Disable Pre Order for Items with Qty above Zero” is set to Yes.
- No: If set to No, pre orders will only be allowed for the quantity 1 or higher.
- Yes: Set YES to allow pre orders for the items with quantity 0 and lower.
- Replace Add To Cart Button Text with: Enter add to cart button text to replace for pre order enabled products.
- Default Pre Order Note: Enter pre order note to show with all the pre order enabled products.
- Pre-Order Note Output Place: Specify the selector where you want to show the pre order note.
- Show Pre-Order Note on Category Pages: Select YES to show pre order note on category pages.
The extension facilitates to set product specific pre order button label. Go to Catalog > Products > Product edit > Advanced Inventory. Set “Pre Order Cart Button” and “Pre Order Note” particularly for this product.
Note: Make sure that the “Allow Pre Orders” option is selected under the “Backorder” option to let the extension work.
- Pre Order Products in Frontend
Once the extension is configured and pre order is enabled on the products, pre order products are shown in the frontend.
-
- Pre Order Enabled Products on Category Page
- Pre Order Enabled on Product Page
- Pre Order Details in Customer’s My Account Section
Immediately after an order is placed with a pre order items, pre order details is shown in customer’s my account section.
- Pre Order Details in Sales Orders Grid in Backend
Apart from the frontend, if an order is placed with a pre ordered item, the Sales > Orders > Pre Order column is shown with YES for the particular order.
- Error Message on Generating Shipment for Pre Ordered
Whenever the admin tries to generate shipment for a pre order with quantity is less than or equal to 0, it throws an error message stating shipment generation is only allowed after the products are back in stock.
- Shipment for Pre Ordered Products with Quantity Greater than Zero
Shipment is generated successfully whenever the admin tries to generate shipment for a pre order with quantity greater than 0.
- Pre Order Item Details in Order Confirmation Email to Customers
If an order contains a pre order enabled item, the order confirmation email shows pre order item details.