Jump to content

Add new custom file to order (step 2) process

Recommended Posts



How to do that ? My modification fail....


I've add new input field in order-carrier.tpl:


<input type="text" class="hidden" name="dateDel" id="dateDel" value="22222" />


to Class/Order.php


public $dateDel;


protected $fieldsValidate = array('dateDel' => 'isString', ....................


protected $webserviceParameters = array( 'fields' => array( 'dateDel' => array('xlink_resource'=> 'carriers'),......................


public function getFields()



$fields['dateDel'] = $this->dateDel;



to mysql table ps_orders:


dataDel (varchar)

Share this post

Link to post
Share on other sites

Ok I've solved this issue .

Additionally I've added line in file classes\PaymentModule.php


public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false)



$order->dateDel = $cart->dateDel;

Share this post

Link to post
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...

Important Information

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