Looking for a custom TastyIgniter theme or extension development? Request a quote now!
On a fresh install, with Google API keys installed. I can't set delivery zones.
The map shows fine, i can create area's, set shapes etc.
But the locations is always : "Broad Ln" in Hockley.
Can someone help ?
Ok, i don't know how to fix this permanently but found a workaround.
in maparea.js (\app\admin\formwidgets\maparea\assets\js\maparea.js) there is a function (method?) named "onSubmitForm" which is never called.
my dirty little workaround is to hook it to "onShapeClicked" so everytime a shape is clicked its onSubmit routine is fired.
To do it "clean" way, just attach data-control="save-map" data-handler="<?= $this->getEventHandler('onAddArea') ?>" to close button in app/admin/formwidgets/maparea/map_modal.php and add this.$el.on('click', '[data-control="save-map"]', $.proxy(this.onSubmitForm, this)) in MapArea.prototype.init function in app/admin/formwidgets/maparea/assets/js/maparea.js