Jump to content

Custom Email Template Variable Issue


Recommended Posts

Hello All,

On Whmcs default email templates (Like General > Order Confirmation), i can use "order_number" and "order_details" but when i create a custom email template (both on General & Product/Service) i cannot use that variables. The email comes empty on those areas. 

Working One

Dear {$client_name},

We have received your order and will be processing it shortly. The details of the order are below:

Order Number: {$order_number}

{$order_details}

You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order.

Regards
{$signature}

Not Working (Empty) One

CONTRACTUAL SERVICE AND PRODUCT INFORMATION
The main features of the Product and Service are available on the Website. The sales price of the product and service subject to the contract, including all taxes, is shown in the table below.

If the campaign is organized by the PROVIDER, you can review the basic features of the relevant Service during the campaign. The prices listed and announced on the Website are the selling price. Advertised prices and promises are valid until updated and changed. Prices announced for a period of time are valid until the end of the specified period.

Order Number : {$order_number}
Order Details :

{$order_details}

Link to comment
Share on other sites

2 hours ago, Safir Hosting said:

Hello All,

On Whmcs default email templates (Like General > Order Confirmation), i can use "order_number" and "order_details" but when i create a custom email template (both on General & Product/Service) i cannot use that variables. The email comes empty on those areas. 

Working One

Dear {$client_name},

We have received your order and will be processing it shortly. The details of the order are below:

Order Number: {$order_number}

{$order_details}

You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order.

Regards
{$signature}

Not Working (Empty) One

CONTRACTUAL SERVICE AND PRODUCT INFORMATION
The main features of the Product and Service are available on the Website. The sales price of the product and service subject to the contract, including all taxes, is shown in the table below.

If the campaign is organized by the PROVIDER, you can review the basic features of the relevant Service during the campaign. The prices listed and announced on the Website are the selling price. Advertised prices and promises are valid until updated and changed. Prices announced for a period of time are valid until the end of the specified period.

Order Number : {$order_number}
Order Details :

{$order_details}

Those variables are only passed through to the email template when an order is created and the initial order confirmation email is sent. You'll actually notice one of the available emails you can re-send is the order confirmation email, however if re-sent it contains no order number or details. So its pointless.

Best option is to alter the existing order confirmation email.

Link to comment
Share on other sites

20 hours ago, leemahoney3 said:

Those variables are only passed through to the email template when an order is created and the initial order confirmation email is sent. You'll actually notice one of the available emails you can re-send is the order confirmation email, however if re-sent it contains no order number or details. So its pointless.

Best option is to alter the existing order confirmation email.

I tried altering Order Confirmation mail but no luck still no order number or details. Also i tried altering credit card payment complete template but nope 😞 

Link to comment
Share on other sites

1 hour ago, Safir Hosting said:

I tried altering Order Confirmation mail but no luck still no order number or details. Also i tried altering credit card payment complete template but nope 😞 

Even when you place a new order? As I mentioned, the order number and details will only appear in the initial email sent out after the order is placed and not in subsequent order confirmation emails.

Link to comment
Share on other sites

On 6/14/2023 at 11:38 PM, leemahoney3 said:

Even when you place a new order? As I mentioned, the order number and details will only appear in the initial email sent out after the order is placed and not in subsequent order confirmation emails.

Actually yes even on new order. I also created some email templates on WHMCS 7.x.x those templates are working fine with all details included. Only newly created templates not working. (Version latest btw)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated