Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to look at the current version, PrestaShop 8. Read the current version of the documentation
Page can be reached by visiting Shipping -> Carriers -> Add new carrier
in the admin panel or also by clicking on the Edit
button in the carriers listing.
It allows the Back Office user to edit or create a new carrier.
This form is divided in 3 sub-forms. Each sub-form as a different purpose:
The related code of this main form can be found in following locations:
.ts
files are the develop
version prior compiling. See “How to compile assets” for more information.)AddCarrierCommand
to create a new carrier, EditCarrierCommand
to update an existing carrier and SetCarrierRangesCommand
to set the carrier ranges.When you enter the page, first thing you will notice is the General settings
tab, where you can set the carrier name, logo, tracking URL, etc.
The definition of this form can be found in src/PrestaShopBundle/Form/Admin/Improve/Shipping/Carrier/GeneralSettings.php.
This tab allows you to set the carrier zones, countries, prices, free shipping, etc.
The definition of this form can be found in src/PrestaShopBundle/Form/Admin/Improve/Shipping/Carrier/ShippingLocationsAndCostsType.php.
All the behavior of this tab is managed by carrier-form-manager.ts
file, that is located in admin-dev/themes/new-theme/js/pages/carrier/form/carrier-form-manager.ts.
When you click on the Edit ranges
button, this modal is showing:
This modal is a VueJs component CarrierRangesType
, that is defined in src/PrestaShopBundle/Form/Admin/Improve/Shipping/Carrier/Type/CarrierRangesType.php and in admin-dev/themes/new-theme/js/pages/carrier/form/components/CarrierRangesModal.vue.
In function of ranges and zones selected, the user can input the price for each range by zone for this carrier:
This tab allows you to set the carrier size and weight restrictions.
The definition of this form can be found in src/PrestaShopBundle/Form/Admin/Improve/Shipping/Carrier/SizeWeightSettings.php.