[SOLVED] Order creation modification

  • Posts: 4
  • Thank you received: 0
11 years 5 months ago #113076

Hi,
I have created same new fields and I want to insert it in the notification mail after the order details as a separate table.


Thanks

Last edit: 11 years 5 months ago by energiaetrasporti.

Please Log in or Create an account to join the conversation.

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
11 years 5 months ago #113116

Hi,

What kind of fields did you create ?
Could you do a screenshot of the options of one of the fields so that we can see precisely what you did ?

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
11 years 5 months ago #113170

Hi,
simply text field as shown in attachment and I have set them in the table address, because the user will insert the data during the procedure buy changing the billing address. I could display them under teh "Indirizzo di fatturazione"

In the second attachment I would like to insert the field "Targa" just under the first block "Riepilogo ordine".

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #113181

Hi,

I think that you'll just have to edit the files address_template via the menu "Hikashop->Display->Views" and add the tag corresponding to your custom field like this for example :

{YOUR_CUSTOM_FIELD_COLUMN_NAME}
Note that you'll have to replace the YOUR_CUSTOM_FIELD_COLUMN_NAME text by the Column name value of your custom field.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
11 years 5 months ago #113199

Hi,
this procedure will add the field in the billing address area only, instead of I would like to have the possibility to visualize them in the other place of the mail

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #113205

Ok,
Can you show me what your really want to do with some screenshots, it will be really helpfull.

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
11 years 5 months ago #113209

Hi,
I have this new field (file Field.png)

I would like to visualize them in this way (Mail.png)

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
11 years 5 months ago #113355

Then you'll have to edit the email via the menu System>Emails and add such code in it before the billing address area:

<?php $address =& $data->order_addresses[$data->cart->billing_address->address_id]; echo $address->numero_autoveicoli; ?>


That will display the value of the numero_autoveicoli custom address field.

The following user(s) said Thank You: energiaetrasporti

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum