Thanks for the answer,
maybe I'm not explaining my problem correctly.
Example:
In Virtuemart 3.8.6
In the file orderdone.php at the end add:
?>
<pre><?php print_r($this->cart->orderDetails); ?></pre>
and make a test order
we can see orderDetails:
Array
(
[details] => Array
(
[BT] => stdClass Object
(
[virtuemart_order_id] => 60
[virtuemart_user_id] => 42
[virtuemart_vendor_id] => 1
[order_note] =>
[order_number] => RMG8062
[customer_number] => AD21232f2
[order_pass] => p_9JHfsWZK
[order_create_invoice_pass] => gYefOSiJ
[invoice_locked] => 0
[order_total] => 700.00000
[order_salesPrice] => 700.00000
[order_billTaxAmount] => 0.00000
[order_billTax] => 0
[order_billDiscountAmount] => 0.00000
[order_discountAmount] => 0.00000
[order_subtotal] => 700.00000
[order_tax] => 0.00000
[order_shipment] => 0.00000
[order_shipment_tax] => 0.00000
[order_payment] => 0.00
[order_payment_tax] => 0.00000
[coupon_discount] => 0.00
[coupon_code] =>
[order_discount] => 0.00
[order_currency] => 199
[order_status] => P
[user_currency_id] => 199
[user_currency_rate] => 1.000000
[user_shoppergroups] => 2
[payment_currency_id] => 199
[payment_currency_rate] => 1.000000
[virtuemart_paymentmethod_id] => 1
[virtuemart_shipmentmethod_id] => 1
[delivery_date] =>
[order_language] => ru-RU
[ip_address] => xx
[STsameAsBT] => 1
[paid] => 0
[paid_on] => 0000-00-00 00:00:00
[o_hash] => 74b03076d7ccd80412afea3172abd199
[created_on] => 2021-02-21 20:25:35
[created_by] => 42
[modified_on] => 2021-02-21 20:25:35
[modified_by] => 42
[locked_on] => 0000-00-00 00:00:00
[locked_by] => 0
[order_created] => 2021-02-21 20:25:35
[order_modified] => 2021-02-21 20:25:35
[order_modified_by] => 42
[virtuemart_order_userinfo_id] => 60
[address_type] => BT
[address_type_name] =>
[company] =>
[title] =>
[last_name] => Dz
[first_name] => Andriy
[middle_name] =>
[phone_1] => 0111111111
[phone_2] =>
[fax] =>
[address_1] => sadowa
[address_2] =>
[city] => London
[virtuemart_state_id] => 0
[virtuemart_country_id] => 220
[zip] => 82100
[email] => 1lifepro@gmail.com
[agreed] => 0
[tos] => 1
[customer_note] =>
[order_status_code] => P
[order_status_color] =>
[order_status_name] => COM_VIRTUEMART_ORDER_STATUS_PENDING
[order_status_description] =>
[order_stock_handle] => R
[ordering] => 1
[order_name] => Andriy Dz
)
In Virtuemart 3.8.8 it doesn't work
we can see orderDetails: '0'
if I comment string 1843 in helpers/cart.php
//$cart = VirtueMartCart::getCart(true);
then everything works again, and you can see orderDetails in page orderdone.