<tr> <td width="40%"><?php echo $paymentDescription; ?> :</td> <td width="60%"><?php echo Helper::makeSelectorFromPaySystems("EBAY_SETTINGS[MAPS][PAYMENT][" . $paymentOption . "]", $siteSettings["MAPS"]["PAYMENT"][$paymentOption], $siteSettings["PERSON_TYPE"]); ?> </td> </tr> <?php } } $tabControl->BeginNextTab(); if ($details) { foreach ($details->getListShipping() as $service => $serviceDescription) { ?> <tr> <td width="40%"><?php echo $serviceDescription; ?> :</td> <td width="60%"> <select name="EBAY_SETTINGS[MAPS][SHIPMENT][<?php echo $service; ?> ]"> <option value=""><?php echo Loc::getMessage("SALE_EBAY_NOT_MAPPED"); ?> </option>
public function getHtml() { $result = ''; $details = new \Bitrix\Sale\TradingPlatform\Ebay\Api\Details($this->siteId); if ($details) { $arDeliveryList = Helper::getDeliveryList($this->siteId); foreach ($details->getListShipping() as $service => $serviceDescription) { $result .= ' <tr> <td>' . $serviceDescription . ':</td> <td> <select name="EBAY_SETTINGS[MAPS][SHIPMENT][' . $service . ']"> <option value="">' . Loc::getMessage('SALE_EBAY_W_STEP_SHP_LINK_NOT_SET') . '</option>'; foreach ($arDeliveryList as $deliveryId => $deliveryName) { $result .= '<option value="' . $deliveryId . '"' . (isset($this->ebaySettings[$this->siteId]["MAPS"]["SHIPMENT"][$service]) && $this->ebaySettings[$this->siteId]["MAPS"]["SHIPMENT"][$service] == $deliveryId ? " selected" : "") . '>' . $deliveryName . '</option>'; } $result .= ' </select> </td> </tr> '; } $result = '<table>' . $result . '</table>' . '<br><br><hr><br>' . Loc::getMessage('SALE_EBAY_W_STEP_SHP_LINK_DESCR') . '.'; } return $result; }