Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // if there are any changes update product in database
- if ($price != $product->getPrice() OR $availability != $product->getAvailability() OR $action != $product->getAction()) {
- if ($product->update($price, $availability, $action)) {
- $log['success'][] = $product->getName();
- } else {
- $log['error'][] = $product->getName();
- }
- } else {
- $log['unchanged'][] = $product->getName();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement