waflessnet

Prestashop FIX importDetailsOrders

Aug 27th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1.                 if (isset($product['id_product']))
  2.                 {
  3.                     if ($product['id_product'] == $id_product)
  4.                         $this->errors[] = sprintf($this->l('Product (%d/%D) cannot be added twice (at line %d).'), $id_product,
  5.                             $id_product_attribute, $current_line + 1);
  6.                     else
  7.                         $product['id_product'] = $id_product;
  8.                 }
  9.                 else
  10.                     $product['id_product'] = 0;
Advertisement
Add Comment
Please, Sign In to add comment