Hi,
i have a problem mainly since i don't know how to get variables into my current site.
With get_defined_vars() function i get a "billion" lines long list of variables we can see from current page.
I want to get the products array but i cannot get how i could get the array eg. for echoing or other statements.
After the array listed below ther is a
[order_info] => Array
(
...
)
And that one i can "access" => print '<pre>' . htmlspecialchars(print_r($order_info, true)) . '</pre>';
I have this sections in mind:
[order_data:AOrder:private] => Array
(
[store_id] => 0
[store_name] =>
[store_url] =>
[customer_id] =>
[customer_group_id] =>
[firstname] =>
[lastname] =>
[email] =>
[telephone] =>
...
[payment_method] => PayPal Express Checkout
[products] => Array
(
(
[product_id] => 112
[name] => Product name
[model] =>
[option] => Array
(
(
[product_option_value_id] => 748
[product_option_id] => 349
[name] => send file
[element_type] => U
[value] => filename.ext
[prefix] =>
[price] => 0.0000
[sku] =>
[weight] => 0.00000000
[weight_type] =>
)
)
[download] => Array
(
)
[quantity] => 5
[price] => 1
[total] => 5
[tax] => 1.2
[stock] => 1
[sku] =>
)
)
[totals] => Array
(
(
[id] => subtotal
[title] => subtotal:
[text] => 5.00€
[value] => 5
[sort_order] => 1
[total_type] => subtotal
)
[1] => Array
(
[id] => shipping
[title] => shippingfee:
[text] => 8.30€
[value] => 8.30
[sort_order] => 3
[total_type] => shipping
)
[2] => Array
(
[id] => tax
[title] => tax
[text] => 1.20€
[value] => 1.2
[sort_order] => 5.1
[total_type] => tax
)
[3] => Array
(
[id] => total
[title] => total:
[text] => 14.50€
[value] => 14.5
[sort_order] => 1000
[total_type] => total
)
)
[comment] =>
[total] => 14.5
[language_id] => 2
[currency_id] => 2
[currency] => EUR
[value] => 1.00000000
[coupon_id] => 0
[ip] => ...
)