Email confirmation - Attached pdf error
12 years 4 months ago #153776
by nibe
Email confirmation - Attached pdf error was created by nibe
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.
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.
12 years 4 months ago #153830
by Xavier
Replied by Xavier on topic Email confirmation - Attached pdf error
Hi,
Could you give us the error message, or a screenshot of the error ?
Any line indicated ?
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.
12 years 4 months ago #153867
by nibe
Replied by nibe on topic Email confirmation - Attached pdf error
Now when this segment of code is run
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.
Code:
$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.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #153872
by Xavier
Replied by Xavier on topic Email confirmation - Attached pdf error
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.
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.
12 years 4 months ago #154003
by nibe
Replied by nibe on topic Email confirmation - Attached pdf error
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?
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.
12 years 4 months ago #154010
by Xavier
Replied by Xavier on topic Email confirmation - Attached pdf error
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.
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.200 seconds