Email text not showing when payment is made with creditcard

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 3 months ago #337569

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4

Hi
I have made a custom field at set it to show in emails when CONFIRMED and SENT, when the order is set to CONFIRMED and paid with HikaShop bank transfer payment plugin - the text shows, but not when payment is done with Hikashop Quickpay Payment Plugin.

Any good advice here? :-)

Regards
Thomas



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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 3 months ago #337571

Hi,

I'm not clear on the situation nor what you want to change.
Could you provide:
- a screenshot of the settings of the custom field
- explanation on what you changed so far to get the text display in the email.
- explanation on what you want to change.

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

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 3 months ago #337700

Let me try :-)

This is the custom field:



When I receive a new order I manually fill out the field with some Ticket-info to the customer.
Then when I change the order to confirmed, they get an email with this text along with the order info.
So far so good!

But when the pay with creditcard, this text isn't in the email.
I do the same thing, after I get the order, I manually add the text to the custom field.
Then I head over to capture the payment, in this case QuickPay - Quickpay then sets the order in HikaShop to confirmed and the customer gets the above email, but without the text from the custom field.

I assume the confirm emails are the same wether offline payment or card payment?

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 3 months ago #337705

Hi,

Well, it might. It depends how everything is configured.
So what do you do to add that text to the email ?
What customization did you add to the email in the System>Emails menu ?

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

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 3 months ago #337752

Hi

In the email "Order status notification" I have this in "Preload version"

$ticketinfo = $data->ticketinfo;
if(!empty($data->ticketinfo)) {

 $vars['TICKETINFO'] .= '<p><strong>Billetinfo</strong><br>'. $ticketinfo .'</p>';

}
And {VAR:TICKETINFO} in the HTML version

Last edit: 2 years 3 months ago by nicolas.

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 3 months ago #337762

Hi,

$data->ticketinfo will not be available in the order status notification.
You should have that data in $data->cart->ticketinfo instead.

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

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 3 months ago #337775

Thank you!
So I just have to replace $data->ticketinfo with $data->cart->ticketinfo in my code, or do I need a new custom field?

But how come it gets in the email, when I confirm the order manually?

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

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
2 years 3 months ago #337778

Hi,

$data contains the order data that is being saved.
In most cases, the order data being saved is only what is being changed.
However, it's possible that in some cases, the whole order data is available in $data based on how the saving of the order is being done.
But to avodi any issues, the full order data is being loaded in $data->cart so that we can rely on that in a sure way.

So yes, just replacing $data->ticketinfo with $data->cart->ticketinfo in your code should do it.

The following user(s) said Thank You: Thrane

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

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 3 months ago #337822

Hi Nicolas

I will try that - thanks for always being so helpful!

The following user(s) said Thank You: Philip

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

Time to create page: 0.074 seconds
Powered by Kunena Forum