diff --git a/modules/product/src/Entity/Product.php b/modules/product/src/Entity/Product.php
index 2e984208..6270f90e 100644
--- a/modules/product/src/Entity/Product.php
+++ b/modules/product/src/Entity/Product.php
@@ -299,7 +299,7 @@ class Product extends CommerceContentEntityBase implements ProductInterface {
   /**
    * {@inheritdoc}
    */
-  public static function postDelete(EntityStorageInterface $storage, array $entities) {
+  public static function preDelete(EntityStorageInterface $storage, array $entities) {
     // Delete the product variations of a deleted product.
     $variations = [];
     foreach ($entities as $entity) {
@@ -307,6 +307,12 @@ class Product extends CommerceContentEntityBase implements ProductInterface {
         continue;
       }
       foreach ($entity->variations as $item) {
+        // Get all the entity ids for variations_target_id.
+        $entity_ids = self::queryEntityIds ($item->target_id);
+        // Do not delete variation if it is referenced by more than one entity.
+        if (count($entity_ids) > 1) {
+          continue;
+        }
         $variations[$item->target_id] = $item->entity;
       }
     }
@@ -314,6 +320,25 @@ class Product extends CommerceContentEntityBase implements ProductInterface {
     $variation_storage->delete($variations);
   }
 
+  /**
+   * Helper function for preDelete().
+   * @param $target_id
+   * @return array
+   */
+  private static function queryEntityIds ($target_id) {
+    $connection = \Drupal::database();
+    $query      = $connection -> select('commerce_product__variations', 'v')
+                ->fields('v', array('entity_id'))
+                ->condition('v.variations_target_id', $target_id);
+    $data       = $query -> execute();
+    $results    = $data  -> fetchAll(\PDO::FETCH_OBJ);
+    $entity_ids = [];
+    foreach ($results as $row) {
+      $entity_ids[] = $row -> entity_id;
+    }
+    return $entity_ids;
+  }
+
   /**
    * {@inheritdoc}
    */
