getSellingMode()->price ? $offer->getSellingMode()->price->amount : 0, 'input_tag', array( 'class' => 'number-type update-pricing-fee-preview', 'required' => true, 'size' => 10, 'data-precision' => 2, 'data-min' => 0, 'data-max' => 10000000, 'postfix' => $offer->getSellingMode()->price ? $offer->getSellingMode()->price->currency : 'PLN' )) ?> getSellingMode() && $offer->getSellingMode()->price ? $offer->getSellingMode()->price->currency : 'PLN'); ?> getStock(), '_edit_stock', array('maxlength' => 50, 'size' => 60, 'required' => true, 'product' => $offer->getAllegroAuction()->getProduct())) ?> getPublication() ? $offer->getPublication()->duration : null, 'st_allegro_duration_time_select_tag', array('required' => true, 'disabled' => $offer->getPublication() && isset($offer->getPublication()->status) && $offer->getPublication()->status != stAllegroApi::STATUS_INACTIVE)) ?>

getDelivery() && $offer->getDelivery()->shippingRates ? $offer->getDelivery()->shippingRates->id : null, 'st_allegro_shippin_rates_select_tag', array('required' => true)) ?> getDelivery() ? $offer->getDelivery()->handlingTime : null, 'st_allegro_delivery_times_select_tag', array('required' => true)) ?> getPayments() ? $offer->getPayments()->invoice : null, 'st_allegro_payments_invoice_select_tag', array('required' => true)) ?>

$offer->getImages() ? $offer->getImages() : array(), 'product' => $offer->getAllegroAuction()->getProduct(), 'name' => 'allegro_api_offer[images]')) ?>

getDescription()->sections, 'partial', array( 'partial' => 'stAllegroBackend/description', )) ?>

$offer, 'name' => 'allegro_api_offer[parameters]', 'product' => $offer->getAllegroAuction()->getProduct())) ?>

getAfterSalesServices() && $offer->getAfterSalesServices()->returnPolicy ? $offer->getAfterSalesServices()->returnPolicy->id : null, 'st_allegro_return_policy_select_tag') ?> getAfterSalesServices() && $offer->getAfterSalesServices()->impliedWarranty ? $offer->getAfterSalesServices()->impliedWarranty->id : null, 'st_allegro_implied_warranty_select_tag') ?> getAfterSalesServices() && $offer->getAfterSalesServices()->warranty ? $offer->getAfterSalesServices()->warranty->id : null, 'st_allegro_warranty_select_tag') ?>

$offer->getPromotion() ? $offer->getPromotion()->emphasizedHighlightBoldPackage : false, 'class' => 'update-pricing-fee-preview')) ?> $offer->getPromotion() ? $offer->getPromotion()->emphasized : false, 'class' => 'update-pricing-fee-preview')) ?> $offer->getPromotion() ? $offer->getPromotion()->bold : false, 'class' => 'update-pricing-fee-preview')) ?> $offer->getPromotion() ? $offer->getPromotion()->highlight : false, 'class' => 'update-pricing-fee-preview')) ?> $offer->getPromotion() ? $offer->getPromotion()->departmentPage : false, 'class' => 'update-pricing-fee-preview')) ?>

$offer->getCategory()->id, 'quantity' => $offer->getStock()->available, 'price' => $offer->getSellingMode()->price->amount, "bold" => $offer->getPromotion() ? $offer->getPromotion()->bold : false, "highlight" => $offer->getPromotion() ? $offer->getPromotion()->highlight : false, "departmentPage" => $offer->getPromotion() ? $offer->getPromotion()->departmentPage : false, "emphasized" => $offer->getPromotion() ? $offer->getPromotion()->emphasized : false, "emphasizedHighlightBoldPackage" => $offer->getPromotion() ? $offer->getPromotion()->emphasizedHighlightBoldPackage : false, "offerId" => $offer->getId() ? $offer->getId() : null, "status" => $offer->getPublication() && isset($offer->getPublication()->status) ? $offer->getPublication()->status : null, )) ?>
'list', 'label' => __('Lista'), 'action' => '@stAllegroPlugin?action=list&product_id=' . $sf_request->getParameter('product_id')), ); if (!$sf_request->getParameter('product_id')) { $actions[] = array('type' => 'edit', 'label' => __('Edycja produktu'), 'action' => '@stProduct?action=edit&id=' . $offer->getAllegroAuction()->getProduct()->getId()); } else { $actions[] = array('type' => 'list', 'label' => __('Lista wszystkich ofert'), 'action' => '@stAllegroPlugin?action=list'); } echo st_get_admin_actions($actions); ?>
'save', 'label' => __('Zapisz')); if (!$offer->getPublication() || !isset($offer->getPublication()->status) || $offer->getPublication()->status == stAllegroApi::STATUS_INACTIVE) { if ($offer->getId()) { $actions = array_merge(array(array('type' => 'delete', 'label' => __('Usuń'), 'action' => '@stAllegroPlugin?action=delete&id=' . $sf_request->getParameter('id') . '&product_id=' . $sf_request->getParameter('product_id'), 'params' => array('confirm' => __('Jesteś pewien, że chcesz usunąć szkic')))), $actions); } $actions[] = array('type' => 'save', 'label' => __('Wystaw'), 'params' => array('name' => 'publish')); } else { if ($offer->getPublication() && ($offer->getPublication()->status == stAllegroApi::STATUS_ACTIVE || $offer->getPublication()->status == stAllegroApi::STATUS_ENDED)) { $actions = array_merge(array(array('type' => 'duplicate', 'label' => __('Wystaw podobną'), 'action' => '@stAllegroPlugin?action=duplicate&id=' . $sf_request->getParameter('id') . '&product_id=' . $sf_request->getParameter('product_id'))), $actions); } if ($offer->getPublication() && $offer->getPublication()->status == stAllegroApi::STATUS_ENDED) { $actions[] = array('type' => 'save', 'label' => __('Wznów'), 'params' => array('name' => 'publish')); } if ($offer->getPublication() && $offer->getPublication()->status == stAllegroApi::STATUS_ACTIVE) { $actions = array_merge(array(array('type' => 'delete', 'label' => __('Zakończ'), 'action' => '@stAllegroPlugin?action=end&id=' . $sf_request->getParameter('id') . '&product_id=' . $sf_request->getParameter('product_id'), 'params' => array('confirm' => __('Jesteś pewien, że chcesz zakończyć ofertę')))), $actions); } } echo st_get_admin_actions($actions); ?>