News:

Looking for documentation? Take a look on our wiki

Main Menu

Company Name Value missing in array

Started by mediax, March 24, 2016, 08:18:33 AM

Previous topic - Next topic

mediax

Hi Guys,

I have an interesting issue here, I hope someone have seen this before and can help me with this. This is the array output for:

$this->orderDetails['details']['BT']

stdClass Object
(
[virtuemart_order_id] => 178
[virtuemart_user_id] => 385
[virtuemart_vendor_id] => 1
[order_number] => Order-201603-100
[customer_number] => AD21232f297
[order_pass] => p_RjEi7fz3
[order_create_invoice_pass] => KHbgqAlH
[order_total] => 1877.58000
[order_salesPrice] => 1877.58000
[order_billTaxAmount] => 230.58000
[order_billTax] => {"1":{"virtuemart_calc_id":1,"calc_name":"VAT 14%","calc_value":"14.0000","result":230.58}}
[order_billDiscountAmount] => 0.00000
[order_discountAmount] => 0.00000
[order_subtotal] => 1647.00000
[order_tax] => 230.58000
[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] => 153
[order_status] => U
[user_currency_id] => 153
[user_currency_rate] => 1.00000
[virtuemart_paymentmethod_id] => 5
[virtuemart_shipmentmethod_id] => 6
[oc_note] =>
[delivery_date] => Same as invoice date
[order_language] => en-GB
[ip_address] => 196.210.128.xx
[created_on] => 2016-03-24 07:08:22
[created_by] => 385
[modified_on] => 2016-03-24 07:08:22
[modified_by] => 385
[locked_on] => 0000-00-00 00:00:00
[locked_by] => 0
[tos] => 1
[customer_note] =>
[virtuemart_order_userinfo_id] => 193
[address_type] => BT
[address_type_name] => Shipment
[company] =>
[title] =>
[last_name] => Reynders
[first_name] => DA
[middle_name] =>
[phone_1] => 0443884731
[phone_2] =>
[fax] =>
[address_1] => 19/187 Portland
[address_2] =>
[city] =>
[virtuemart_state_id_DELETED_1447335119] =>
[virtuemart_country_id] => 0
[zip] =>
[email] => marketing@funguys.co.za
[agreed] => 1
[Province] =>
[Important_DELETED_1449775659] =>
[shopper] =>
[volume] =>
[volume2] => 0.20m3
[Distributor] =>
[order_status_name] => COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER
[order_name] => DAReynders
)

Both Company and Distributor have a value in account maintenance, but not in the array. I have to output the company name, in the invoice template, but am stuck here.

Any ideas?? I would be grateful.

Regards,
MediaX

Using Latest Virtuemart and Joomla

mediax

Hi Guys,

I managed to get this right. I had the wrong setting in the shopper field in VM. I activated | required / Show in shipment form / Show in account maintenance and now the value is passed on.

Regards,
MediaX