Email confirmation - Attached pdf error

  • Posts: 40
  • Thank you received: 0
10 years 6 months ago #153776

We're facing an issue with the attached document to the confirmation email. Whenever the productClass = hikashop_get('class.product'); through is called in, it loads well
But when productClass->get ($ product_id) is called the plugins breaks and print a pdf error failing to include the verdana font file

Do you have any idea why we're facing this issue and anyway to solve it ? Thanks.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #153830

Hi,

Could you give us the error message, or a screenshot of the error ?
Any line indicated ?

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

  • Posts: 40
  • Thank you received: 0
10 years 6 months ago #153867

Now when this segment of code is run

$productClass = hikashop_get('class.product');
		$product_id = $order->products[0]->product_id;
		$product = $productClass->get($product_id);

The error on the attachment is seen.

A Second unrelated problem am getting is with the email templates. found here index.php?option=com_hikashop&ctrl=email
I edited the email templates for order creation notification and order status notification. But i notice is for any change in order status, only this email template is used - order status notification.

We need a different message printed when an order is created so we edited the order creation notification template. But it doesnt use this rather it uses the old order status notification. Please how do i fix this.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #153872

Hi,

The first problem is not related on the product class, but on the font used.
This font is not included in TCPDF.
www.yaronet.com/posts.php?s=133399

Have you tried to put a simple "Hello" in the order creation notification email in order to see if the changes are working fine or not. To test this email you must create new orders from frontend, else it's the status notification which is loaded.

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

  • Posts: 40
  • Thank you received: 0
10 years 6 months ago #154003

Regarding what you stated on tcpdf, I'll probably try to include the font. But the issue is that when i dont include a call to the product class, it works seamlessly without hiccups.

And regarding the email, I tried sending it from the "Backend" Do you mean to say that the order_creation notifcation template is only used when an order is made on the frontend?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154010

That's maybe because this font is called only for the product data, but it's strange.
Thanks to try to include the font and see if it's working fine.

Yes the order creation is only on frontend, when creating from backend it use the order status notification one.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum