Example #1
0
 /**
  * Deletes a product option fee.
  *
  * @param int $option_id Product option ID.
  * @param int $id        Product option fee ID.
  *
  * @return void
  */
 public function delete_index($option_id = null, $id = null)
 {
     $option = $this->get_option($option_id);
     $fee = $this->get_fee($id, $option);
     $deleted = \Service_Product_Option_Fee::delete($fee);
     if (!$deleted) {
         throw new HttpServerErrorException();
     }
 }