Subversion-Projekte lars-tiefland.ci

Revision

Revision 172 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 172 Revision 173
Zeile 94... Zeile 94...
94
    
94
    
95
                if( data != "" ){
95
                if( data != "" ){
96
                    alert(data) 
96
                    alert(data) 
97
                }else{    
97
                }else{    
98
                    $('#add_basket_msg').dialog("open");
98
                    $('#add_basket_msg').dialog("open");
99
                    $('.warenkorb').load('/module/add_item_to_basket.php', itemArr, function(data){});     
99
                    $('.warenkorb').load('basket/add/', itemArr, function(data){});     
100
                }
100
                }
101
            }
101
            }
102
        })
102
        })
103
    }else{
103
    }else{
104
        $('#add_basket_msg').dialog("open");
104
        $('#add_basket_msg').dialog("open");
105
        $('.warenkorb').load('/module/add_item_to_basket.php', itemArr, function(data){});         
105
        $('.warenkorb').load('/basket/add/',items, function(data){});         
106
    }
106
    }
Zeile 107... Zeile 107...
107
}
107
}
Zeile 126... Zeile 126...
126
    a_id = $(this).attr("id");
126
    a_id = $(this).attr("id");
127
    a_id = a_id.split("_");
127
    a_id = a_id.split("_");
128
    a_id = a_id[1];
128
    a_id = a_id[1];
129
    form_id="basket_"+a_id;
129
    form_id="basket_"+a_id;
130
    alert(form_id);
130
    alert(form_id);
131
    $('.hd_warenkorb').load('/module/add_item_to_basket.php', $('#'+form_id).serialize(), function(data){
131
    $('.hd_warenkorb').load('basket/add/', $('#'+form_id).serialize(), function(data){
132
        document.location.href=buy_link_base+"/basket.html";
132
        document.location.href=buy_link_base+"/basket.html";
133
    });
133
    });
134
}
134
}
Zeile 135... Zeile 135...
135
 
135
 
Zeile 161... Zeile 161...
161
    
161
    
162
                if( data != "" ){
162
                if( data != "" ){
163
                    alert(data) 
163
                    alert(data) 
164
                }else{    
164
                }else{    
165
                    $('#add_basket_msg').dialog("open");
165
                    $('#add_basket_msg').dialog("open");
166
                    $('.warenkorb').load('/module/add_item_to_basket.php?basket=true&item='+item_id+'&Menge='+menge+'&buy=false',function(data){});     
166
                    $('.warenkorb').load('basket/add/?basket=true&item='+item_id+'&Menge='+menge+'&buy=false',function(data){});     
167
                }
167
                }
168
            }
168
            }
169
        })    
169
        })    
170
    }else{
170
    }else{
171
        $('#add_basket_msg').dialog("open");
171
        $('#add_basket_msg').dialog("open");
172
        $('.warenkorb').load('/module/add_item_to_basket.php?basket=true&item='+item_id+'&Menge='+menge+'&buy=false',function(data){});         
172
        $('.warenkorb').load('basket/add/?basket=true&item='+item_id+'&Menge='+menge+'&buy=false',function(data){});         
173
    }
173
    }
Zeile 174... Zeile 174...
174
}
174
}
Zeile 175... Zeile 175...
175
 
175
 
176
function add_item_from_fastOrder( data ){
176
function add_item_from_fastOrder( data ){
177
      
177
      
178
    $('#add_basket_msg').dialog("open");
178
    $('#add_basket_msg').dialog("open");
179
    $.ajax({
179
    $.ajax({
180
        type: "POST",
180
        type: "POST",
181
        url : '/module/add_item_to_basket.php?basket=true&buy=false&mode=fastOrder',
181
        url : 'basket/add/?basket=true&buy=false&mode=fastOrder',
182
        data: data
182
        data: data
183
    }).done(function(html){
183
    }).done(function(html){
Zeile 193... Zeile 193...
193
    z_id = this.id;
193
    z_id = this.id;
194
    z_id = z_id.split("_");
194
    z_id = z_id.split("_");
195
    b_id = z_id[1];
195
    b_id = z_id[1];
196
    m_id = z_id[4];
196
    m_id = z_id[4];
197
    z_id = z_id[3];
197
    z_id = z_id[3];
198
    url='/module/add_item_to_basket.php?basket=true&b_id='+b_id+'&zusatz='+z_id+'&Menge=1&buy=false';
198
    url='basket/add/?basket=true&b_id='+b_id+'&zusatz='+z_id+'&Menge=1&buy=false';
199
    //alert(url);
199
    //alert(url);
200
    $('.hd_warenkorb').load(url,function(data){
200
    $('.hd_warenkorb').load(url,function(data){
201
        document.location.href=buy_link_base+"/basket.html";
201
        document.location.href=buy_link_base+"/basket.html";
202
    });
202
    });
203
}
203
}
Zeile 207... Zeile 207...
207
    z_id = this.id;
207
    z_id = this.id;
208
    z_id = z_id.split("_");
208
    z_id = z_id.split("_");
209
    m_id = z_id[2];
209
    m_id = z_id[2];
210
    z_id = z_id[1];
210
    z_id = z_id[1];
211
    //alert(m_id);
211
    //alert(m_id);
212
    url='/module/add_item_to_basket.php?basket=true&zusatz='+z_id+'&Menge=1&buy=false';
212
    url='basket/add/?basket=true&zusatz='+z_id+'&Menge=1&buy=false';
213
    $('.hd_warenkorb').load(url,function(data){
213
    $('.hd_warenkorb').load(url,function(data){
214
        $('.hd_warenkorb').load("/module/updateBasket.php");
214
        $('.hd_warenkorb').load("/module/updateBasket.php");
215
    });
215
    });
216
}
216
}