//carrier wizard step validation part 2

This commit is contained in:
Vincent Augagneur committed 2013-08-06 10:30:10 +02:00
1 parent fe58053439
commit 5bcfc7d4e9
1 file changed
+4
@@ -828,6 +828,10 @@ class AdminCarrierWizardControllerCore extends AdminController
public static function getValidationRules() public static function getValidationRules()
{ {
$step_number = Tools::getValue('step_number'); $step_number = Tools::getValue('step_number');
if ($step_number == 4 && !Shop::isFeatureActive() || $step_number == 5 && Shop::isFeatureActive())
return array();
$step_fields = array( $step_fields = array(
1 => array('name', 'delay', 'grade', 'url'), 1 => array('name', 'delay', 'grade', 'url'),
2 => array('is_free', 'id_tax_rules_group', 'shipping_handling', 'shipping_method', 'range_behavior'), 2 => array('is_free', 'id_tax_rules_group', 'shipping_handling', 'shipping_method', 'range_behavior'),