<?php $total = 0; $pm = PaymethodData::getById($_POST["paymethod_id"]); $iva = ConfigurationData::getByPreffix("general_iva")->val; $coin_symbol = ConfigurationData::getByPreffix("general_coin")->val; $ivatxt = ConfigurationData::getByPreffix("general_iva_txt")->val; ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php if (!isset($_SESSION["client_id"])) { ?> <p class="alert alert-danger">Debes registrarte e iniciar sesion para proceder.</p> <?php } ?> </div> </div> <div class="row"> <div class="col-md-12"> <?php if (isset($_SESSION["cart"]) && count($_SESSION["cart"] > 0)) { ?> <h2>Confirmacion de compra</h2> <h4>Metodo de pago: <b><?php echo $pm->name;
<?php if (isset($_SESSION["admin_id"])) { $pm = PaymethodData::getById($_GET["id"]); //print_r($pm); if (!$pm->is_active) { $pm->is_active = 1; $pm->update_active(); } else { $pm->is_active = 0; $pm->update_active(); } Core::redir("./?view=payment_settings"); }
public function getPaymethod() { return PaymethodData::getById($this->paymethod_id); }