gridExport Product, Order, Invoice, Shipment, Credit …...Unpack the extension into Your Magento®...
Transcript of gridExport Product, Order, Invoice, Shipment, Credit …...Unpack the extension into Your Magento®...
gridExportProduct, Order, Invoice, Shipment, Credit Memo
for Magento®2
gridExport
INSTALLATION
Installation via Magento® Marketplace
For more details about installing custom modules see
http://docs.magento.com/marketplace/user_guide/quick-
tour/install-extension.html
Manual Installation (Installation from a Zip file)
Unpack the extension into Your Magento® 2 Directory
/app/code folder. See the screenshot below as an example.
Open up command prompt Navigate to Magento® 2 root
directory and run the following commands:
sudo –uwww-data bin/magento setup:upgrade
sudo –uwww-data bin/magento cache:clean
For more details about installing custom modules check
http://devdocs.magento.com/guides/v2.0
General Settings
Enabled
Activate the extension
License
Add your license key
For each type
Enabled
Activate the type
Show Default Print Button
You can disable the default export button.
.
Profiles
You can see all profiles for all types of grids.
Button Add New
To add a new Profile, click on the Add New button.
Edit Action
Click “Edit” Action Button to edit profile.
New Profile
Creating new profile from scratch or import profile.
Download templates, macros and samples.
Extension website.(https://snm-portal.com/magento2-grid-export-and-report.html)
Edit Profile - General
Fill the input fields with your requirements.
Edit Profile - Option
Image Dimension: For export images to Excel2007
Show Header Line: Output the first line with the field
names.
First data Row: Specifies the line to be output from.
Edit Profile - Columns
Name: Here you can define your own column name.
Format, Option, Pivot:
For information on these fields, see the Help section in the
website and the next pages on this documentation.
Edit Profile – Columns / Format
Format Description Default Example for Option
Standard The display is determined by the data type.
Images are displayed as embedded images.
(Excel2007 and HTML)
Text All values are output as text
Date Output as date yyyy-mm-dd h:mm:ss format=dd.mm.yy
Price Output as number #,##0.00 format=#.##0,00
Number Output as number 0.00 format=0,00
URL Output as SHOP-URL
Options Output as select/multiselect list with option list seperator=|;2=red;3=blue
User Defined Excel formula (only Excel 2007) value='=IF( INDIRECT("C"&ROW()) > 100, "ok","buy")'
Edit Profile – Columns / Option
Format Option Description
Options 21=lightpink;22=blue;49="=black;";23=green; Escape values with quotes
Options paypal_standard=PayPal;paypal_express=PayPal Express; Map the result
User Defined value=Test Set cell to 'Test'
User Defined value='=IF( "[VALUE]" > 100, "ok","bed")' Replace the [VALUE] with the current value
Date format=dd.mm.yyyy (hh:mm:ss) Result example 01.01.2000 (12:00:00)
Number format=0.000 Result is a number with three decimal places
Edit Profile – Pivot Table
Edit Profile – Pivot Table
Define the data for the rows and
columns.
Aggregator value for the
aggregator function.
For example: “Grand Total” for the
function “SUM”. Total over all
“Grand Total”
Edit Profile – Pivot Table Result
After export you can edit the pivot table
data and export as image.
Edit Profile – Formulas
Here you can define special Excel formula. The result is visible in all output formats,
also in CSV, HTML.
Cell: Excel Cell-Definition
Value: static text or excel formula, for more information see Microsoft excel
documentation
Examples:
Cell A[LASTROW] Last data row in column A
Value =TODAY() The date of today
Edit Profile – Conditional Formatting
The conditional formatting is only visible in the output format "Excel
2007".
Column Description Example
Type Value:
The cell is interpreted
as a number.
Text:
The cell is interpreted
as a text.
Operator Your operator BETWEEN
Cell Excel coding for a C:C
cell range
Value 1 Your value 10
Value 2 Only for operator
"BETWEEN" 20
Style Select foreground or
background color
Style Option Define color value FFFF0000
AARRGGBB (100% Alpha, Red)
Command Line
#bin/magento snm:grid:export -o "base:" -f '{"qty":{"from":0,"to":9999}}' -s'{"field":"qty","direction":"desc"}' 1
Exporting profile ID 1.
Export for profile ID 1 completed. Check "Execution Log" for detailed results.
Finished command.
Export your profiles from command line.
snm:grid:export [-f|--filter[="..."]] [-s|--sorting[="..."]] [-o|--output[="..."]] profile
-f|--filter: you can add a filter for grid fields
-f '{"qty":{"from":0,"to":9999}, “sku":“ed"}'
-s|--sorting: Sorting option
-s'{"field":"qty","direction":"desc"}
Profile: Profile Magento-Id
Thank you!
Should you have any questions or feature
suggestions, please contact us at:
Email: [email protected]
Website: snm-portal.com
Demo: m2demo.snm-portal.com/snm
Username: demo PW: demo123
SNM-Portal Team