if (count($payment_methods) or count($shipping_methods)) { // the value is are the negate value // negate 1 mean the shipping/payment are excluded $shipping_payment_method .= ' <div class="form-horizontal"> <div class="div_products_mappings toggle_advanced_option" id="msEditProductInputPaymentMethod"> <label class="control-label col-md-2">' . $this->pi_getLL('admin_mapped_methods') . '</label> <div class="col-md-10"> <div class="innerbox_methods"> <div class="innerbox_payment_methods"> <p class="form-control-static"><strong>' . $this->pi_getLL('admin_payment_methods') . '</strong></p> '; // load mapped ids $method_mappings = array(); if ($this->get['tx_multishop_pi1']['cid']) { $method_mappings = mslib_befe::getMethodsByCustomer($this->get['tx_multishop_pi1']['cid']); } $tr_type = ''; if (count($payment_methods)) { foreach ($payment_methods as $code => $item) { if (!$tr_type or $tr_type == 'even') { $tr_type = 'odd'; } else { $tr_type = 'even'; } $count++; $shipping_payment_method .= '<div class="form-group" id="multishop_payment_method_' . $item['id'] . '"><label class="control-label col-md-4">' . $item['name'] . '</label><div class="col-md-8">'; if ($price_wrap) { $tmpcontent .= $price_wrap; } $shipping_payment_method .= '<div class="checkbox checkbox-success checkbox-inline"><input name="payment_method[' . htmlspecialchars($item['id']) . ']" class="payment_method_cb" id="enable_payment_method_' . $item['id'] . '" type="checkbox" rel="' . $item['id'] . '" value="0"' . (is_array($method_mappings['payment']) && in_array($item['id'], $method_mappings['payment']) && !$method_mappings['payment']['method_data'][$item['id']]['negate'] ? ' checked' : '') . ' /><label for="enable_payment_method_' . $item['id'] . '">' . $this->pi_getLL('enable') . '</label></div>';