Adding Custom Field - from Order table to Email

  • Posts: 152
  • Thank you received: 1
10 years 1 week ago #179459

-- url of the page with the problem -- : devsite
-- HikaShop version -- : latest
-- Joomla version -- : latest
-- PHP version -- : latest
-- Browser(s) name and version -- : latest

Hey Guys,

Been looking cant find what I need. I have a site where users purchase an Item and on confirmation admin needs to give verification number. Number is added via a custom field to the ORDER table. Users dont see the field on first order creation. But only on confirmation email from Site Admin/ Management.

The order comes in and is edited at the backend where the verification code is added, then the order is confirmed and the user recieves the email with the whole order detail a nd that will need to include the custom field data : verification-number.

Help me please :)


Believe in Better

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 1 week ago #179462

Hi,

You can add such tag in your order status notification that you can edit via the menu System>Emails:
{VAR:order.verification-number}

This supposes that the column name of the custom order field is "verification-number"

The following user(s) said Thank You: nowherenowhere

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

  • Posts: 152
  • Thank you received: 1
10 years 1 week ago #179567

Hiya Nicolas,

That did the trick - so simple! I love this component!

Another question, would it be possible to have multiple instances of this custom field show up? I mean could I assign this field to apply to a certain type of product - so if the buyer adds a few of them to the cart mulitple instances of the field are drawn up... So for each of product type x - the custom field is added... and for each one that is added the verification code is unique?


Believe in Better

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 week ago #179578

Hi,

You can use the custom product field for that. Once create the custom field, you can set the verification code in the product edition page so you will have unique verification codes.

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

Time to create page: 0.042 seconds
Powered by Kunena Forum