Advertisement
Northys

Untitled

Jul 22nd, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. // if there are any changes update product in database
  2. if ($price != $product->getPrice() OR $availability != $product->getAvailability() OR $action != $product->getAction()) {
  3.     if ($product->update($price, $availability, $action)) {
  4.         $log['success'][] = $product->getName();
  5.     } else {
  6.         $log['error'][] = $product->getName();
  7.     }
  8. } else {
  9.     $log['unchanged'][] = $product->getName();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement