-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show base prices for all options
- Loading branch information
1 parent
f0e7ad4
commit e393561
Showing
33 changed files
with
530 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
} | ||
|
||
&__d-block { | ||
display: block; | ||
display: block !important; | ||
} | ||
|
||
&__w-100 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as CARRIERS from '@/data/keys/carrierKeys'; | ||
import * as CONFIG from '@/data/keys/configKeys'; | ||
|
||
/** | ||
* All settings are enabled by default, this object is used to turn off settings individually. | ||
* | ||
* @type {Object<MyParcel.CarrierName, Object>} | ||
*/ | ||
export const defaultCarrierConfig = { | ||
[CARRIERS.POSTNL]: { | ||
[CONFIG.ALLOW_SATURDAY_DELIVERY]: false, | ||
}, | ||
[CARRIERS.BPOST]: { | ||
[CONFIG.ALLOW_MORNING_DELIVERY]: false, | ||
[CONFIG.ALLOW_EVENING_DELIVERY]: false, | ||
[CONFIG.ALLOW_MONDAY_DELIVERY]: false, | ||
[CONFIG.ALLOW_ONLY_RECIPIENT]: false, | ||
[CONFIG.ALLOW_SIGNATURE]: false, | ||
[CONFIG.ALLOW_PICKUP_EXPRESS]: false, | ||
}, | ||
[CARRIERS.DPD]: { | ||
[CONFIG.ALLOW_MORNING_DELIVERY]: false, | ||
[CONFIG.ALLOW_EVENING_DELIVERY]: false, | ||
[CONFIG.ALLOW_MONDAY_DELIVERY]: false, | ||
[CONFIG.ALLOW_ONLY_RECIPIENT]: false, | ||
[CONFIG.ALLOW_PICKUP_EXPRESS]: false, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/** @type {MyParcel.CarrierName} */ | ||
export const POSTNL = 'postnl'; | ||
|
||
/** @type {MyParcel.CarrierName} */ | ||
export const DPD = 'dpd'; | ||
|
||
/** @type {MyParcel.CarrierName} */ | ||
export const BPOST = 'bpost'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
import * as SETTINGS from '@/data/keys/configKeys'; | ||
import * as CARRIERS from '@/data/keys/carrierKeys'; | ||
import * as CONFIG from '@/data/keys/configKeys'; | ||
import { DEFAULT_MAX_PAGE_ITEMS, DEFAULT_PRICE } from '@/data/keys/settingsConsts'; | ||
import { getDefaultCarrierConfig } from '@/delivery-options/data/carriers/getDefaultCarrierConfig'; | ||
|
||
export const config = { | ||
[SETTINGS.LOCALE]: 'nl-BE', | ||
[CONFIG.LOCALE]: 'nl-BE', | ||
|
||
[SETTINGS.ALLOW_SATURDAY_DELIVERY]: true, | ||
[SETTINGS.PRICE_SATURDAY_DELIVERY]: DEFAULT_PRICE, | ||
[SETTINGS.FRIDAY_CUTOFF_TIME]: '15:00', | ||
[CONFIG.ALLOW_SATURDAY_DELIVERY]: true, | ||
[CONFIG.PRICE_SATURDAY_DELIVERY]: DEFAULT_PRICE, | ||
[CONFIG.FRIDAY_CUTOFF_TIME]: '15:00', | ||
|
||
/** | ||
* BE pickup location distance is not based on the customer's address but to the center of the city so the distance is | ||
* mostly irrelevant. | ||
*/ | ||
[SETTINGS.FEATURE_PICKUP_SHOW_DISTANCE]: false, | ||
[CONFIG.FEATURE_PICKUP_SHOW_DISTANCE]: false, | ||
|
||
/** | ||
* For the same reason as above, prefer the map view to the list view. | ||
*/ | ||
[SETTINGS.FEATURE_PICKUP_LOCATIONS_DEFAULT_VIEW]: true, | ||
[CONFIG.FEATURE_PICKUP_LOCATIONS_DEFAULT_VIEW]: true, | ||
|
||
/** | ||
* Show more pickup items by default for BE because it doesn't show the distance. | ||
*/ | ||
[SETTINGS.FEATURE_MAX_PAGE_ITEMS]: DEFAULT_MAX_PAGE_ITEMS, | ||
[CONFIG.FEATURE_MAX_PAGE_ITEMS]: DEFAULT_MAX_PAGE_ITEMS, | ||
|
||
[SETTINGS.CARRIER_SETTINGS]: { | ||
bpost: { | ||
[SETTINGS.ALLOW_DELIVERY_OPTIONS]: true, | ||
[SETTINGS.ALLOW_PICKUP_LOCATIONS]: true, | ||
}, | ||
dpd: { | ||
[SETTINGS.ALLOW_DELIVERY_OPTIONS]: true, | ||
[SETTINGS.ALLOW_PICKUP_LOCATIONS]: true, | ||
}, | ||
[CONFIG.CARRIER_SETTINGS]: { | ||
...getDefaultCarrierConfig(CARRIERS.BPOST), | ||
...getDefaultCarrierConfig(CARRIERS.DPD), | ||
...getDefaultCarrierConfig(CARRIERS.POSTNL, { | ||
[CONFIG.ALLOW_MONDAY_DELIVERY]: false, | ||
[CONFIG.ALLOW_SATURDAY_DELIVERY]: false, | ||
[CONFIG.ALLOW_MORNING_DELIVERY]: false, | ||
[CONFIG.ALLOW_EVENING_DELIVERY]: false, | ||
[CONFIG.ALLOW_PICKUP_EXPRESS]: false, | ||
}), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import * as CARRIERS from '@/data/keys/carrierKeys'; | ||
import * as CONFIG from '@/data/keys/configKeys'; | ||
import { getDefaultCarrierConfig } from '@/delivery-options/data/carriers/getDefaultCarrierConfig'; | ||
|
||
export const config = { | ||
[CONFIG.LOCALE]: 'nl-NL', | ||
[CONFIG.ALLOW_MONDAY_DELIVERY]: true, | ||
[CONFIG.SATURDAY_CUTOFF_TIME]: '16:00', | ||
|
||
[CONFIG.CARRIER_SETTINGS]: { | ||
[CARRIERS.POSTNL]: { | ||
[CONFIG.ALLOW_DELIVERY_OPTIONS]: true, | ||
[CONFIG.ALLOW_PICKUP_LOCATIONS]: true, | ||
}, | ||
...getDefaultCarrierConfig(CARRIERS.POSTNL), | ||
}, | ||
}; |
Oops, something went wrong.