Problems with custom fields for billing and shipping address not appearing on in

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
5 days 2 hours ago #366054

-- url of the page with the problem -- : ilvasapolli.it
-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.2
-- PHP version -- : 8.1.27
-- Browser(s) name and version -- : Chrome

I created a series of custom fields that appear in the checkout to complete the billing information and the delivery address.
So far so good. The fields are filled in correctly and appear in the customer account. Screenshot1
However, when I print the invoice and the transport document (I use the pdf invoice plugin, but even without it the problem remains), these fields do not appear.
I tried to look in the templates, but I did not find the one for the invoice, nor the one for the transport document.
What should I do?
In addition, the pdf invoice plugin does not send the copy of the invoice in BCC to the email I entered. Screenshot2

Attachments:

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

  • Posts: 83397
  • Thank you received: 13489
  • MODERATOR
4 days 22 hours ago #366055

Hi,

You want to add the corresponding tags in the "address format" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/5...ml#checkout_shipping

Do you get the invoice in the email to the customer ? Can you make sure that you don't have extra space before or after the email address in the input field ? Note that alternatively, you can add the email address in the "BCC" field of the "order status notification" email via the System>Emails menu.

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
4 days 6 hours ago #366061

Ok we solved the problem of the fields in the invoice. We would also like to add the customer email, but we did not find the tag. It should be something like {email_user} can you tell us what it is exactly?

Instead the generate PDF invoice plugin does not work at all. Not only does it not send the copy of the invoice to the address in BCC, but it does not even send it to the customer. This, for us, is a major problem.

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

  • Posts: 4805
  • Thank you received: 652
  • MODERATOR
3 days 22 hours ago #366068

Hello,

You have in each email edition your data tag, here in the "Html version" part :



For your question your required tag is "{VAR:customer.email}".
Hope this will help you.
Regards

Last edit: 4 days 46 minutes ago by Philip.

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
1 day 6 hours ago #366088

Sorry, but that TAG doesn't work. (Screenshot1 and Screenshot2).
Also for some reason that I don't know in the shipping address it inserts the customer's name twice (Screenshot2)

Attachments:

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

  • Posts: 83397
  • Thank you received: 13489
  • MODERATOR
1 day 2 hours ago #366089

Hi,

The tag Philippe proposed is to add the email address in the emails HTML when you edit them via the menu System>Emails.
You can't use that tag in the address format setting.

To display the email address directly inside the address area, you would need to actually use PHP code. Something like this should do the trick:

<?php
$userClass = hikashop_get('class.user');
$user = $userClass->get($this->address->address_user_id);
echo $user->user_email;
?>

Regarding your issue with the shipping address, I don't think the problem is in HikaShop but in the address itself. I'm suspecting a bad copy / paste when you made your tests. Could you please double check with another order with another user account ?

Regarding your issue with the email to the customer not being sent, the problem is not in the PDF invoice plugin. The PDF invoice plugin is only adding the PDF file to the email when it is being sent by HikaShop. If HikaShop doesn't send the email, or if your email server refuses to relay the email, then the plugin can't do anything.

Normally, after a payment is made by a customer for an order, the payment gateway sends a notification to the payment plugin you configured on your website. That plugin checks the notification, and changes the status of the order from "created" to "confirmed" automatically. At that point, HikaShop generates the "order status notification" email and sends it to the customer. And the PDF invoice plugin can add the PDF to the email when it is generated.
So, knowing all that, there are several things you can check:
- is the status of the orders changed from "created" to "confirmed" automatically after the payments on your website ? If not, then, there is a problem with the payment method settings, or the payment plugin.
- is the "order status notification" email enabled in the System>Emails menu ? If not, you should enable it.
- are you able to send a test email in the joomla configuration page ? www.tassos.gr/docs/convert-forms/trouble...#check_mail_settings
- do you see the generated "order status notification" emails for your orders in the Customers>Email history menu ? If yes, then HikaShop did send the email but it was blocked by the email server of your hosting, or the email server of the receiver. In that case, and supposing you're able to send a test email in Joomla, you'll likely want to contact your hosting provider support for help with the deliverability of these emails.

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
1 day 2 hours ago #366093

I'll answer you by points:

1. TAG address. I inserted the php script and now it's ok.

2. Double address. I don't know why, but it's actually only in that order. In the others it's ok.

3. I can't check if the email to the customer about the order status arrives with the pdf attached, but I'm not interested in that. I'm more interested in it arriving in BCC to the address I entered in the plugin. This, for the moment, is not happening, but I have to wait for the next order. Only then will I be able to tell you if it works.

4. All checks on sending the email are regular, including history.

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
23 hours 40 minutes ago #366104

They placed a new order.

The addresses are fine. The confirmation emails went out, but the pdf attachment is missing.

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

  • Posts: 83397
  • Thank you received: 13489
  • MODERATOR
20 hours 7 minutes ago #366105

Hi,

Then, could you provide a backend access via our contact form in order to check things out on your website ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
6 hours 27 minutes ago #366113

Ok. I entered the data for the access. In the meantime we noticed that the insertion of the customer email as you sent us the php script, works in the invoices, but in the confirmation emails it creates the button that you can see in Screenshot1.

Attachments:

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

  • Posts: 83397
  • Thank you received: 13489
  • MODERATOR
4 hours 7 minutes ago #366114

Hi,

1. Thanks for the backend access. I checked what I needed. Everything is ok as far as I can see.
However, I can see that you're using HikaShop 5.0.0, and not the 5.0.3 as you stated in your first message. We actually made several fixes for email attachments with HikaShop 5.0.1. So updating HikaShop might actually be all that you need to fix the problem.

Otherwise, it could be another problem but I would need to do tests on the website. Creating an order assigned to myself, and changing its status to trigger the email sending processing. Would you allow me to do that or is it a problem with your management of the website if I do this ?

2. That's not what I see on my end:
i.imgur.com/eCvbdvI.png
As far as I can see, the email address, as well as the URL to access the order are just fine.
Could it be that your email client or your browser or one of its extensions is doing this ?

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

  • Posts: 31
  • Thank you received: 5
  • Hikaserial Subscription Hikashop Business
3 hours 27 minutes ago #366119

Let's do this. First I'll try to update. If the problem occurs again, we'll do the test you mentioned.
For the order email with the buttons instead of emails I need to talk to my technicians. I'll let you know.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.099 seconds
Powered by Kunena Forum