Jump to content

COD (cach on delivery) small problem with message


Karolek

Recommended Posts

 

Hey,

COD and Ship2pay plugin, prestashop 1.6.

 

My problem is that after placing an order PrestaShop sends two e-mails: Placing an order and Order fulfillment. I want the message ORDER COMPLETION not to be sent. Because first I have to check the order. I can not find an option how to change it.

Link to comment
Share on other sites

If someone have this problem:
 

validation.php

 

if (Tools::getValue('confirm'))
		{
			$customer = new Customer((int)$this->context->cart->id_customer);
			$total = $this->context->cart->getOrderTotal(true, Cart::BOTH);
			$this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);
			Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder);
		}

This is good: 

get('PS_OS_CHEQUE')

 

  • Sad 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...