๐ฆ BOX NOW Global Widget
The BOX NOW Global Widget provides an interactive map interface for displaying locker locations. This guide covers all configuration options and implementation methods.
๐ Widget Variantsโ
The widget is available in two implementation formats:
๐ผ๏ธ IFrame Integrationโ
https://map.boxnow.gr/iframe.html
Perfect for embedding directly into your webpage content.
๐ Popup Integrationโ
https://map.boxnow.gr/popup.html
Ideal for modal dialogs or overlay implementations.
โ๏ธ Configuration Parametersโ
๐ง Required Parametersโ
These parameters must be provided for the widget to function:
| Parameter | Type | Description | Example Values |
|---|---|---|---|
countryCode | String | Target country/countries | "gr", "bg,hr", "gr,bg,hr,cy" |
language | String | Display language | "gr", "bg", "en", "hr", "si" |
partnerId | String | Your partner identifier. Shows lockers for that partner's compartment size | "your-partner-id" |
๐บ๏ธ Country Codesโ
Support for multiple Balkan countries:
gr- Greece ๐ฌ๐ทbg- Bulgaria ๐ง๐ฌhr- Croatia ๐ญ๐ทcy- Cyprus ๐จ๐พsi- Slovenia ๐ธ๐ฎ
You can combine multiple countries: gr,bg,hr,cy,si
๐ Languagesโ
Available in local languages:
gr- Greekbg- Bulgarianhr- Croatiansi- Slovenianen- English
el is accepted as Greek and sl as Slovenian. cy is a country code; as a language it uses Greek.
๐๏ธ Optional Parametersโ
Enhance your widget with these optional configurations:
โฟ Accessibilityโ
| Parameter | Values | Default | Description |
|---|---|---|---|
a11y | "yes", "no" | "no" | Enables accessibility-friendly UI/UX |
๐บ๏ธ Map Displayโ
| Parameter | Values | Default | Description |
|---|---|---|---|
gps | "yes", "no" | "yes" | Enable GPS positioning |
zip | String | - | Center map on ZIP code (when gps="no") |
๐งญ Behavior & Navigationโ
| Parameter | Values | Default | Description |
|---|---|---|---|
autoselect | "yes", "no" | "yes" | On iframe, "yes" sends the selection when a locker is clicked. "no" requires the select button. Popup always uses the select button |
autoclose | "yes", "no" | "no" | Hide the widget after selection |
navigate | "yes", "no" | "no" | Open Google Maps directions for the locker |
๐ก Best Practices & Recommendationsโ
๐ For Popup Implementationโ
โ
Recommended Settings:
- autoselect="no"
- autoclose="yes"
๐งญ For Navigation Modeโ
โ
Recommended Settings:
- navigate="yes"
- autoselect="no"
English uses the same URL with language=en. The button label follows the language (Navigate, ฮ ฮปฮฟฮฎฮณฮทฯฮท, ะะฐะฒะธะณะฐัะธั, Navigacija).
๐ฏ Partnerโ
Always set partnerId. The map then shows lockers that match that partner's typical compartment size.
๐ Implementation Examples & Live Demosโ
๐ผ๏ธ Basic IFrame Integrationโ
<iframe
src="https://map.boxnow.gr/iframe.html?countryCode=gr&language=gr&partnerId=your-partner-id"
width="100%"
height="500px"
>
</iframe>
๐ฎ Try it live: Open Iframe Demo
๐ Basic Popup Configurationโ
<iframe
src="https://map.boxnow.gr/popup.html?countryCode=gr,bg,hr&language=gr&partnerId=your-partner-id&autoselect=no&autoclose=yes"
width="100%"
height="500px"
>
</iframe>
๐ฎ Try it live: Open Popup Demo
๐งญ Navigation Mode Exampleโ
https://map.boxnow.gr/iframe.html?countryCode=gr&language=gr&partnerId=your-partner-id&navigate=yes&autoselect=no
๐ฎ Try it live: Open Navigate Demo
๐ Multi-Country Setup with Accessibilityโ
https://map.boxnow.gr/iframe.html?countryCode=gr,bg,hr,cy&language=en&partnerId=your-partner-id&a11y=yes
๐ Fixed Location (ZIP-based) Demoโ
https://map.boxnow.gr/iframe.html?countryCode=gr&language=en&partnerId=your-partner-id&gps=no&zip=10681
๐ Parameter Reference Tableโ
| Parameter | Required | Type | Default | Values | Description |
|---|---|---|---|---|---|
countryCode | โ | String | - | gr, bg, hr, si, cy (combinable) | Target countries |
language | โ | String | - | gr, bg, hr, si, en | Display language |
partnerId | โ | String | - | Any string | Partner identifier |
a11y | โ | String | "no" | yes, no | Accessibility mode |
zip | โ | String | - | Valid ZIP code | Center map location |
gps | โ | String | "yes" | yes, no | GPS positioning |
navigate | โ | String | "no" | yes, no | Open Google Maps directions |
autoselect | โ | String | "yes" | yes, no | Select on click (iframe) or require the button |
autoclose | โ | String | "no" | yes, no | Hide the widget after selection |
๐ Quick Start Checklistโ
- Choose your implementation ๐ผ๏ธ IFrame or ๐ Popup
- Set required parameters:
countryCode,language,partnerId - Configure for your use case:
- ๐ Popup? Set
autoselect="no"andautoclose="yes" - ๐งญ Navigation? Set
navigate="yes"andautoselect="no" - โฟ Accessibility? Set
a11y="yes"
- ๐ Popup? Set
- Test your configuration with the provided live demos
- Deploy and monitor user interactions
โ ๏ธ Container Must Be Visible Before the Map Loadsโ
The map fills its host iframe viewport. Whether you embed iframe.html / popup.html directly, or load it through the v5.js client (which inserts an iframe with width: 100%; height: 100% into your parentElement), that host must have real layout size when the map loads.
If the container is hidden or 0ร0 at that moment (for example display: none or a collapsed section), the map initializes with incorrect dimensions and may render blank or broken.
This must be handled on the e-shop / integrator side. The widget cannot reliably recover from a zero-size parent after load.
Ruleโ
Make sure the container is visible and has real dimensions before the map iframe is created or shown. How you structure your UI is up to you โ the important part is the order: size the container first, then load the map.
Avoidโ
- Creating the iframe while the parent is hidden (
display: none,visibility: hidden) or has0ร0size - Pre-creating the iframe in a hidden container and only revealing it later
- Assuming the map will correct itself after the container becomes visible
Example (illustrative only)โ
One possible approach when embedding the map URL directly โ show the container, then create the iframe. Adapt this to your own page structure; you do not have to use this exact pattern. If you use the v5.js client instead, the same order applies: size/show #boxnowmap before the client creates the iframe (on button click, or immediately if autoshow: true).
<div id="boxnowmap" style="display: none; width: 100%; height: 500px;"></div>
<script type="text/javascript">
function showBoxNowMap() {
var wrapper = document.getElementById('boxnowmap')
// Display the container before creating the iframe
wrapper.style.display = 'block'
if (wrapper.children.length) {
return
}
var iframe = document.createElement('iframe')
iframe.id = 'boxnow-iframe'
iframe.src =
'https://map.boxnow.bg/popup.html?gps=yes&autoselect=no&autoclose=no&countryCode=bg&language=bg&zip=1000'
iframe.width = '100%'
iframe.height = '500px'
iframe.style.border = '0'
iframe.allow = 'geolocation'
wrapper.appendChild(iframe)
}
</script>
๐ Troubleshootingโ
Common Issuesโ
Widget not loading?
- โ Verify all required parameters are provided
- โ Check country code format (comma-separated, no spaces)
- โ Ensure language matches available options
Map blank or broken after opening?
- โ Ensure the parent container is visible and has real width/height before the iframe is created (see Container Must Be Visible Before the Map Loads)
GPS not working as expected?
- โ
Set
gps="no"and providezipparameter for fixed location - โ Without ZIP, geo-IP will determine location
Navigation mode issues?
- โ
Always use
navigate="yes"withautoselect="no"
For additional support or custom implementations, please contact the BOX NOW development team.