Jump to content

nicolasdanelon

Members
  • Posts

    10
  • Joined

  • Last visited

About nicolasdanelon

  • Birthday 08/20/1988

Contact Methods

Profile Information

  • Location
    Argentina
  • Activity
    Developer

nicolasdanelon's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. el problema es que los usuarios de la tienda se pieden el proceso de compra. necesito sacar ese paso. necesito validar el proceso de compra acá para luego cuando ellos confirmen todo vayan al gateway de pagos y ahi pongan sus datos de tarjeta de credito y bla bla
  2. si, tenes toda la razón. Hay algo raro.. Cómo se valida la compra/pedido? que me está faltando? tenés algún código a mano?
  3. existe, lo veo en el panel de administración
  4. si, el pedido existe es solo que las cosas pasan en diferentes metodos y en diferentes partes Ahora esta funcionado. gracias!
  5. Resuelto : http://www.prestashop.com/forums/topic/192541-order-reference-in-15-uppercase-replace-with-number/page-2 <?php /* -- */ $query = new DbQuery(); $query->select('id_order'); $query->from('orders'); $query->where('id_cart = ' . (int)$cart->id); $query->orderBy('id_order'); $order = Db::getInstance()->getRow($query); $order = (int)$order['id_order'];
  6. Solved : http://www.prestashop.com/forums/topic/192541-order-reference-in-15-uppercase-replace-with-number/page-2 <?php /* -- */ $query = new DbQuery(); $query->select('id_order'); $query->from('orders'); $query->where('id_cart = ' . (int)$cart->id); $query->orderBy('id_order'); $order = Db::getInstance()->getRow($query); $order = (int)$order['id_order'];
  7. algun link de referencia? algo de código PHP por favor gracias por la buena predispoción, en serio!
  8. Estimado pense que esa variable venia heredada de otra clase o algo asi. Pude usarla pero perdi su referencia y honestamente estoy perdido en este momento. Se te ocurre como ayudarme? Gracias y saludos
  9. So this modules is a copy of bankwire but with some changes. This is the file modulename / controllers / front / payment.php I can't get the order id ! what I'm doing wrong? <?php class ModuleNamePaymentModuleFrontController extends ModuleFrontController { public $ssl = true; public function initContent() { $this->display_column_left = false; parent::initContent(); $cart = $this->context->cart; if (!$this->module->checkCurrency($cart)) Tools::redirect('index.php?controller=order'); $currency = $this->context->currency; $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $mailVars = NULL; $customer = new Customer($cart->id_customer); $this->module->validateOrder($cart->id, 17, $total, 'Tarjeta de Crédito', NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); $this->context->smarty->assign(array( 'id_order' => $id_order, // why this is NULL ? 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->module->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'this_path' => $this->module->getPathUri(), 'this_path_bw' => $this->module->getPathUri(), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/' )); $this->setTemplate('payment_execution.tpl'); } } please help!
  10. Hola a todos! tengo el siguiente problema no puedo obtener el id_order u order_id en mi modulo de pagos. Es basicamente una copia de banckwire pero con varias modificaciones les dejo el archivo modulename / controllers / front / payment.php <?php class ModuleNamePaymentModuleFrontController extends ModuleFrontController { public $ssl = true; public function initContent() { $this->display_column_left = false; parent::initContent(); $cart = $this->context->cart; if (!$this->module->checkCurrency($cart)) Tools::redirect('index.php?controller=order'); $currency = $this->context->currency; $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $mailVars = NULL; $customer = new Customer($cart->id_customer); $this->module->validateOrder($cart->id, 17, $total, 'Tarjeta de Crédito', NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); $this->context->smarty->assign(array( 'id_order' => $id_order, // why this is NULL ? 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->module->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'this_path' => $this->module->getPathUri(), 'this_path_bw' => $this->module->getPathUri(), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/' )); $this->setTemplate('payment_execution.tpl'); } } ayuda por favoor! gracias
×
×
  • Create New...