Add new version 0.238 zip file containing updated ProductRepository and Product class files

This commit is contained in:
2026-02-05 01:53:28 +01:00
parent 16cccac782
commit 3a7be21432
28 changed files with 116323 additions and 5 deletions

View File

@@ -141,6 +141,10 @@ if ( $sellasist_settings['enabled'] and $sellasist_settings['sync_products'] and
$mdb -> update( 'pp_shop_products', [ 'quantity' => $responseData['storages'][0]['quantity'] ], [ 'sellasist_product_id' => $result['sellasist_product_id'] ] );
$mdb -> update( 'pp_shop_products', [ 'sellasist_get_data_date' => date( 'Y-m-d H:i:s' ) ], [ 'sellasist_product_id' => $result['sellasist_product_id'] ] );
// Czyszczenie cache produktu
\S::clear_product_cache( (int)$result['id'] );
echo '<p>Zaktualizowałem dane produktu <b>' . $result['sellasist_product_name'] . ' #' . $result['id'] . '</b></p>';
}
}
@@ -169,6 +173,9 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_products'] and $apilo_
$mdb -> update( 'pp_shop_products', [ 'apilo_get_data_date' => date( 'Y-m-d H:i:s' ) ], [ 'apilo_product_id' => $result['apilo_product_id'] ] );
// Czyszczenie cache produktu
\S::clear_product_cache( (int)$result['id'] );
echo '<p>Zaktualizowałem dane produktu (APILO) <b>' . $result['apilo_product_name'] . ' #' . $result['id'] . '</b></p>';
}
}
@@ -207,6 +214,9 @@ if ( $apilo_settings['enabled'] and $apilo_settings['access-token'] and ( !$apil
$product_id = $mdb -> get( 'pp_shop_products', 'id', [ 'apilo_product_id' => $product_price['product'] ] );
\admin\factory\ShopProduct::update_product_combinations_prices( (int)$product_id, $price_brutto, $vat, null );
// Czyszczenie cache produktu
\S::clear_product_cache( (int)$product_id );
}
}
}
@@ -274,9 +284,11 @@ if ( $baselinker_settings['enabled'] and $baselinker_settings['sync_products'] a
$mdb -> update( 'pp_shop_products', [ 'baselinker_get_data_date' => date( 'Y-m-d H:i:s' ) ], [ 'baselinker_product_id' => $baselinker_product_id ] );
// Czyszczenie cache produktu
\S::clear_product_cache( (int)$result['id'] );
echo '<p>Zaktualizowałem dane produktu <b>' . $baselinker_product['text_fields']['name'] . ' #' . $result['id'] . '</b></p>';
}
\S::clear_redis_cache();
}
else
{