No order items in email

Project Leader
De Italy
Miembro desde ene. 2025

Hi, thanks a lot for the great job.

I am new, install the package some days ago and try to read the forum to configure the system.

I put italian language reading this forum.

In order confirmation email there is no product sorted.
If the order contain 1 or more articles

Have you suggestion?

Moderator
De United States
Miembro desde oct. 2019

Salve aniarti. Benvenuto! Di dove sei in Italia?

The wiki may be better than the forum to find information on installing LiteCart. Check out this page:

https://www.litecart.net/en/wiki/how_to_install

In order confirmation email there is no product sorted.
If the order contain 1 or more articles

I'm not sure if you mean:

  1. no items are printed in your confirmation email
  2. the items are printed, but not in the sort order you want

Please clarify.

Project Leader
De Italy
Miembro desde ene. 2025

Si, Italia, un'associazione. La sede e' a Genova, ma io sono dalla Toscana.

no items are printed in your confirmation email

Sorry

Moderator
De United States
Miembro desde oct. 2019

Is it only the items that are missing from the email or are other things missing, as well? The email should look like this:

Thank you for your purchase!

Your order #%order_id has successfully been created with a total of %payment_due for the following ordered items:

%order_items

A printable order copy is available here:
%order_copy_url

Regards,
%store_name
%store_url

(The words that start with % should be replaced with the values that you set up during installation.)

Also, check the order in the admin and make sure that the items are showing there. Perhaps nothing was saved when you checked out?

Project Leader
De Italy
Miembro desde ene. 2025

%order_items Is not present

let me try ...

thanks a lot ... for really fast reply

Project Leader
De Italy
Miembro desde ene. 2025

That's work fine.
Thank you for suggestion ... for faster suggestion!!!

Is there a list of variables ?

Thank you.

Moderator
De United States
Miembro desde oct. 2019

Here is the list of aliases from /includes/entities/ent_order.inc.php

$aliases = [
  '%order_id' => $this->data['id'],
  '%new_status' => $order_status->name,
  '%firstname' => $this->data['customer']['firstname'],
  '%lastname' => $this->data['customer']['lastname'],
  '%billing_address' => nl2br(functions::format_address($this->data['customer']), false),
  '%payment_transaction_id' => !empty($this->data['payment_transaction_id']) ? $this->data['payment_transaction_id'] : '-',
  '%shipping_address' => nl2br(functions::format_address($this->data['customer']['shipping_address']), false),
  '%shipping_tracking_id' => !empty($this->data['shipping_tracking_id']) ? $this->data['shipping_tracking_id'] : '-',
  '%shipping_tracking_url' => !empty($this->data['shipping_tracking_url']) ? $this->data['shipping_tracking_url'] : '',
  '%order_items' => null,
  '%payment_due' => currency::format($this->data['payment_due'], true, $this->data['currency_code'], $this->data['currency_value']),
  '%order_copy_url' => document::ilink('order', ['order_id' => $this->data['id'], 'public_key' => $this->data['public_key']], false, [], $this->data['language_code']),
  '%order_status' => $order_status->name,
  '%store_name' => settings::get('store_name'),
  '%store_url' => document::ilink('', [], false, [], $this->data['language_code']),
];

You can add your own, too, if you want. I'd recommend doing that via a vMod .

Project Leader
De Italy
Miembro desde ene. 2025

thank you so much. I am not able to write module, but ca use this variables in email.

Moderator
De United States
Miembro desde oct. 2019

I highly recommend you learn how to create vMods. Trust me — your life with LiteCart will be soooo much easier. Not to mention that when you decide to update LiteCart – and you will – you won't lose the changes you've made. Plus, when something breaks because of something you've done, all you have to do is disable your vMods and then enable them again one-by-one until you've found the culprit. If you hard-code your changes into the core files, all I can say is good luck at finding them.

Do yourself a favor and go the vMod route. Seriously. It's the best thing since sliced bread! 😀

Buon lavoro!

Project Leader
De Italy
Miembro desde ene. 2025

thank you. i have to learn PHP more than i know now.
let me try

This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.