Rearrange the sections in the print label of Giao Hàng Tiết Kiệm.
Rearrange the sections in the print label from free size to A7 size.
Before
After
You can cusomize the logo on the print label
You just add param logo=link_logo in the params on the URL
http://localhost:3000/?logo=https://i.imgur.com/9QX3X5X.png&hash=ey....
-
Step 1: Clone the repository:
git clone https://github.com/namhong1412/print-label-a7-size-ghtk
-
Step 2: Navigate to the project directory
cd print-label-a7-size-ghtk
-
Step 3: Install the project dependencies using npm
npm install
To start the project, use the following command:
npm start
This will run the project and you should see the output in the console or a web server running at http://localhost:3000 (or another specified port).
Notes: Before using this feature, You must log in to Giao Hàng Tiết Kiệm.
-
Step 1: Login to Giao Hàng Tiết Kiệm
-
Step 2: Install Requestly extension on Chrome. Using file requestly_rules.json to import on Requestly.
[ { "createdBy": "BbW6T55UJMSZlsriKYMv91KrKJ02", "creationDate": 1674877521855, "currentOwner": "BbW6T55UJMSZlsriKYMv91KrKJ02", "description": "", "groupId": "", "id": "Redirect_8fpja", "isSample": false, "lastModifiedBy": "BbW6T55UJMSZlsriKYMv91KrKJ02", "modificationDate": 1680711282934, "name": "GHTK App Redirect", "objectType": "rule", "pairs": [ { "destination": "http://localhost:3000/custom_print.js", "id": "6ospn", "source": { "key": "Url", "operator": "Matches", "value": "/https://khachhang.giaohangtietkiem.vn/web/js/app.(.*).js$/i" } } ], "preserveCookie": false, "ruleType": "Redirect", "status": "Active" } ]
-
Step 3: Open Giao Hàng Tiết Kiệm and print label.
While this product has imperfections, I eagerly anticipate contributions from other skilled individuals in the developer community.
We welcome pull requests. However, if you plan on making significant changes, please initiate an issue to discuss your proposed modifications first.
It is essential to ensure that tests are updated as needed.