Jump to content

[Free Module] Phome Payment Prestashop 1.5.x.x


Recommended Posts

Phone Payment Module Prestashop 1.5.

 

With this module you can offer your customers a customized payment alternative,

as a via telephone agreement is. You can agree the best payment option for your customer, delivery, payments, etc.

 

At the same time you can attract those customers who are frightened about introducing their credit cards data on a web site,

for you will attend your customer by phone to clear up all doubts and solve the payment mode.

 

The module is versatile, you can adapt its design the way you like it most.

It works with two optionals to add extra information and mobile phone.

 

 

Enjoy!! :P

3_5_phonepayment.zip

Edited by tamu secreto (see edit history)

Share this post


Link to post
Share on other sites
  • 4 weeks later...
  • 2 months later...

Phone Payment Module Prestashop 1.5.

 

With this module you can offer your customers a customized payment alternative,

as a via telephone agreement is. You can agree the best payment option for your customer, delivery, payments, etc.

 

At the same time you can attract those customers who are frightened about introducing their credit cards data on a web site,

for you will attend your customer by phone to clear up all doubts and solve the payment mode.

 

The module is versatile, you can adapt its design the way you like it most.

It works with two optionals to add extra information and mobile phone.

 

 

Enjoy!! :P

 

Hello !! thank you for share this module !!! I need to know if I can use the for PS 1.4.9, I try to use is but I get follow error when I try to access to payment method section:

 

Fatal error: Call to a member function assign() on a non-object in/home/joao/public_html/modules/phonepayment/phonepayment.php on line 407

 

I checked the php file and at this line we can find follow:

 

 

 

403 public function hookPayment($params)

404 {

405 if (!$this->active) return;

406 if (!$this->checkCurrency($params['cart'])) return;

407 $this->smarty->assign(array(

408 'this_path' => $this->_path,

409 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/'

410 ));

411 return $this->display(__FILE__, 'payment.tpl');

412 }

 

Can you please help me with that ?? than you very much in advance.

 

Regards

Share this post


Link to post
Share on other sites
  • 1 year later...
  • 4 months later...

Hola! Cuando hago click en confirmar orden Firefox me hace una advertencia de seguridad

 

"Aunque esta página está cifrada, la información que ha ingresado va a ser enviada sobre una conexión sin cifrar y podría ser leída fácilmente por otras personas."

 

Alguna idea de porque? tengo SSL activado (certificado instalado tambien)

link:

http://tecnostores.com.ar/testing (es necesaria contraseña para ver)

usuario: tecnotest

passw: paysandu1527

Gracias / Thanks

Share this post


Link to post
Share on other sites
  • 6 months later...

Hello, i added this module and got this error after making payment:

 

[PrestaShopException]

Property Order->payment is empty
at line 866 in file classes/ObjectModel.php

861.
862.             $message = $this->validateField($field, $this->$field);
863.             if ($message !== true)
864.             {
865.                 if ($die)
866.                     throw new PrestaShopException($message);
867.                 return $error_return ? $message : false;
868.             }
869.         }
870.
871.         return true;
  • ObjectModelCore->validateFields - [line 272 - classes/ObjectModel.php]
    267.      *
    268.      * @return array All object fields
    269.      */
    270.     public function getFields()
    271.     {
    272.         $this->validateFields();
    273.         $fields = $this->formatFields(self::FORMAT_COMMON);
    274.
    275.         // For retro compatibility
    276.         if (Shop::isTableAssociated($this->def['table']))
    277.             $fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 299 - classes/order/Order.php]
    294.     public function getFields()
    295.     {
    296.         if (!$this->id_lang)
    297.             $this->id_lang = Configuration::get('PS_LANG_DEFAULT', null, null, $this->id_shop);
    298.
    299.         return parent::getFields();
    300.     }
    301.
    302.     public function add($autodate = true, $null_values = true)
    303.     {
    304.         if (parent::add($autodate, $null_values))
  • OrderCore->getFields - [line 480 - classes/ObjectModel.php]
    475.         }
    476.
    477.         // Database insertion
    478.         if (Shop::checkIdShopDefault($this->def['table']))
    479.             $this->id_shop_default = min($id_shop_list);
    480.         if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
    481.             return false;
    482.
    483.         // Get object id in database
    484.         $this->id = ObjectModel::$db->Insert_ID();
    485.
  • ObjectModelCore->add - [line 304 - classes/order/Order.php] - [2 Arguments]
    299.         return parent::getFields();
    300.     }
    301.
    302.     public function add($autodate = true, $null_values = true)
    303.     {
    304.         if (parent::add($autodate, $null_values))
    305.             return SpecificPrice::deleteByIdCart($this->id_cart);
    306.         return false;
    307.     }
    308.
    309.     public function getTaxCalculationMethod()
  • OrderCore->add - [line 335 - classes/PaymentModule.php]
    330.
    331.                     if (self::DEBUG_MODE)
    332.                         PrestaShopLogger::addLog('PaymentModule::validateOrder - Order is about to be added', 1, null, 'Cart', (int)$id_cart, true);
    333.
    334.                     // Creating order
    335.                     $result = $order->add();
    336.
    337.                     if (!$result)
    338.                     {
    339.                         PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true);
    340.                         throw new PrestaShopException('Can\'t save Order');
  • PaymentModuleCore->validateOrder - [line 45 - modules/phonepayment/controllers/front/validation.php] - [9 Arguments]
    40.         $mailVars = array('{telefono_pp}' => Configuration::get('TELEFONO_PP'),
    41.          '{horario_pp}' => Configuration::get('HORARIO_PP'),
    42.                          '{comentario_pp}' => nl2br(Configuration::get('COMENTARIO_PP')));
    43.                                         
    44.
    45. $this->module->validateOrder($cart->id, Configuration::get('PS_OS_PHONEPAYMENT'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
    46.         
    47.         Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
    48.         
    49.      }
    50.     
  • PhonePaymentValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
    166.             // setMedia MUST be called before postProcess
    167.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    168.                 $this->setMedia();
    169.
    170.             // postProcess handles ajaxProcess
    171.             $this->postProcess();
    172.
    173.             if (!empty($this->redirect_after))
    174.                 $this->redirect();
    175.
    176.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
  • ControllerCore->run - [line 374 - classes/Dispatcher.php]
    369.             // Execute hook dispatcher
    370.             if (isset($params_hook_action_dispatcher))
    371.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    372.
    373.             // Running controller
    374.             $controller->run();
    375.         }
    376.         catch (PrestaShopException $e)
    377.         {
    378.             $e->displayMessage();
    379.         }
  • DispatcherCore->dispatch - [line 28 - index.php]
    23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
    24. * International Registered Trademark & Property of PrestaShop SA
    25. */
    26.
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();
 
My version is 1.6.0.11
so if someone know how to fix it, it will be OK to use with 1.6, it's a very useful module.
Thank you!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More