Skip to content

Commit

Permalink
Remove redundant checkout event listener. tastyigniter/ti-ext-cart@cf…
Browse files Browse the repository at this point in the history
…1667ab

Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 8, 2022
1 parent 6fd6d3e commit 36fb9e3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function boot()
});

$this->bindRememberLocationAreaEvents();
$this->bindCheckoutEvents();

$this->addReviewsRelationship();
$this->addAssetsToReviewsSettingsPage();
Expand Down Expand Up @@ -292,13 +291,6 @@ protected function addReviewsRelationship(): void
Locations_model::addSortingColumns(['reviews_count asc', 'reviews_count desc']);
}

protected function bindCheckoutEvents(): void
{
Event::listen('igniter.checkout.afterSaveOrder', function ($order) {
LocationFacade::updateScheduleTimeSlot(null, TRUE);
});
}

protected function bindRememberLocationAreaEvents(): void
{
Event::listen('location.position.updated', function ($location, $position, $oldPosition) {
Expand Down

0 comments on commit 36fb9e3

Please sign in to comment.