Skip to content

add the coordinate via address - #13

Open
zzuutt wants to merge 1 commit into
thelia-modules:masterfrom
zzuutt:Add-Get-the-coordinate-via-address
Open

add the coordinate via address#13
zzuutt wants to merge 1 commit into
thelia-modules:masterfrom
zzuutt:Add-Get-the-coordinate-via-address

Conversation

@zzuutt

@zzuutt zzuutt commented May 27, 2016

Copy link
Copy Markdown
Contributor
  • Add the possibility to find the location by the address
  • Add tinymce on the fields description and access
  • Change version to 2.4.5

27-05-2016 16-24-19

- Add the possibility to find the location by the address
- Add tinymce on the fields description and access
@Soldras

Soldras commented Jun 1, 2016

Copy link
Copy Markdown
Contributor

Hi, I think you can use this :
https://github.com/thelia-modules/Dealer/blob/master/EventListener/DealerListener.php

When you create a Dealer it generate coordinate based on address so you just have to expand this comporment

@zzuutt

zzuutt commented Jun 1, 2016

Copy link
Copy Markdown
Contributor Author

Hi,

Ok, I had not looked at everything
I rewrite my code

@zzuutt

zzuutt commented Jun 2, 2016

Copy link
Copy Markdown
Contributor Author

sorry but I do not see how
I create a new event
const DEALER_LOCATION_UPDATE = "dealer.dealer-location.update";
and route
<route id="dealer.geo.update" path="/admin/module/Dealer/location/{dealer_id}/get" methods="get"> <default key="_controller">Dealer:GeoDealer:processGetLocation</default> <requirement key="dealer_id">\d+</requirement> </route>
but in the controller I do not see how the dispatch
$event = new DealerEvent(); $event->setDealer($dealer_id); $this->dispatch(DealerEvents::DEALER_LOCATION_UPDATE, $event);

I completely wrong or right ?

@Soldras

Soldras commented Jun 3, 2016

Copy link
Copy Markdown
Contributor

You have to create a service from DealerListener method firt.
Then you can use it in DealerListener and your controller to update coordinate.

If you want to see where event are dispatch check services.

@zzuutt

zzuutt commented Jun 3, 2016

Copy link
Copy Markdown
Contributor Author

I don't understand but I will search
sur mon zx-81 avec 32k de ram je n'avais pas tout ça
il me manque donc une partie pour comprendre :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants