Esempio n. 1
0
 function prepareVariables($variables)
 {
     $variables = parent::prepareVariables($variables);
     if (!isset($variables['primary'])) {
         $variables['primary'] = 0;
     }
     if (!isset($variables['defaultshipto'])) {
         $variables['defaultshipto'] = 0;
     }
     if (!isset($variables["existingaddressid"])) {
         $variables["existingaddressid"] = false;
     }
     if (isset($variables["id"])) {
         if ($variables["id"]) {
             // if update
             $variables["id"] = $variables["addressid"];
         }
     }
     //end if
     return parent::prepareVariables($variables);
 }