QuickBooks API ignoring TrackQtyOnHand field? - php

I am trying to add an inventory item using the QuickBooks PHP SDK. I specify TrackQtyOnHand, the starting inventory and inventory start date, but these fields appear to be ignored?
Any help would be greatly appreciated!
thanks!
Here is the request:
IPPItem Object
(
[Name] => Product Name
[Description] => ProductDesc
[Active] => 1
[SubItem] =>
[ParentRef] =>
[Level] =>
[FullyQualifiedName] =>
[Taxable] => 1
[SalesTaxIncluded] =>
[PercentBased] =>
[UnitPrice] => 17.54386
[RatePercent] =>
[Type] => Inventory
[PaymentMethodRef] =>
[UOMSetRef] =>
[IncomeAccountRef] => IPPReferenceType Object
(
[name] => Sales of Product Income
[type] => Account
[value] => 80
)
[PurchaseDesc] =>
[PurchaseTaxIncluded] =>
[PurchaseCost] => 4.24000
[ExpenseAccountRef] => IPPReferenceType Object
(
[name] => Cost of sales
[type] => Account
[value] => 81
)
[COGSAccountRef] =>
[AssetAccountRef] => IPPReferenceType Object
(
[name] => Inventory Asset
[type] => Account
[value] => 82
)
[PrefVendorRef] =>
[AvgCost] =>
[TrackQtyOnHand] => 1
[QtyOnHand] => 10
[QtyOnPurchaseOrder] =>
[QtyOnSalesOrder] =>
[ReorderPoint] =>
[ManPartNum] =>
[DepositToAccountRef] =>
[SalesTaxCodeRef] =>
[PurchaseTaxCodeRef] =>
[InvStartDate] => 2015-03-01
[BuildPoint] =>
[PrintGroupedItems] =>
[SpecialItem] =>
[SpecialItemType] =>
[ItemGroupDetail] =>
[ItemAssemblyDetail] =>
[ItemEx] =>
[Id] =>
[SyncToken] =>
[MetaData] =>
[CustomField] =>
[AttachableRef] =>
[domain] =>
[status] =>
[sparse] =>
)
And the response:
IPPItem Object
(
[Name] => Product Name
[Description] => ProductDesc
[Active] => true
[SubItem] =>
[ParentRef] =>
[Level] =>
[FullyQualifiedName] => Product Name
[Taxable] => false
[SalesTaxIncluded] => false
[PercentBased] =>
[UnitPrice] => 17.54386
[RatePercent] =>
[Type] => Service
[PaymentMethodRef] =>
[UOMSetRef] =>
[IncomeAccountRef] => 80
[PurchaseDesc] =>
[PurchaseTaxIncluded] => false
[PurchaseCost] => 4.24
[ExpenseAccountRef] => 81
[COGSAccountRef] =>
[AssetAccountRef] =>
[PrefVendorRef] =>
[AvgCost] =>
[TrackQtyOnHand] => false
[QtyOnHand] =>
[QtyOnPurchaseOrder] =>
[QtyOnSalesOrder] =>
[ReorderPoint] =>
[ManPartNum] =>
[DepositToAccountRef] =>
[SalesTaxCodeRef] =>
[PurchaseTaxCodeRef] =>
[InvStartDate] =>
[BuildPoint] =>
[PrintGroupedItems] =>
[SpecialItem] =>
[SpecialItemType] =>
[ItemGroupDetail] =>
[ItemAssemblyDetail] =>
[ItemEx] =>
[Id] => 15
[SyncToken] => 0
[MetaData] => IPPModificationMetaData Object
(
[CreatedByRef] =>
[CreateTime] => 2015-07-19T07:02:57-07:00
[LastModifiedByRef] =>
[LastUpdatedTime] => 2015-07-19T07:02:57-07:00
[LastChangedInQB] =>
[Synchronized] =>
)
[CustomField] =>
[AttachableRef] =>
[domain] =>
[status] =>
[sparse] =>
)

Did you enable Track Quantity on Hand in your company setting->Sales tab?

Related

count and addition the array values in array php

I have one array data output coming below format. i want to add total adults count with in the array.My out is below please find.
Array
(
[0] => stdClass Object
(
[id] => 4534
[api] => expedia
[AL_RefNo] => H190100000062
[modify_refno] => H190100000062_1
[Hotel_RefNo] => 325758353
[Booking_RefNo] => 1234
[affiliateConfirmationId] => OMEIR-1P3IWK2G8UXTIT5E2ELI2T2H1QI4H7
[room_no] => 1
[room_type] => Deluxe Double or Twin Room
[arrivalDate] => 02/20/2019
[departureDate] => 02/21/2019
[nights] => 1
[adults] => 1
[childs] => 2
[childs_ages] => 6,8
[bedTypeId] =>
[rateKey] => 26963a10-0e8d-41e0-ad55-478b8b2280fb
[booking_status] => Confirmed
[first_name] => hjgkjug
[middle_name] =>
[last_name] => jh
[averageBaseRate] => 48.46
[averageRate] => 48.46
[commissionableUsdTotal] => 48.46
[currency_val] => 1
[Currency] => AED
[Xml_Currency] => USD
[eanCompensationOffline] => 0
[eanCompensationOnline] => 0
[maxNightlyRate] => 48.46
[nightlyRateTotal] => 48.46
[grossProfitOffline] => 0
[grossProfitOnline] => 0
[TotalBasePrice] => 61
[TotalEqualBasePrice] =>
[TotalEqualTax] =>
[TotalTax] => 13
[markup_type] =>
[markup_percentage] =>
[markup_amount] =>
[markup_value_amount] => 0
[markup_value_percentage] => 10.0000
[extra_markup] => 0
[extra_markup_percentage] => 0
[markup_effective_to] => 2019-02-27
[markup_per_night] => No
[customer_markup] => 6.107
[ota_discount_amount] => 0.00
[ota_discount_type] =>
[ota_discount_cal_amount] => 0.00
[total] => 70.53585
[dailyPrice] =>
[surchargeTotal] => 12.61
[NightlyRatesPerRoomsize] => 1
[NightlyRatePromo] => false
[baseRate] => 48.46
[rate] => 48.46
[surchargesSize] => 1
[surchargeType] => TaxAndServiceFee
[surchargeAmount] => 12.61
[ratePlanType] =>
[processedWithConfirmation] => true
[booking_date] => 2019-01-17 15:01:01
[remarks] => Refundable
[room_type_code] =>
[rateIdentifier] =>
[status] =>
[roomTotalPrice] =>
[serviceDate] =>
[dailypriceType] =>
[mealBasisCodeDay] =>
[mealIdDay] =>
[mealTypeDay] =>
[descriptionDay] =>
[roomDescription] =>
[roomCategory] =>
[transactionID] =>
[payment_charge] =>
[room_code] =>
[description] =>
[commission] =>
[gross_price] =>
[nett_price] =>
[Cancellation_Charge] =>
[Cancel_Till_Date] =>
[Cancelled_By] =>
[rateClass] =>
[rateComments] =>
[paymentType] =>
[packaging] =>
[cancel_amount] =>
[cancel_from_date] =>
[actual_hotel_confirmation_number] =>
[meal_type] => Free Wireless Internet|Free Breakfast
[supplier_price] =>
[sell_price] =>
[client_price] =>
[total_sell_price] =>
[ota_booking_status] =>
[Cancellation_Status] =>
[Cancellation_Charge_Amount] =>
[Cancelled_Markup] =>
[Cancelled_Extra_Markup] =>
[Refundable_Amont] =>
[room_daily_rates] => [{"offset":1,"providerCost":48.46,"baseRate":48.46,"promo":"false","checkIn":"20-02-2019","totalTax":12.61,"inputVat":0,"markup":6.107,"eMarkup":0,"discount":"","outputVat":3.6642,"totalAmount":70.8412,"status":"A"}]
[vat_effective_to] => 2050-02-01
[vat_price] => 3.36
[vat_percentage] => 5
[input_vat_percentage] => 0
[input_vat_price] => 0
[cost_components] => ["Base Price","Markup"]
[register_supplier] => Yes
[inclusive_vat] => No
[gcc_supplier] =>
[price_rate_with_triple_plus] =>
[hotel_service_percentage] =>
[tourism_fee_percentage] =>
[municipality_fee_percentage] =>
[hotel_service_price] =>
[tourism_fee_price] =>
[municipality_fee_price] =>
[direct_hotel_booking] => No
[supplier_cancellation_charge] =>
[vat_cancellation_charge] =>
[modify_booking_status] =>
[parent_modify_refno] =>
[refundable_status] => Refundable
[modify_status] => Yes
[updated_on] => 2019-01-17 19:56:55
)
[1] => stdClass Object
(
[id] => 4535
[api] => expedia
[AL_RefNo] => H190100000062
[modify_refno] => H190100000062_1
[Hotel_RefNo] => 325758353
[Booking_RefNo] => 1235
[affiliateConfirmationId] => OMEIR-1P3IWK2G8UXTIT5E2ELI2T2H1QI4H7
[room_no] => 2
[room_type] => Deluxe Double or Twin Room
[arrivalDate] => 02/20/2019
[departureDate] => 02/21/2019
[nights] => 1
[adults] => 2
[childs] => 1
[childs_ages] => 10
[bedTypeId] =>
[rateKey] => 5baad87e-8d89-43fc-8553-357e885e7f0c
[booking_status] => Confirmed
[first_name] => hjgkjug
[middle_name] =>
[last_name] => jh
[averageBaseRate] => 48.46
[averageRate] => 48.46
[commissionableUsdTotal] => 48.46
[currency_val] => 1
[Currency] => AED
[Xml_Currency] => USD
[eanCompensationOffline] => 0
[eanCompensationOnline] => 0
[maxNightlyRate] => 48.46
[nightlyRateTotal] => 48.46
[grossProfitOffline] => 0
[grossProfitOnline] => 0
[TotalBasePrice] => 61
[TotalEqualBasePrice] =>
[TotalEqualTax] =>
[TotalTax] => 13
[markup_type] =>
[markup_percentage] =>
[markup_amount] =>
[markup_value_amount] => 0
[markup_value_percentage] => 10.0000
[extra_markup] => 0
[extra_markup_percentage] => 0
[markup_effective_to] => 2019-02-27
[markup_per_night] => No
[customer_markup] => 6.107
[ota_discount_amount] => 0.00
[ota_discount_type] =>
[ota_discount_cal_amount] => 0.00
[total] => 70.53585
[dailyPrice] =>
[surchargeTotal] => 12.61
[NightlyRatesPerRoomsize] => 1
[NightlyRatePromo] => false
[baseRate] => 48.46
[rate] => 48.46
[surchargesSize] => 1
[surchargeType] => TaxAndServiceFee
[surchargeAmount] => 12.61
[ratePlanType] =>
[processedWithConfirmation] => true
[booking_date] => 2019-01-17 15:01:01
[remarks] => Refundable
[room_type_code] =>
[rateIdentifier] =>
[status] =>
[roomTotalPrice] =>
[serviceDate] =>
[dailypriceType] =>
[mealBasisCodeDay] =>
[mealIdDay] =>
[mealTypeDay] =>
[descriptionDay] =>
[roomDescription] =>
[roomCategory] =>
[transactionID] =>
[payment_charge] =>
[room_code] =>
[description] =>
[commission] =>
[gross_price] =>
[nett_price] =>
[Cancellation_Charge] =>
[Cancel_Till_Date] =>
[Cancelled_By] =>
[rateClass] =>
[rateComments] =>
[paymentType] =>
[packaging] =>
[cancel_amount] =>
[cancel_from_date] =>
[actual_hotel_confirmation_number] =>
[meal_type] => Free Wireless Internet|Free Breakfast
[supplier_price] =>
[sell_price] =>
[client_price] =>
[total_sell_price] =>
[ota_booking_status] =>
[Cancellation_Status] =>
[Cancellation_Charge_Amount] =>
[Cancelled_Markup] =>
[Cancelled_Extra_Markup] =>
[Refundable_Amont] =>
[room_daily_rates] => [{"offset":1,"providerCost":48.46,"baseRate":48.46,"promo":"false","checkIn":"20-02-2019","totalTax":12.61,"inputVat":0,"markup":6.107,"eMarkup":0,"discount":"","outputVat":3.6642,"totalAmount":70.8412,"status":"A"}]
[vat_effective_to] => 2050-02-01
[vat_price] => 3.36
[vat_percentage] => 5
[input_vat_percentage] => 0
[input_vat_price] => 0
[cost_components] => ["Base Price","Markup"]
[register_supplier] => Yes
[inclusive_vat] => No
[gcc_supplier] =>
[price_rate_with_triple_plus] =>
[hotel_service_percentage] =>
[tourism_fee_percentage] =>
[municipality_fee_percentage] =>
[hotel_service_price] =>
[tourism_fee_price] =>
[municipality_fee_price] =>
[direct_hotel_booking] => No
[supplier_cancellation_charge] =>
[vat_cancellation_charge] =>
[modify_booking_status] =>
[parent_modify_refno] =>
[refundable_status] => Refundable
[modify_status] => Yes
[updated_on] => 2019-01-17 19:56:55
)
)
Here in array object adults is total 1+2 =3 and childs is total 2+1=3.
i tried below code not working
foreach($room_details as $adultcount){
echo $adultcount->adults;
echo $adultcount->childs;
}
can any one please check and tell me where is the mistake in this code. i tried so many times not working below code.
Try something like this:
$adult_count = 0;
$child_count = 0;
foreach($room_details as $count){
$adult_count += $count->adults;
$child_count += $count->childs;
}
echo $adult_count;
echo $child_count;

Obtain Value of Nested stdClass Object

I'm receiving the following:
(
[0] => stdClass Object
(
[adm_big_picture] =>
[adm_group] =>
[adm_group_message] =>
[adm_large_icon] =>
[adm_small_icon] =>
[adm_sound] =>
[amazon_background_data] =>
[android_accent_color] =>
[android_group] =>
[android_group_message] =>
[android_led_color] =>
[android_sound] =>
[android_visibility] =>
[app_id] => xxx
[big_picture] =>
[buttons] =>
[canceled] =>
[chrome_big_picture] =>
[chrome_icon] =>
[chrome_web_icon] =>
[chrome_web_image] =>
[content_available] =>
[contents] => stdClass Object
(
[en] => English Message
)
[converted] => 0
[data] => stdClass Object
(
[foo] => bar
)
[delayed_option] =>
[delivery_time_of_day] =>
[errored] => 0
[excluded_segments] => Array
(
)
[failed] => 0
[firefox_icon] =>
[headings] => stdClass Object
(
)
[id] => xxx
[include_player_ids] =>
[included_segments] => Array
(
[0] => All
)
[ios_badgeCount] =>
[ios_badgeType] =>
[ios_category] =>
[ios_sound] =>
[isAdm] =>
[isAndroid] =>
[isChrome] =>
[isChromeWeb] => 1
[isFirefox] => 1
[isIos] =>
[isSafari] => 1
[isWP] =>
[isWP_WNS] =>
[large_icon] =>
[priority] =>
[queued_at] => 1492795180
[remaining] => 0
[send_after] => 1492795180
[small_icon] =>
[successful] => 5
[tags] =>
[filters] =>
[template_id] =>
[ttl] =>
[url] =>
[web_buttons] =>
[wp_sound] =>
[wp_wns_sound] =>
)
)
which is set as an array in $notifications.
I manage to get the field id by using the following:
for ($i = 0; $i < count($notifications); $i++) {
$notId = $notifications[$i]->id;
$title = $notifications[$i]->content->en;
echo '<p>'.$notId.' - '.$title.'</p>';
}
I am trying to obtain contents->en now, but not managing. Can someone point me the right direction please?

{Stuck} Populating Data for Template via Docusign php

I am using SOAP API for DocuSign. It is demo account.
So, I have created my code based on sendatemplate.php and I use the templatereference class to create my FieldData and this is the result in array
Array ( [0] => TemplateReference Object ( [TemplateLocation] => Server
[Template] => 2ade4fe1-9b7b-49eb-af2e-xxxxxxxxx [Document] =>
[RoleAssignments] => Array ( [0] => TemplateReferenceRoleAssignment Object (
[RoleName] => Signer1 [RecipientID] => 1 ) ) [FieldData] =>
TemplateReferenceFieldData Object ( [DataValues] => Array ( [0] =>
TemplateReferenceFieldDataDataValue Object ( [TabLabel] => Company [Value]
=> Otto ) ) ) [AdditionalTabs] => [Sequence] => [TemplateAttachments] => ) )
I then use the RequestStatusResponse and this is my result:
RequestStatusResponse Object
(
[RequestStatusResult] => EnvelopeStatus Object
(
[RecipientStatuses] => stdClass Object
(
[RecipientStatus] => Array
(
[0] => RecipientStatus Object
(
[Type] => Signer
[Email] => xxxxxx#yahoo.com
[UserName] => xxxxx
[RoutingOrder] => 1
[Sent] => 2015-12-02T22:56:01.317
[Delivered] => 2015-12-02T22:56:13.567
[Signed] =>
[Declined] =>
[DeclineReason] =>
[Status] => Delivered
[RecipientIPAddress] => xxxxxxxx
[ClientUserId] => 1
[AutoNavigation] =>
[IDCheckInformation] =>
[RecipientAuthenticationStatus] =>
[CustomFields] => stdClass Object
(
)
[TabStatuses] => stdClass Object
(
[TabStatus] => Array
(
[0] => TabStatus Object
(
[TabType] => SignHere
[Status] => Active
[XPosition] => 1333
[YPosition] => 964
[Signed] =>
[TabLabel] => Signature 1
[TabName] => Signature
[TabValue] =>
[DocumentID] =>
[PageNumber] =>
[OriginalValue] =>
[ValidationPattern] =>
[RoleName] =>
[ListValues] =>
[ListSelectedValue] =>
[ScaleValue] =>
[CustomTabType] =>
)
[1] => TabStatus Object
(
[TabType] => Custom
[Status] => Active
[XPosition] => 989
[YPosition] => 916
[Signed] =>
[TabLabel] => Address
[TabName] => Address
[TabValue] =>
[DocumentID] =>
[PageNumber] =>
[OriginalValue] =>
[ValidationPattern] =>
[RoleName] =>
[ListValues] =>
[ListSelectedValue] =>
[ScaleValue] =>
[CustomTabType] =>
)
[2] => TabStatus Object
(
[TabType] => FullName
[Status] => Active
[XPosition] => 989
[YPosition] => 872
[Signed] =>
[TabLabel] => Name 1
[TabName] => Name
[TabValue] =>
[DocumentID] =>
[PageNumber] =>
[OriginalValue] =>
[ValidationPattern] =>
[RoleName] =>
[ListValues] =>
[ListSelectedValue] =>
[ScaleValue] =>
[CustomTabType] =>
)
[3] => TabStatus Object
(
[TabType] => Company
[Status] => Active
[XPosition] => 683
[YPosition] => 252
[Signed] =>
[TabLabel] => Company
[TabName] => Company
[TabValue] =>
[DocumentID] =>
[PageNumber] =>
[OriginalValue] =>
[ValidationPattern] =>
[RoleName] =>
[ListValues] =>
[ListSelectedValue] =>
[ScaleValue] =>
[CustomTabType] =>
)
)
)
[RecipientAttachment] =>
[AccountStatus] =>
[EsignAgreementInformation] =>
[FormData] =>
[RecipientId] =>
)
)
)
I don't see my Company values are populated.
Please help!!!
I am using PHP code to do this.

Passing IPPReferenceType for parentref but the still sub customer data is not adding up in Quickbook API online

I almost went through all the sources to find the fix for this.
I need to add a sub customer to a customer in quickbooks thru php.
I have already marked true to job in the object and also passing the IPPReferenceType object for ParentRef yet the data is not reflecting.
This is the object which I am passing :
IPPCustomer Object (
[Taxable] =>
[BillAddr] =>
[ShipAddr] =>
[OtherAddr] =>
[ContactName] =>
[AltContactName] =>
[Notes] =>
[Job] => 1
[BillWithParent] =>
[RootCustomerRef] =>
[ParentRef] => IPPReferenceType Object
(
[name] =>
[type] =>
[value] => 95
)
[Level] =>
[CustomerTypeRef] =>
[SalesTermRef] =>
[SalesRepRef] =>
[TaxGroupCodeRef] =>
[TaxRateRef] =>
[PaymentMethodRef] =>
[CCDetail] =>
[PriceLevelRef] =>
[Balance] =>
[OpenBalanceDate] =>
[BalanceWithJobs] =>
[CreditLimit] =>
[AcctNum] =>
[CurrencyRef] =>
[OverDueBalance] =>
[TotalRevenue] =>
[TotalExpense] =>
[PreferredDeliveryMethod] =>
[ResaleNum] =>
[JobInfo] =>
[CustomerEx] =>
[IntuitId] =>
[Organization] =>
[Title] =>
[GivenName] => Pratibha
[MiddleName] =>
[FamilyName] => Mishra
[Suffix] =>
[FullyQualifiedName] =>
[CompanyName] =>
[DisplayName] => Pratibha Mishra
[PrintOnCheckName] =>
[UserId] =>
[Active] => 1
[PrimaryPhone] => IPPTelephoneNumber Object
(
[Id] =>
[DeviceType] =>
[CountryCode] =>
[AreaCode] =>
[ExchangeCode] =>
[Extension] =>
[FreeFormNumber] => (418) 124-6538
[Default] =>
[Tag] =>
)
[AlternatePhone] => IPPTelephoneNumber Object
(
[Id] =>
[DeviceType] =>
[CountryCode] =>
[AreaCode] =>
[ExchangeCode] =>
[Extension] =>
[FreeFormNumber] => (418) 478-6538
[Default] =>
[Tag] =>
)
[Mobile] =>
[Fax] =>
[PrimaryEmailAddr] => IPPEmailAddress Object
(
[Id] =>
[Address] => ross#geller.lcl
[Default] =>
[Tag] =>
)
[WebAddr] =>
[OtherContactInfo] =>
[DefaultTaxCodeRef] =>
[Id] =>
[SyncToken] =>
[MetaData] =>
[CustomField] =>
[AttachableRef] =>
[domain] =>
[status] =>
[sparse] =>
)
As you can see I have a customer with the value 95 and I am passing the same to ParentRef for this object which is a sub customer.
I am using php to integrate the data into quickbooks and I am using V3QBO package.
Please let me know you suggestions and advice.
Thanks in advance !!
You can fix the above issue by setting the true value as string instead of a boolean, like this:
[Job] => 'true';
same thing will happen with BillWithParent and the workarround as well.
Reference link
https://intuitdeveloper.lc.intuit.com/questions/1039309-can-t-set-a-customer-as-job-or-sub-customer-using-php-and-sdk-v3
I would suggest you to create a JOB/Sub customer in QBO company file and then read via code. Compare it with what you are sending to see if you are missing something.
Setting JOB(not jobinfo) and ParentRef should be it.

how to print multiple array in joomla

This is the cart array in the Virtuemart 2.0.22a ..
this is stored in "$cart"
how to print [virtuemart_product_id] => 21 at 4.
$cart=
VirtueMartCart Object
(
[products] => Array
(
[21] => stdClass Object
(
[virtuemart_manufacturer_id] => Array
(
)
[slug] => stylish-shirt
[published] => 1
[virtuemart_product_price] =>
[virtuemart_product_id] => 21
[virtuemart_shoppergroup_id] =>
[product_price] => 450.00000
[override] => 0
[product_override_price] => 0.00000
[product_tax_id] => -1
[product_discount_id] => -1
[product_currency] => 68
[virtuemart_vendor_id] => 1
[product_parent_id] => 0
[product_sku] =>
[product_name] => Stylish Shirt
[product_s_desc] =>
[product_weight] =>
[product_weight_uom] => KG
[product_length] =>
[product_width] =>
[product_height] =>
[product_lwh_uom] => M
[product_in_stock] => 0
[product_ordered] => 0
[product_sales] => 0
[product_unit] => KG
[product_packaging] =>
[min_order_level] =>
[max_order_level] =>
[virtuemart_media_id] => Array
(
[0] => 21
)
[step_order_level] =>
[image] => VmImage Object
(
[media_attributes] => 0
[setRole] =>
[file_name] => 3
[file_extension] => jpg
[virtuemart_media_id] => 21
[_foldersToTest:VmMediaHandler:private] => Array
(
[0] => E:\wamp\www\ecomm\images\stories\virtuemart\product\
[1] => E:\wamp\www\ecomm\images\stories\virtuemart\product\resized\
)
[_actions:VmMediaHandler:private] => Array
(
)
[_mLocation:VmMediaHandler:private] => Array
(
)
[_hidden:VmMediaHandler:private] => Array
(
)
[theme_url] => http://localhost/ecomm/components/com_virtuemart/
[virtuemart_vendor_id] => 1
[file_title] => 3.jpg
[file_description] =>
[file_meta] =>
[file_mimetype] => image/jpeg
[file_type] => product
[file_url] => images/stories/virtuemart/product/3.jpg
[file_url_thumb] => images/stories/virtuemart/product/resized/3_90x90.jpg
[published] => 1
[file_is_downloadable] => 0
[file_is_forSale] => 0
[file_is_product_image] => 0
[shared] => 0
[file_params] =>
[file_lang] =>
[_translatable] =>
[_tablePreFix] =>
[created_on] => 2013-08-12 12:32:19
[created_by] => 572
[modified_on] => 2013-08-12 12:38:50
[modified_by] => 572
[file_url_folder] => images/stories/virtuemart/product/
[file_path_folder] => images\stories\virtuemart\product\
[file_url_folder_thumb] => images/stories/virtuemart/product/resized/
[media_role] => file_is_displayable
[file_name_thumb] => 3_90x90
)
[categories] => Array
(
[0] => 6
)
[virtuemart_category_id] => 6
[category_name] => Shirts
[link] => /ecomm/index.php/component/virtuemart/shirts/stylish-shirt-detail?Itemid=0
[packaging] =>
[quantity] => 1
)
)
[_inCheckOut] =>
[_dataValidated] =>
[_blockConfirm] =>
[_confirmDone] =>
[_redirect] =>
[_redirect_disabled] =>
[_lastError] =>
[vendorId] => 1
[lastVisitedCategoryId] => 0
[virtuemart_shipmentmethod_id] => 0
[virtuemart_paymentmethod_id] => 1
[automaticSelectedShipment] => 1
[automaticSelectedPayment] => 1
[BT] => 0
[ST] => 0
[tosAccepted] =>
[customer_comment] =>
[couponCode] =>
[order_language] =>
[cartData] => Array
(
[VatTax] => Array
(
)
[duty] => 1
[payment] => 0
[paymentName] =>
Finally i got the output.. after lot of struggles
foreach($cart->products as $cur)
{
echo $cur->virtuemart_product_id;
}

Categories