Revision 324

Date:
2013/04/29 14:31:52
Author:
ahitrov
Revision Log:
Special-priced positions that do not include in discount game
Files:

Legend:

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

     
    120 120 my $found_sum = 0;
    121 121 foreach my $bi ( @$basket ) {
    122 122 warn "BASKET: Item id [".$bi->item_id."]\n";
    123 next unless $bi->price_special;
    123 124 foreach ( @$items) {
    124 125 warn "BASKET: Item [".$_->name."] id [".$_->id."]\n";
    125 126 if ( $bi->item_id == $_->id ) {
  • utf8/plugins/webshop/lib/webshop/SQL/Basket.pm

     
    108 108 'db_type' => 'float',
    109 109 'db_opts' => "default 0",
    110 110 },
    111 {
    112 'attr' => 'special_price',
    113 'type' => 'checkbox',
    114 'rusname' => 'Акция! (скидки не действуют)',
    115 'db_field' => 'special_price',
    116 'db_type' => 'integer',
    117 'db_opts' => "default 0",
    118 },
    111 119 { # ID заказа
    112 120 'attr' => 'order_id',
    113 121 'type' => 'integer',
  • utf8/plugins/webshop/sql/TOAST/basket.sql

     
    16 16 session text,
    17 17 number integer default 0,
    18 18 price float default 0,
    19 special_price integer default 0,
    19 20 name text,
    20 21 data text
    21 22 );