Jump to content

[solved] what .php file uses order-opc-new-account.tpl file ?


Recommended Posts

well, in this case there is no simple answer. You should know something about prestashop - how the MVC (model - view - controller) works. Prestashops is based on MVC. It mean that each .tpl file have got own controller.

 

Controllers are located in the /controllers/front directory.

 

in this case you have to check the controllers/front/OrderOpcController.php file

Link to comment
Share on other sites

Okay I will learn. I want to ask this because there is an interesting think in order-opc-new-account.tpl there is two input field and two of them write to same database cell.

 

<input type="text" class="text" name="vat_number" id="vat_number" value="" />

 

<input type="text" class="text" id="vat_number_invoice" name="vat_number_invoice" value="" />

 

How can it be? name of input field are different but write to same database cell. ps_address->vat_number

Link to comment
Share on other sites

Okay but I want to add a custom field for example: vat_place. I derived it from vat_number and copy-pasted all vat_number fields. I configured address.php and address.tpl and it is okay. I can add new address when login.

 

Than I configured order-opc-new-account.tpl. When I create delivery and invoice on opc page, delivery-form works well and save vat_place but invoice form doesn't save vat_place_invoice. I think I should configure a different file for it.

Link to comment
Share on other sites

×
×
  • Create New...