dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
shop-product_en.fd.php
Go to the documentation of this file.
1<?php
2$messages = array();
3$messages['save_success'] = 'Data was saved';
4$messages['save_succeass'] = $messages['save_success'];
5$messages['save_error'] = 'Data could not be saved';
6$messages['form_new_title'] = 'New product';
7$messages['form_edit_title'] = 'Edit product';
8$messages['form_new_subtitle'] = 'Create master data';
9$messages['form_info'] = 'Edit the product master data. Groups, attributes and images are maintained with the corresponding shop administration functions.';
10$messages['field_product_group'] = 'Product group';
11$messages['product_save_success'] = 'The product was saved.';
12$messages['product_save_error'] = 'The product could not be saved. Please check the SKU and URL name in particular.';
13$messages['validation_error'] = 'Please check your entries.';
14$messages['help_edit'] = 'Help: edit product';
15$messages['save_title'] = 'Save product';
16$messages['save_label'] = 'Save';
17$messages['view_product'] = 'View product';
18$messages['preview'] = 'Preview';
19$messages['product_attributes'] = 'Product attributes';
20$messages['attributes'] = 'Attributes';
21$messages['delete_title'] = 'Delete product';
22$messages['delete_confirm'] = 'Do you really want to delete this product?';
23$messages['delete_label'] = 'Delete';
24$messages['product_list_title'] = 'Back to the product list';
25$messages['product_list'] = 'Product list';
26$messages['images_title'] = 'Product images';
27$messages['save_first_images'] = 'Save the product first; images can then be assigned.';
28$messages['select_images_title'] = 'Add images from the media browser to the product';
29$messages['selection'] = 'Select';
30$messages['new_primary'] = 'Use the new image as the primary image';
31$messages['no_images'] = 'No images have been assigned yet.';
32$messages['image_source_product'] = 'Product image';
33$messages['image_source_group'] = 'Group image';
34$messages['primary'] = 'Primary';
35$messages['unlink_image_title'] = 'Remove image assignment';
36$messages['unlink_image_question'] = 'Do you really want to remove this image assignment?';
37$messages['unlink_image_hint'] = 'The file remains in the media browser. Only the shop assignment is removed. Group images affect the group and therefore other products in that group.';
38$messages['unlink_image_label'] = 'Remove assignment';
39$messages['media_hint'] = 'Uploads, selection, cropping, resizing, batch processing and maintenance use the existing media browser.';
40$messages['channels_title'] = 'Channels';
41$messages['save_first_channels'] = 'Save the product first; channels can then be set individually.';
42$messages['channels_info'] = 'Direct product selection. This setting takes precedence over channel groups.';
43$messages['no_channels'] = 'No channels have been created yet.';
44$messages['table_channel'] = 'Channel';
45$messages['table_status'] = 'Status';
46$messages['table_export'] = 'Export';
47$messages['table_action'] = 'Action';
48$messages['channel_direct_active'] = 'directly active';
49$messages['channel_direct_inactive'] = 'directly inactive';
50$messages['channel_from_group_title'] = 'from group: {groups}';
51$messages['channel_from_group'] = 'from group';
52$messages['channel_not_set'] = 'not set';
53$messages['channel_not_exported'] = 'not exported';
54$messages['mapping_title'] = 'Channel mapping: {channel}';
55$messages['mapping_label'] = 'Mapping';
56$messages['export_title'] = 'Export to channel';
57$messages['export_question'] = 'Export the product to {channel} now?';
58$messages['export_hint'] = 'The connector only sends when the required provider credentials and mandatory fields are available. Status and response are stored with the product.';
59$messages['export_button_title'] = 'Export to this channel';
60
61$addField = function($name, $type, $label, $rules, $tpl, $extra = array()) use (&$fields) {
62 $field=array();
63 $field['name']=$name;
64 $field['type']=$type;
65 $field['index']='';
66 $field['length']=$extra['length'] ?? '';
67 $field['default']=$extra['default'] ?? '';
68 $field['label']=$label;
69 $field['rules']=$rules;
70 $field['tooltip']=$extra['tooltip'] ?? '';
71 $field['errormsg']=$extra['errormsg'] ?? '';
72 $field['placeholder']=$extra['placeholder'] ?? '';
73 $field['convert']='';
74 $field['protect']='0';
75 $field['mask']='';
76 $field['data']=$extra['data'] ?? '';
77 $field['options']=$extra['options'] ?? '';
78 $field['tpl']=$tpl;
80};
81
82$addField('sku','varchar','Product number','parameter|min=2|max=80','text-label');
83$addField('slug','varchar','URL name','parameter|min=2|max=120','text-label');
84$addField('title','varchar','Title','*|min=2|max=180','text-label');
85$addField('category','varchar','Category','parameter|max=80','select-single-label',array('options'=>'Software=Software&Dienstleistung=Services&Merchandise=Merchandise'));
86$addField('product_group_id','int','Product group','int','select-single-label');
87$addField('product_type','varchar','Product type','parameter|max=24','select-single-label',array('options'=>'digital=Digital&service=Services&physical=Physical'));
88$addField('summary','varchar','Short description','*|max=255','textarea-label',array('data'=>'rows=2'));
89$addField('description','mediumtext','Description','*|max=5000','textarea-label',array('data'=>'rows=6'));
90$addField('price_gross','decimal','Gross price','decimal','text-label');
91$addField('tax_mode','varchar','VAT Source','parameter|max=24','select-single-label',array('options'=>'group=From group&individual=Individual'));
92$addField('tax_rate','decimal','VAT % individual','decimal','text-label');
93$addField('shipping_mode','varchar','Dispatch source','parameter|max=24','select-single-label',array('options'=>'group=From group&individual=Individual'));
94$addField('shipping_gross','decimal','Shipment gross individually','decimal','text-label');
95$addField('stock','int','Stock','int','text-label');
96$addField('active','int','Active','int','checkbox-label',array('default'=>'1'));
97$addField('sorter','int','Sorting','int','text-label');
98$addField('badge','varchar','Badge','*|max=80','text-label');
99$addField('image_icon','varchar','icon','parameter|max=80','text-label');
100$addField('logo_variant','varchar','Logo variant','parameter|max=80','text-label');
101?>
$messages
Definition config.fd.php:2
if($web->content_permalink_redirect_target() !=='') $tpl