Cleaned the mess of Shipping zones, which is Shipping configuration...

This commit is contained in:
Franck Allimant
2014-04-15 20:11:33 +02:00
parent 449bbdd67d
commit 123280f4d4
8 changed files with 96 additions and 35 deletions

View File

@@ -46,11 +46,11 @@ class ShippingZoneController extends BaseAdminController
return $this->render("shipping-zones", array("display_shipping_zone" => 20));
}
public function updateAction($shipping_zones_id)
public function updateAction($delivery_module_id)
{
if (null !== $response = $this->checkAuth(AdminResources::SHIPPING_ZONE, array(), AccessManager::VIEW)) return $response;
return $this->render("shipping-zones-edit", array(
"shipping_zones_id" => $shipping_zones_id
"delivery_module_id" => $delivery_module_id
));
}
@@ -133,13 +133,13 @@ class ShippingZoneController extends BaseAdminController
protected function renderEditionTemplate()
{
return $this->render("shipping-zones-edit", array(
"shipping_zones_id" => $this->getShippingZoneId()
"delivery_module_id" => $this->getDeliveryModuleId()
));
}
protected function getShippingZoneId()
protected function getDeliveryModuleId()
{
return $this->getRequest()->get('shipping_zone_id', 0);
return $this->getRequest()->get('delivery_module_id', 0);
}
}