Merge branch 'ticket-14285-Dropshipping' into develop

This commit is contained in:
Marion Muszynski 2017-10-02 13:24:32 +02:00
commit 97ec6492c6

View File

@ -2097,11 +2097,12 @@ class Sale {
return false;
}
// Particular and classic but different shipping
// Particular and classic but different shipping (only dropshipping and default shipping can be combinable)
if(
((int)$current_sale['delivery_delay'] == 1 || (int)$current_sale['delivery_delay'] == 9)
&& ((int)$adding_sale['delivery_delay'] == 1 || (int)$adding_sale['delivery_delay'] == 9)
&& (int)$current_sale['shipping'] != (int)$adding_sale['shipping']
&& ((int)$current_sale['shipping'] != (int)$adding_sale['shipping'])
&& (!in_array((int)$current_sale['shipping'],array(0,2)) || !in_array((int)$adding_sale['shipping'],array(0,2)))
){
return false;
}