Revision 829

Date:
2021/09/08 16:05:39
Author:
ahitrov
Revision Log:
CDEK

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/lib/webshop/Basket.pm

     
    1 1 package webshop::Basket;
    2 2
    3 3 use base "Contenido::Document";
    4 use Contenido::Globals;
    5
    4 6 sub extra_properties
    5 7 {
    6 8 return (
     
    10 12 [1, 'Элемент корзины'],
    11 13 ],
    12 14 },
    15 { 'attr' => 'item_id', 'type' => 'pickup', 'rusname' => 'ID товара',
    16 'lookup_opts' => {
    17 'class' => $state->{webshop}->item_document_class,
    18 },
    19 'hidden' => undef,
    20 },
    13 21 { 'attr' => 'articul', 'type' => 'string', 'rusname' => 'Артикул' },
    14 22 { 'attr' => 'colour', 'type' => 'string', 'rusname' => 'Цвет' },
    15 23 { 'attr' => 'size', 'type' => 'string', 'rusname' => 'Размер' },
  • utf8/plugins/webshop/lib/webshop/Delivery.pm

     
    33 33 ['address','Адрес'],
    34 34 ['metro','Ближайшее метро'],
    35 35 ['carrier','Название логистической компании'],
    36 ['cdek','CDEK Виджет'],
    36 37 ['boxberry','Boxberry Виджет'],
    37 38 ['axiomus','Аксиомус Виджет'],
    38 39 ],
  • utf8/plugins/webshop/lib/webshop/Init.pm

     
    40 40 webshop::CouponItemLink
    41 41 webshop::DiscountItemLink
    42 42 webshop::OrderCouponLink
    43
    44 webshop::Service::CDEK
    43 45 ));
    44 46
    45 47 sub init {
  • utf8/plugins/webshop/lib/webshop/State.pm.proto

     
    29 29 $self->{item_document_class} = '@ITEM_DOCUMENT_CLASS@' ? [qw( @ITEM_DOCUMENT_CLASS@ )] : ['webshop::Item'];
    30 30 $self->{item_section_class} = '@ITEM_SECTION_CLASS@' ? [qw( @ITEM_SECTION_CLASS@ )] : ['webshop::ItemSection'];
    31 31
    32
    33 $self->{cdek_courier_tariff_priority} = '@CDEK_COURIER_TARIFF_PRIORITY@' ? [qw( @CDEK_COURIER_TARIFF_PRIORITY@ )] : [233, 137, 139, 16, 18, 11, 1, 3, 61, 60, 59, 58, 57, 83];
    34 $self->{cdek_pickup_tariff_priority} = '@CDEK_PICKUP_TARIFF_PRIORITY@' ? [qw( @CDEK_PICKUP_TARIFF_PRIORITY@ )] : [234, 136, 138, 15, 17, 10, 12, 5, 62, 63];
    35 $self->{cdek_account} = '@CDEK_ACCOUNT@' || '';
    36 $self->{cdek_key} = '@CDEK_KEY@' || '';
    37
    32 38 $self->{db_keepalive} = 0;
    33 39 $self->{db_host} = '';
    34 40 $self->{db_name} = '';
     
    78 84 db_user
    79 85 db_password
    80 86 data_directory images_directory binary_directory preview debug store_method cascade memcached_enable
    87 cdek_courier_tariff_priority
    88 cdek_pickup_tariff_priority
    89 cdek_account
    90 cdek_key
    81 91 );
    82 92 }
    83 93