Sendinblue integration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Goodmorning everyone,

following the nopcommerce guide (https://docs.nopcommerce.com/en/running-your-store/promotional-tools/sendinblue-integration/send-an-order-confirmation-email.html) I created the confirmation email order, however, are not correctly replaced with the values ​​of the variables when an email is sent.

In detail:
If sendinblue template I write "Dear {{ params.billing.firstname }}," in the mail I receive I do not find written the value of the variables and therefore "Dear Michela" but "Dear% billing.firstname%".

So the variable is replaced with another variable, not with the value of the same, where am I wrong?

Here is a piece of code from the Sendinblue template:

  
­Dear {{ params.billing.firstname }},

Numero Ordine:
{{ params.id }}
­
Data ordine:
{{ params.date }}
2 年 前
We'll check it. Try to use standard message templates in this plugin for now.
2 年 前
Goodmorning everyone,

I finally managed to change the variables in the mails.

However the order confirmation email is not sent to the user, the error indicated in sendinblue is this:

17 dic 2021 10:46
"render: body: execute: [Error (where: execution) in <string> | Line 60 Col 4 near 'params'] Can't access a field by name on type int64 (variable params.shipping.address1)\n"

Can you help me?
2 年 前
Can you please share current Sendinblue template?
2 年 前
This is the text version:

Di seguito i dettagli dell'ordine:
----------------------------------

Numero Ordine: 

{{ params.id }}

Data ordine:

{{ params.date }}

[Dettagli ordine]({{ params.url }})

Riepilogo ordine:
-----------------

{{ item.name }}

Articolo N:

{{ item.id }}

{{ item.quantity }}

{{ item.price | floatformat: 2 }}

Sconto
{{ params.discount | floatformat: 2 }}

Subtotale
 {{ params.subtotal | floatformat: 2 }}

Spedizione
{{ params.shipping | floatformat: 2 }}

Iva
{{ params.tax | floatformat: 2 }}

TOTALE
{{ params.total | floatformat: 2 }}

Indirizzo di spedizione:
{{ params.shipping_address.firstname }} 
{{ params.shipping_address.lastname }}
{{ params.shipping_address.company }}
{{ params.shipping.address1 }} 
{{ params.shipping_address.zipcode }} 
{{ params.shipping_address.city }}
{{ params.shipping_address.state }} 
{{ params.shipping_address.country }}

Indirizzo di fatturazione:

{{ params.billing_address.firstname }} 
{{ params.billing_address.lastname }}
{{ params.billing_address.company }}
{{ params.billing.address1 }} 
{{ params.billing_address.zipcode }} 
{{ params.billing.city }}
{{ params.billing_address.state }} 
{{ params.billing_address.country }}
2 年 前
You have a typo
   params.shipping.address1
Should be
  params.shipping_address.address1

These are also wrong
{{ params.billing.address1 }}
{{ params.billing.city }}

Some examples here
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.