Skip to main content

๐Ÿ“ฆ 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:

ParameterTypeDescriptionExample Values
countryCodeStringTarget country/countries"gr", "bg,hr", "gr,bg,hr,cy"
languageStringDisplay language"gr", "bg", "en", "hr", "si"
partnerIdStringYour 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 - Greek
  • bg - Bulgarian
  • hr - Croatian
  • si - Slovenian
  • en - 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โ€‹

ParameterValuesDefaultDescription
a11y"yes", "no""no"Enables accessibility-friendly UI/UX

๐Ÿ—บ๏ธ Map Displayโ€‹

ParameterValuesDefaultDescription
gps"yes", "no""yes"Enable GPS positioning
zipString-Center map on ZIP code (when gps="no")

๐Ÿงญ Behavior & Navigationโ€‹

ParameterValuesDefaultDescription
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โ€‹

ParameterRequiredTypeDefaultValuesDescription
countryCodeโœ…String-gr, bg, hr, si, cy (combinable)Target countries
languageโœ…String-gr, bg, hr, si, enDisplay language
partnerIdโœ…String-Any stringPartner identifier
a11yโŒString"no"yes, noAccessibility mode
zipโŒString-Valid ZIP codeCenter map location
gpsโŒString"yes"yes, noGPS positioning
navigateโŒString"no"yes, noOpen Google Maps directions
autoselectโŒString"yes"yes, noSelect on click (iframe) or require the button
autocloseโŒString"no"yes, noHide the widget after selection

๐Ÿš€ Quick Start Checklistโ€‹

  1. Choose your implementation ๐Ÿ–ผ๏ธ IFrame or ๐Ÿ”— Popup
  2. Set required parameters: countryCode, language, partnerId
  3. Configure for your use case:
    • ๐Ÿ”— Popup? Set autoselect="no" and autoclose="yes"
    • ๐Ÿงญ Navigation? Set navigate="yes" and autoselect="no"
    • โ™ฟ Accessibility? Set a11y="yes"
  4. Test your configuration with the provided live demos
  5. 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 has 0ร—0 size
  • 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?

GPS not working as expected?

  • โœ… Set gps="no" and provide zip parameter for fixed location
  • โœ… Without ZIP, geo-IP will determine location

Navigation mode issues?

  • โœ… Always use navigate="yes" with autoselect="no"

For additional support or custom implementations, please contact the BOX NOW development team.