How to override or customize WPCargo templates, Waybill , Label , Tracking Result and Package Details Template
Note:
This is applicable to all WPCargo add-ons. Through your cPanel or FTP:
If template is from wpcargo plugin this is the directory format: {child-theme}/wpcargo/{filename.tpl.php}
To find the original file directory always follow this. {plugins}/{plugin-folder}/templates/
1. Create a directory {child-theme}/wpcargo/{plugin-name}/{filename.tpl.php} in your current theme folder.
2. Copy the code from the original plugin template and paste it to the theme directory you have created.
3. You can now modify the modify the template for your changes.
Examples:
Tracking Result
Note: In this example we are using the WPCargo Pro Theme
In wpcargo plugin overriding the Tracking Result template.
- To find the result-form.tpl.php go to wpcargo > templates > result-form.tpl.php
- Create this path in your current theme. wpcargo > result-form.tpl.php
Package Details
In Frontend Manager plugin overriding the Package Details template.
- To find the file go to wpcargo-frontend-manager > templates > multiple-package.tpl.php
- Create this path in your current theme. wpcargo > wpcargo-frontend-manager > multiple-package.tpl.php
Label
In Frontend Manager plugin overriding the Label template.
Note:
- Use the filename label-packages.php if multiple shipment is enabled
- Use the filename label.php if multiple shipment is not enabled
- Alway put .tpl before the .php when overriding of printable templates.
- To find the file go to wpcargo-frontend-manager > templates > print > label.php
- Create this path in your current theme. wpcargo > label.tpl.php
Waybill
In wpcargo plugin overriding the Waybill template.
- To find the the file go to wpcargo > admin > templates > admin-print-label.tpl.php
Note: If you have wpcargo-frontend-manager plugin installed. Please follow this path
- To find the file go to wpcargo-frontend-manager > templates > print > waybill.php
Note: the file should have .tpl before the php file extention.
- Create this path in your current theme. wpcargo > waybill.tpl.php