Cleaned the mess of Shipping zones, which is Shipping configuration...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user