• Resolved tonnick0033

    (@tonnick0033)


    Hello
    is there any way to display the zone drawn in any page ? using shortcode maybe ? thx !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author arosoft

    (@arosoft)

    Hi!
    There is not a shortcode for that feature right now. It′s a good idea, so we will implement this feature in a future release.

    Plugin Author arosoft

    (@arosoft)

    In latest version 2.0.5, we have added a shortcode [szbd] that displays a map with delivery zones.

    Example:
    [szbd ids=”id1,id2″ title=”Delivery Zones” color=”#c87f93″]

    The arguments are:
    ids – a list of drawn maps by post ids (required)
    title – the maps title to display above the map (optional)
    color – color of the delivery zones polygons, default is green. (optional)

    Thread Starter tonnick0033

    (@tonnick0033)

    ok just tried it but this is breaking the whole page with error in chrome console :

    Uncaught TypeError: Cannot read property ‘lat’ of undefined
    at initialize (VM198 szbd-shortcode.js:12)
    at HTMLDocument.<anonymous> (VM198 szbd-shortcode.js:3)
    at i (VM186 jquery.js:2)
    at Object.fireWith [as resolveWith] (VM186 jquery.js:2)
    at Function.ready (VM186 jquery.js:2)
    at HTMLDocument.J (VM186 jquery.js:2)
    post-18.css:1 Failed to load resource: the server responded with a status of 404 ()

    I tried to insert shortcode with elementor widget shortcode and using the id 616 from url maps : /wp-admin/post.php?post=616&action=edit

    I tried as well with id1 as I have only 1 map

    but no luck.

    Plugin Author arosoft

    (@arosoft)

    Hi,
    post id 616 should be the right one for you.

    If you have copied the example from above, the paste action sometimes paste curly quotes.
    So be sure you use ordinary straight quotes in shortcodes.

    Thread Starter tonnick0033

    (@tonnick0033)

    still no luck, same error
    [szbd ids=”id616″ title=”Delivery Zones” color=”#c87f93″]

    Plugin Author arosoft

    (@arosoft)

    Should be ??
    [szbd ids=”616″ title=”Delivery Zones” color=”#c87f93″]

    • This reply was modified 5 years ago by arosoft.
    Thread Starter tonnick0033

    (@tonnick0033)

    well done ! much better, and easy to apply !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘display zone in page’ is closed to new replies.