Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 11 Question 46 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 46
Topic #: 11
[All AD0-E716 Questions]

A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.

What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

To display the 'file upload' field and process the actual CSV import, the following two requirements must be met:

The developer must create a new system configuration setting that specifies the path to the CSV file.

The developer must create a new controller action that handles the file upload and import process.

The system.xml file is used to define system configuration settings. The following XML snippet shows how to define a new system configuration setting for the CSV file path:

XML

<config>

<system>

<config>

<shipment_fees_csv_path>/path/to/csv/file</shipment_fees_csv_path>

</config>

</system>

</config>

The ControllerAdminhtmlShipmentFees controller class is used to handle the file upload and import process. The following code shows how to create a new controller action that handles the file upload and import process:

PHP

public function uploadAction()

{

$file = $this->getRequest()->getFile('shipment_fees_csv_file');

if ($file->isUploaded()) {

$importer = new ShipmentFeesImporter();

$importer->import($file);

}

return $this->redirect('adminhtml/system_config/edit/section/shipment_fees');

}


Contribute your Thoughts:

Denise
4 days ago
Definitely need the file upload field and the actual CSV import functionality. This is crucial for the logistics company to update their shipment fees.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77