Skip to content

Commit

Permalink
Merge pull request opencart#13958 from opencartbulgaria/master
Browse files Browse the repository at this point in the history
Admin Model catalog/product - deleteStoresByStoreId()
  • Loading branch information
danielkerr authored May 21, 2024
2 parents df34f9d + 9bf52df commit 37c789a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions upload/admin/model/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,17 @@ public function deleteStores(int $product_id): void {
$this->db->query("DELETE FROM `" . DB_PREFIX . "product_to_store` WHERE `product_id` = '" . (int)$product_id . "'");
}

/**
* Delete Stores By Store ID
*
* @param int $store_id
*
* @return void
*/
public function deleteStoresByStoreId(int $store_id): void {
$this->db->query("DELETE FROM `" . DB_PREFIX . "product_to_store` WHERE `store_id` = '" . (int)$store_id . "'");
}

/**
* Get Stores
*
Expand Down

0 comments on commit 37c789a

Please sign in to comment.