if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
- if ($lg['id'] == \front\factory\Languages::default_language()) echo ' '; ?>= $lg['name']; ?>
endif; ?>
endforeach;
endif;
?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
$languages = array();
$languages[''] = '---- wersja językowa ----';
if (is_array($this->languages))
foreach ($this->languages as $lg_tmp)
{
if ($lg_tmp['id'] != $lg['id'])
$languages[$lg_tmp['id']] = $lg_tmp['name'];
}
?>
if ($lg['status']) : ?>
=
\Html::select(
array(
'label' => 'Wyświetlaj treść z wersji',
'name' => 'copy_from[' . $lg['id'] . ']',
'values' => $languages,
'value' => $this->product['languages'][$lg['id']]['copy_from'],
)
);
?>
=
\Html::input(
array(
'label' => 'Nazwa',
'name' => 'name[' . $lg['id'] . ']',
'id' => 'name_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['name'],
'inline' => true
)
);
?>
=
\Html::input(
array(
'label' => 'Komunikat gdy stan magazynowy równy 0',
'name' => 'warehouse_message_zero[' . $lg['id'] . ']',
'id' => 'warehouse_message_zero_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['warehouse_message_zero'],
'inline' => true
)
);
?>
=
\Html::input(
array(
'label' => 'Komunikat gdy stan magazynowy większy niż 0',
'name' => 'warehouse_message_nonzero[' . $lg['id'] . ']',
'id' => 'warehouse_message_nonzero_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['warehouse_message_nonzero'],
'inline' => true
)
);
?>
=
\Html::textarea(
array(
'label' => 'Krótki opis',
'name' => 'short_description[' . $lg['id'] . ']',
'id' => 'short_description_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['short_description'],
'inline' => true
)
);
?>
=
\Html::textarea(
array(
'label' => 'Opis',
'name' => 'description[' . $lg['id'] . ']',
'id' => 'description_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['description'],
'inline' => true
)
);
?>
endif; ?>
endforeach;
endif;
?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
- if ($lg['id'] == \front\factory\Languages::default_language()) echo ' '; ?>= $lg['name']; ?>
endif; ?>
endforeach;
endif;
?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
$languages = array();
$languages[''] = '---- wersja językowa ----';
if (is_array($this->languages))
foreach ($this->languages as $lg_tmp)
{
if ($lg_tmp['id'] != $lg['id'])
$languages[$lg_tmp['id']] = $lg_tmp['name'];
}
?>
if ($lg['status']) : ?>
=
\Html::input(
array(
'label' => 'Nazwa zakładki (1)',
'name' => 'tab_name_1[' . $lg['id'] . ']',
'id' => 'tab_name_1_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['tab_name_1'],
'inline' => true
)
);
?>
=
\Html::textarea(
array(
'label' => 'Zawartość zakładki (1)',
'name' => 'tab_description_1[' . $lg['id'] . ']',
'id' => 'tab_description_1_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['tab_description_1'],
'inline' => true
)
);
?>
=
\Html::input(
array(
'label' => 'Nazwa zakładki (2)',
'name' => 'tab_name_2[' . $lg['id'] . ']',
'id' => 'tab_name_2_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['tab_name_2'],
'inline' => true
)
);
?>
=
\Html::textarea(
array(
'label' => 'Zawartość zakładki (2)',
'name' => 'tab_description_2[' . $lg['id'] . ']',
'id' => 'tab_description_2_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['tab_description_2'],
'inline' => true
)
);
?>
endif; ?>
endforeach;
endif;
?>
=
\Html::input(
array(
'label' => 'VAT (%)',
'name' => 'vat',
'id' => 'vat',
'class' => 'int-format',
'value' => $this->product['id'] ? $this->product['vat'] : 23,
'onchange' => 'calculate_price_brutto(); return false;'
)
);
?>
=
\Html::input(
array(
'label' => 'Cena netto (PLN)',
'name' => 'price_netto',
'id' => 'price_netto',
'class' => 'number-format',
'value' => $this->product['price_netto'],
'onchange' => 'calculate_price_brutto(); return false;'
)
);
?>
=
\Html::input(
array(
'label' => 'Cena brutto (PLN)',
'name' => 'price_brutto',
'id' => 'price_brutto',
'class' => 'number-format',
'value' => $this->product['price_brutto'],
'onchange' => 'calculate_price_netto(); return false;'
)
);
?>
=
\Html::input(
array(
'label' => 'Promocyjna cena netto (PLN)',
'name' => 'price_netto_promo',
'id' => 'price_netto_promo',
'class' => 'number-format',
'value' => $this->product['price_netto_promo'],
'onchange' => 'calculate_price_brutto_promo(); return false;'
)
);
?>
=
\Html::input(
array(
'label' => 'Promocyjna cena brutto (PLN)',
'name' => 'price_brutto_promo',
'id' => 'price_brutto_promo',
'class' => 'number-format',
'value' => $this->product['price_brutto_promo'],
'onchange' => 'calculate_price_netto_promo(); return false;'
)
);
?>
$units[] = '--- wybierze jednostkę miary ---';
foreach ($this->units as $unit)
$units[$unit['id']] = $unit['text'];
?>
= \Html::select([
'label' => 'Jednostka miary',
'name' => 'product_unit',
'id' => 'product_unit',
'values' => $units,
'value' => $this->product['product_unit_id']
]); ?>
= \Html::input([
'label' => 'Waga/pojemność',
'name' => 'weight',
'id' => 'weight',
'class' => 'number-format',
'value' => $this->product['weight']
]); ?>
=
\Html::input([
'label' => 'Stan magazynowy',
'name' => 'quantity',
'id' => 'quantity',
'class' => 'int-format',
'value' => $this->product['quantity']
]);
?>
=
\Html::input_switch([
'label' => 'Pozwól zamawiać gdy stan 0',
'name' => 'stock_0_buy',
'checked' => $this->product['stock_0_buy'] == 1 ? true : false
]);
?>
=
\Html::input([
'label' => 'Współczynnik WP',
'name' => 'wp',
'id' => 'wp',
'class' => 'number-format',
'value' => $this->product['wp']
]);
?>
= \Html::input_icon([
'label' => 'Kod SKU',
'name' => 'sku',
'id' => 'sku',
'value' => $this->product['sku'],
'icon_content' => 'generuj',
'icon_js' => 'generate_sku_code( ' . (int)$this->product['id'] . ' );'
]); ?>
= \Html::input([
'label' => 'EAN',
'name' => 'ean',
'id' => 'ean',
'value' => $this->product['ean']
]); ?>
=
\Html::input_switch([
'label' => 'Widoczny',
'name' => 'status',
'checked' => $this->product['status'] == 1 or !$this->product['id'] ? true : false
]);
?>
=
\Html::input_switch([
'label' => 'Promowany',
'name' => 'promoted',
'checked' => $this->product['promoted'] == 1 ? true : false
]);
?>
=
\Html::input([
'label' => 'Nowość do dnia',
'name' => 'new_to_date',
'id' => 'new_to_date',
'class' => 'date',
'value' => $this->product['new_to_date']
]);
?>
= \Html::input_switch([
'label' => 'Wyświetlaj pole na dodatkową wiadomość',
'name' => 'additional_message',
'checked' => $this->product['additional_message'] == 1 ? true : false
]);
?>
= \Html::input_switch([
'label' => 'Dodatkowa wiadomość jest wymagana',
'name' => 'additional_message_required',
'checked' => $this->product['additional_message_required'] == 1 ? true : false
]);
?>
= \Html::input([
'label' => 'Dodatkowa wiadomość (treść komunikatu)',
'name' => 'additional_message_text',
'id' => 'additional_message_text',
'value' => $this->product['additional_message_text']
]);
?>
$producers[''] = '--- wybierz producenta ---';
foreach ($this->producers as $producer)
$producers[$producer['id']] = $producer['name'];
?>
= \Html::select([
'label' => 'Producent',
'name' => 'producer_id',
'id' => 'producer_id',
'values' => $producers,
'value' => $this->product['producer_id']
]); ?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
- if ($lg['id'] == \front\factory\Languages::default_language()) echo ' '; ?>= $lg['name']; ?>
endif; ?>
endforeach;
endif;
?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
=
\Html::input_icon(
array(
'label' => 'Link SEO',
'name' => 'seo_link[' . $lg['id'] . ']',
'id' => 'seo_link_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['seo_link'],
'icon_content' => 'generuj',
'icon_js' => 'generate_seo_links( "' . $lg['id'] . '", $( "#name_' . $lg['id'] . '" ).val(), ' . (int)$this->product['id'] . ' );'
)
);
?>
= \Html::input([
'label' => 'Meta title',
'name' => 'meta_title[' . $lg['id'] . ']',
'id' => 'meta_title_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['meta_title']
]); ?>
=
\Html::textarea(
array(
'label' => 'Meta description',
'name' => 'meta_description[' . $lg['id'] . ']',
'id' => 'meta_description_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['meta_description']
)
);
?>
=
\Html::textarea(
array(
'label' => 'Meta keywords',
'name' => 'meta_keywords[' . $lg['id'] . ']',
'id' => 'meta_keywords_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['meta_keywords']
)
);
?>
= \Html::input([
'label' => 'Canonical',
'name' => 'canonical[' . $lg['id'] . ']',
'id' => 'canonical_' . $lg['id'],
'value' => $this->product['languages'][$lg['id']]['canonical']
]); ?>
endif; ?>
endforeach;
endif;
?>
$layouts[''] = '---- szablon domyślny ----';
if (is_array($this->layouts)) : foreach ($this->layouts as $layout) :
$layouts[$layout['id']] = $layout['name'];
endforeach;
endif;
?>
=
\Html::select([
'label' => 'Szablon',
'name' => 'layout_id',
'id' => 'layout_id',
'values' => $layouts,
'value' => $this->product['layout_id']
]);
?>
You browser doesn't have Flash installed.
$files_count = 0;
if (is_array($this->product['files'])) : foreach ($this->product['files'] as $file) :
if ($file['name'])
$name = $file['name'];
else
{
$name = explode('/', $file['src']);
$name = $name[count($name) - 1];
}
?>
-
$files_count++;
endforeach;
endif;
?>
You browser doesn't have Flash installed.
$z = 0; ?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
-
= $lg['name']; ?>
endif; ?>
endforeach;
endif; ?>
$z = 0; ?>
if (is_array($this->languages)) : foreach ($this->languages as $lg) : ?>
if ($lg['status']) : ?>
endif; ?>
endforeach;
endif; ?>
= \Html::input([
'label' => 'Custom label 0',
'name' => 'custom_label_0',
'id' => 'custom_label_0',
'value' => $this->product['custom_label_0']
]);
?>
= \Html::input([
'label' => 'Custom label 1',
'name' => 'custom_label_1',
'id' => 'custom_label_1',
'value' => $this->product['custom_label_1']
]);
?>
= \Html::input([
'label' => 'Custom label 2',
'name' => 'custom_label_2',
'id' => 'custom_label_2',
'value' => $this->product['custom_label_2']
]);
?>
= \Html::input([
'label' => 'Custom label 3',
'name' => 'custom_label_3',
'id' => 'custom_label_3',
'value' => $this->product['custom_label_3']
]);
?>
= \Html::input([
'label' => 'Custom label 4',
'name' => 'custom_label_4',
'id' => 'custom_label_4',
'value' => $this->product['custom_label_4']
]);
?>
dodaj niestandardowe pole
if ( is_array( $this -> product['custom_fields'] ) ) : foreach ( $this -> product['custom_fields'] as $field ):?>
endforeach; endif;?>