first commit
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
generator:
|
||||
class: stAdminGenerator
|
||||
param:
|
||||
model_class: Ceneo
|
||||
theme: simple
|
||||
|
||||
head:
|
||||
package: stCeneoPlugin
|
||||
|
||||
documentation:
|
||||
pl: https://www.sote.pl/docs/ceneo
|
||||
en: https://www.soteshop.com/docs/ceneo
|
||||
|
||||
list:
|
||||
title: Lista produktów
|
||||
description: Zarządzanie porównywarką cen Ceneo
|
||||
max_per_page: 20
|
||||
display: [_code, _product, is_basket, active]
|
||||
peer_method: doSelectRightJoinProduct
|
||||
peer_count_method: doCountRightJoinProduct
|
||||
actions:
|
||||
_deletes: {name: Wypisz wszystkie, action: deleteAll, icon: delete}
|
||||
_add: {name: Przypisz wszystkie, action: addAll}
|
||||
_generate: {name: Generuj plik xml z przypisanych, action: "@stCeneoPlugin?action=generateCustom&generate=1", icon: export}
|
||||
object_actions: -
|
||||
select_actions:
|
||||
display:
|
||||
"Ustaw przypisane:": [product_enabled, product_disabled]
|
||||
actions:
|
||||
product_enabled: {name: Tak, confirm: "Ustaw przypisane: Tak", action: productEnable, i18n: stCeneoBackend}
|
||||
product_disabled: {name: Nie, confirm: "Ustaw przypisane: Nie", action: productDisable, i18n: stCeneoBackend}
|
||||
filters:
|
||||
code: {filter_field: product.code}
|
||||
product: {filter_field: product.opt_name}
|
||||
fields:
|
||||
code: {name: Kod, sort_field: product.code, params: size=50}
|
||||
product: {name: Nazwa, sort_field: product.opt_name, params: size=50}
|
||||
is_basket: {name: Kup Teraz}
|
||||
active: {name: Przypisany}
|
||||
menu:
|
||||
display: [list, generate, config]
|
||||
fields:
|
||||
list: {name: Lista produktów, action: @stCeneoPluginDefault}
|
||||
generate: {name: Generowanie pliku, action: stCeneoBackend/generateCustom}
|
||||
config: {name: Konfiguracja, action: stCeneoBackend/config}
|
||||
object_actions:
|
||||
_edit: {action: @stCeneoPlugin?action=edit&id=%%id%%&product_id=%%product_id%%&view=default}
|
||||
|
||||
create:
|
||||
title: Edycja
|
||||
|
||||
edit:
|
||||
menu: {use: list.menu}
|
||||
display: [active, is_basket]
|
||||
fields:
|
||||
active: {name: Przypisany}
|
||||
is_basket: {name: Kup Teraz, help: "Po zaznaczeniu, produkt bedzie miał opcję Kup Teraz na Ceneo"}
|
||||
actions:
|
||||
_list: {name: Lista}
|
||||
_save: {name: Zapisz}
|
||||
forward_parameters: [product_id, view]
|
||||
build_options:
|
||||
related_id: forward_parameters.product_id
|
||||
related_class: Product
|
||||
|
||||
|
||||
generate_model_class: Ceneo
|
||||
|
||||
custom_actions:
|
||||
custom: [generate]
|
||||
|
||||
generate_custom:
|
||||
menu: {use: list.menu}
|
||||
title: Generowanie pliku
|
||||
description: Zarządzanie porównywarką cen Ceneo
|
||||
|
||||
config:
|
||||
title: Konfiguracja
|
||||
description: Zarządzanie porównywarką cen Ceneo
|
||||
display:
|
||||
"Zaufane Opinie, System Transakcyjny": [trusted_opinion_on, transaction_system_on, trusted_opinion_id]
|
||||
"Konfiguracja": [buy_now]
|
||||
"Ustawienia generowania pliku xml": [use_product_code, use_man_code, use_ean_code, use_isbn_code, use_stock, use_attribute, description_type]
|
||||
"Informacje o dostępności produktów": [_availability, stock_zero]
|
||||
"ADS Tracker": [_ads_tracker_info_befour, ads_tracker, _ads_tracker_info_after]
|
||||
fields:
|
||||
trusted_opinion_on: {name: Włącz Zaufane Opinie, checked: false, type: checkbox}
|
||||
transaction_system_on: {name: Włącz System Transakcyjny, checked: false, type: checkbox}
|
||||
trusted_opinion_id: {name: Numer ID sklepu, params: size=34}
|
||||
use_product_code: {name: Dodaj kod producenta na podstawie kodu produktu, checked: false, type: checkbox}
|
||||
use_man_code: {name: Dodaj kod producenta, checked: false, type: checkbox}
|
||||
use_ean_code: {name: Dodaj kod EAN, checked: false, type: checkbox}
|
||||
use_isbn_code: {name: Dodaj kod ISBN, checked: false, type: checkbox}
|
||||
use_stock: {name: Dodaj stan magazynowy, checked: false, type: checkbox}
|
||||
use_attribute: {name: Dodaj atrybuty produktu, checked: false, type: checkbox}
|
||||
stock_zero: {name: Nie eksportuj ze stanem 0, help: "Nie eksportuj produktów ze stanem magazynowym równym 0", checked: false, type: checkbox}
|
||||
description_type:
|
||||
name: Opis produktu
|
||||
type: select
|
||||
display: [full, short, none]
|
||||
options:
|
||||
full: {name: Pełny, value: full}
|
||||
short: {name: Skrócony, value: short}
|
||||
none: {name: Brak, value: none}
|
||||
selected: full
|
||||
availability: {hide_label: true}
|
||||
ads_tracker: {name: Aktywuj, checked: false, type: checkbox}
|
||||
ads_tracker_info_befour: {name: ""}
|
||||
ads_tracker_info_after: {name: ""}
|
||||
buy_now: {name: Domyślnie "Kup teraz", checked: false, type: checkbox}
|
||||
actions:
|
||||
_list: {name: Lista}
|
||||
_save: {name: Zapisz}
|
||||
menu: {use: list.menu}
|
||||
Reference in New Issue
Block a user