Usunięto pliki .DS_Store oraz dodano warunek sprawdzający status sklepu przed aktualizacją statusu zamówienia w cron.php.
This commit is contained in:
BIN
autoload/.DS_Store
vendored
BIN
autoload/.DS_Store
vendored
Binary file not shown.
BIN
autoload/front/.DS_Store
vendored
BIN
autoload/front/.DS_Store
vendored
Binary file not shown.
5
cron.php
5
cron.php
@@ -710,7 +710,10 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se
|
||||
$shop_status_id = \front\factory\ShopStatuses::get_shop_status_by_integration_status_id( 'apilo', $responseData['status'] );
|
||||
|
||||
$order_tmp = new Order( $order['id'] );
|
||||
$order_tmp -> update_status( $shop_status_id, false );
|
||||
|
||||
if ( $shop_status_id )
|
||||
$order_tmp -> update_status( $shop_status_id, false );
|
||||
|
||||
$order_tmp -> update_aplio_order_status_date( date( 'Y-m-d H:i:s' ) );
|
||||
echo '<p>Zaktualizowałem status zamówienia <b>' . $order['number'] . '</b></p>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user