Breaking News
Home » Ecommerce News » How to install Magento 2 order upload extension

# How to install Magento 2 order upload extension

There are a lot of factors that will influence the purchasing decision of a customer, but the very first one is they want to understand thoroughly about what they are going to buy. With online shopping, the product description isn’t enough to better explain the product features and functionality, orders need to be provided with additional information, screenshots, logos, designs, mockups, docs, manuals, instructions, invoices etc. However, one problem appears that is their websites might not support the extension of providing all the details and uses of the product. That’s the reason why Magento 2 order upload should be integrated into the website. This Magento 2 extension allows users to upload a lot of files at the same time. We had introduced the outstanding features of this item in several posts, in this article, we will focus on how can you install it by yourself. Here we go:

There are 5 steps for you:

Step 1: Unzip package

After buying this product, in the download file you unzip it and you will see it includes:

You unzip the file named nbm_mag2_orderupload_1.0.0.zip.

After that, you will see a folder

Step 2: Install

You copy folder achieved in the first step into your root Magento folder.

Step 3: Integrate

You have to integrate below code to show Order Upload:

• Show orderupload in the detail page:
In the end of file:
..\vendor\magento\module-catalog\view\frontend\templates\product\view\details.phtml
You insert this code:
<? php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$uploadHelper = $objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’); echo$uploadHelper->showOrderUploadDetailPage();
?>
• Show orderupload in checkout/cart page:
• In the file:
..\vendor\magento\module-checkout\view\frontend\templates\cart\item\default.phtml
Insert this code:
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$uploadHelper = $objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’); echo$uploadHelper->showOrderUploadOnCheckoutPage($_item); ?> • After the code: <? php$addInfoBlock = $block->getProductAdditionalInformationBlock(); ?> <? php if ($addInfoBlock): ?>
<? php echo $addInfoBlock->setItem($_item)->toHtml() ?>
<? php endif;?>
• Show orderupload on sale/view frontend:
In the file:
..\vendor\magento\module-sales\view\frontend\templates\order\items\renderer\default.phtml
Insert this code:
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$uploadHelper = $objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’); echo$uploadHelper->showOrderUploadOnSaleViewPageFrontend($_item); ?> below this code: <?php$addtInfoBlock = $block->getProductAdditionalInformationBlock(); ?> <?php if ($addtInfoBlock) :?>
<?php echo $addtInfoBlock->setItem($_item)->toHtml(); ?>
<?php endif; ?>
<?php echo $block->escapeHtml($_item->getDescription()) ?>
In the file:
..\vendor\magento\module-bundle\view\frontend\templates\sales\order\items\renderer.phtml
Insert above code after:
<strong class=”product name product-item-name”><?php echo $block->escapeHtml($_item->getName()) ?></strong>
Magento version 2.0.x
In the file:
Copy this code:
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$uploadHelper = $objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’); echo$uploadHelper->showOrderUploadOnSaleViewPageBackend($_item); ?> after this code: <?php echo$block->getColumnHtml($_item, ‘name’) ?> <?php if ($block->canDisplayContainer()): ?>
</div>
<?php endif ?>
Magento version 2.1.x:
In the file:
Copy this code:
<?php
if($columnName == “product”) { /* integrate order upload */$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$uploadHelper =$objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’);
echo $uploadHelper->showOrderUploadOnSaleViewPageBackend($_item);
}
?>
above: </td>
And
In the file:
Copy this code:
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();$uploadHelper = $objectManager->get(‘\Netbaseteam\Orderupload\Helper\Data’);echo$uploadHelper->showOrderUploadOnSaleViewPageBackend($_item); ?> below: <?php echo$block->escapeHtml(\$_item->getName()) ?>

• Go to your root magento folder -> bin by Commandline
• From command window, you write: php magento setup:upgrade
• Then, From command window, you write: php magento setup:static-content:deploy

Step 5: Clean cache

In admin panel, go to System -> Cache Management

In Mass Actions category, you choose “Select All” and then click on “Submit” button right on the Top of the table.

That’s all about the installation process, easy and simple, right? We hope you can install it quickly by yourself and if you want, our support team also has this Magento 2 order upload extension installed. Bringing you the best product and service is our pleasure. Hope you find this article helpful.

## How Ecommerce web design trends would be in 2018?

We are in the last days of 2017, we bet that it has been a …

CLOSE