first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* SOTESHOP/stDelivery
*
* Ten plik należy do aplikacji stDelivery opartej na licencji (Professional License SOTE).
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
*
* @package stDelivery
* @subpackage configs
* @copyright SOTE (www.sote.pl)
* @license http://www.sote.pl/license/sote (Professional License SOTE)
* @version $Id: config.php 15816 2011-10-27 11:08:53Z marcin $
* @author Marcin Olejniczak <marcin.olejniczak@sote.pl>
*/
/**
* Włączanie modułów
*/
if (SF_APP == 'frontend')
{
stPluginHelper::addEnableModule('stDeliveryFrontend');
stPluginHelper::addRouting('stDeliveryFrontend', '/delivery/:action/*', 'stDeliveryFrontend', 'list');
}
else
{
stPluginHelper::addEnableModule('stDeliveryBackend');
stPluginHelper::addRouting('stDelivery', '/delivery/:action/*', 'stDeliveryBackend', 'list');
stSocketView::addComponent('stDeliveryBackend.configCustom.Content','stDeliveryBackend','configContent');
stConfiguration::addModule(array('label' => 'Dostawy', 'route' => '@stDelivery?action=config', 'icon' => 'stDelivery', 'name' => 'stDeliveryBackend'), 'Konfiguracja modułów');
}

View File

@@ -0,0 +1,250 @@
---
propel:
_attributes:
defaultIdMethod: native
package: plugins.stDeliveryPlugin.lib.model
st_delivery:
_attributes:
phpName: Delivery
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
countries_area_id:
type: INTEGER
foreignTable: st_countries_area
foreignReference: id
onDelete: setnull
tax_id:
type: INTEGER
foreignTable: st_tax
foreignReference: id
onDelete: setnull
type_id:
type: INTEGER
foreignTable: st_delivery_type
foreignReference: id
onDelete: setnull
free_delivery:
type: DECIMAL
size: 10
scale: 2
default: 0
is_express_delivery:
type: BOOLEAN
always_charge_express_delivery_cost:
type: BOOLEAN
default: 0
express_delivery_cost_netto:
type: DECIMAL
size: 10
scale: 2
express_delivery_cost_brutto:
type: DECIMAL
size: 10
scale: 2
express_delivery_order_time_limit:
type: CHAR
size: 5
is_weekend_delivery:
type: BOOLEAN
always_charge_weekend_delivery_cost:
type: BOOLEAN
default: 0
weekend_delivery_cost_netto:
type: DECIMAL
size: 10
scale: 2
weekend_delivery_cost_brutto:
type: DECIMAL
size: 10
scale: 2
weekend_delivery_availability:
type: VARCHAR
size: 255
phpType: array
active:
type: BOOLEAN
allow_in_selected_products:
type: BOOLEAN
required: true
default: 0
default_cost:
type: DECIMAL
size: 10
scale: 2
default: 0
default_cost_brutto:
type: DECIMAL
size: 10
scale: 2
width:
type: INTEGER
default: 0
required: true
height:
type: INTEGER
default: 0
required: true
depth:
type: INTEGER
default: 0
required: true
volume:
type: INTEGER
default: 0
required: true
is_system_default:
type: BOOLEAN
default: 0
opt_name:
type: VARCHAR
size: 255
opt_description:
type: LONGVARCHAR
is_default:
type: BOOLEAN
default: 0
section_cost_type:
type: VARCHAR
size: 32
max_order_weight:
type: DECIMAL
size: 6
scale: 2
default: 0
max_order_amount:
type: DECIMAL
size: 10
scale: 2
default: 0
max_order_quantity:
type: INTEGER
default: 0
min_order_weight:
type: DECIMAL
size: 6
scale: 2
default: 0
min_order_amount:
type: DECIMAL
size: 10
scale: 2
default: 0
min_order_quantity:
type: INTEGER
default: 0
position:
type: INTEGER
default: 0
params:
type: VARCHAR
size: 4096
phpType: array
tracking_url:
type: VARCHAR
size: 255
_indexes:
delivery_active:
- max_order_amount
- max_order_quantity
- max_order_weight
- active
type_id_idx:
- type_id
st_delivery_type:
_attributes:
phpName: DeliveryType
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
name:
type: VARCHAR
size: 128
required: true
type:
type: VARCHAR
size: 16
st_delivery_sections:
_attributes:
phpName: DeliverySections
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
delivery_id:
type: INTEGER
required: true
foreignTable: st_delivery
foreignReference: id
onDelete: cascade
value_from:
type: DECIMAL
size: 10
scale: 2
default: 0
amount:
type: DECIMAL
size: 10
scale: 2
default: 0
amount_brutto:
type: DECIMAL
size: 10
scale: 2
st_delivery_has_payment_type:
_attributes:
phpName: DeliveryHasPaymentType
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
payment_type_id:
type: INTEGER
required: true
foreignTable: st_payment_type
foreignReference: id
onDelete: cascade
delivery_id:
type: INTEGER
required: true
foreignTable: st_delivery
foreignReference: id
onDelete: cascade
is_active:
type: BOOLEAN
default: 0
is_default:
type: BOOLEAN
default: 0
cost:
type: DECIMAL
size: 10
scale: 2
default: 0
cost_brutto:
type: DECIMAL
size: 10
scale: 2
free_from:
type: DECIMAL
size: 10
scale: 2
default: 0
cost_type:
type: CHAR
default: 'P'
required: true
courier_cost:
type: DECIMAL
size: 10
scale: 2

View File

@@ -0,0 +1,34 @@
propel:
_migration: {from_schema: stDelivery.schema.yml}
st_delivery:
_attributes:
phpName: Delivery
isI18N: true
i18nTable: st_delivery_i18n
opt_name: {change_column: name}
opt_description: {change_column: description}
st_delivery_i18n:
_attributes:
phpName: DeliveryI18n
id:
type: integer
required: true
primaryKey: true
foreignTable: st_delivery
foreignReference: id
onDelete: cascade
culture:
isCulture: true
primaryKey: true
type: VARCHAR
size: 7
name:
type: VARCHAR
size: 255
description:
type: LONGVARCHAR
st_delivery_sections:
_attributes:
phpName: DeliverySections

View File

@@ -0,0 +1,5 @@
propel:
st_product:
_attributes: {phpName: Product}
weight:
type: FLOAT