siteId 16617 not returning expected results with jsonsdk/DataService/getItemSummariesForSite API - yodlee

I am following the pattern described in the manual.
Specifically, at step 5 when a user supplies incorrect credentials, step 6 should return feedback specifying bad user credentials.
I am calling jsonsdk/SiteAccountManagement/addSiteAccount1 with the following params:
array (
'cobSessionToken' => 'REDACTED',
'enclosedType' => 'com.yodlee.common.FieldInfoSingle',
'userSessionToken' => 'REDACTED',
'credentialFields.enclosedType' => 'com.yodlee.common.FieldInfoSingle',
'siteId' => '16617',
'credentialFields[0].valueIdentifier' => 'LOGIN',
'credentialFields[0].valueMask' => 'LOGIN_FIELD',
'credentialFields[0].fieldType.typeName' => 'IF_LOGIN',
'credentialFields[0].size' => '19',
'credentialFields[0].name' => 'LOGIN',
'credentialFields[0].displayName' => 'Card/Access Number',
'credentialFields[0].isEditable' => 'true',
'credentialFields[0].value' => 'BAD',
'credentialFields[1].valueIdentifier' => 'PASSWORD',
'credentialFields[1].valueMask' => 'LOGIN_FIELD',
'credentialFields[1].fieldType.typeName' => 'IF_PASSWORD',
'credentialFields[1].size' => '7',
'credentialFields[1].name' => 'PASSWORD',
'credentialFields[1].displayName' => 'Security Number',
'credentialFields[1].isEditable' => 'true',
'credentialFields[1].value' => 'BAD',
'credentialFields[2].valueIdentifier' => 'PASSWORD1',
'credentialFields[2].valueMask' => 'LOGIN_FIELD',
'credentialFields[2].fieldType.typeName' => 'IF_PASSWORD',
'credentialFields[2].size' => '12',
'credentialFields[2].name' => 'PASSWORD1',
'credentialFields[2].displayName' => 'Internet Password',
'credentialFields[2].isEditable' => 'true',
'credentialFields[2].value' => 'BAD',
'credentialFields[3].valueIdentifier' => 'OPTION',
'credentialFields[3].valueMask' => 'LOGIN_FIELD',
'credentialFields[3].fieldType.typeName' => 'OPTIONS',
'credentialFields[3].size' => '20',
'credentialFields[3].name' => 'OPTION',
'credentialFields[3].displayName' => 'Issue Number ',
'credentialFields[3].isEditable' => 'true',
'credentialFields[3].value' => '2',
)
It is returning:
array (
'siteAccountId' => 10381802,
'isCustom' => false,
'credentialsChangedTime' => 1412058909,
'siteRefreshInfo' =>
array (
'siteRefreshStatus' =>
array (
'siteRefreshStatusId' => 1,
'siteRefreshStatus' => 'REFRESH_TRIGGERED',
),
'siteRefreshMode' =>
array (
'refreshModeId' => 2,
'refreshMode' => 'NORMAL',
),
'updateInitTime' => 1412058909,
'nextUpdate' => 1412059809,
'code' => 801,
'suggestedFlow' =>
array (
'suggestedFlowId' => 2,
'suggestedFlow' => 'REFRESH',
),
'noOfRetry' => 0,
),
'siteInfo' =>
array (
'popularity' => 0,
'siteId' => 16617,
'orgId' => 9006,
'defaultDisplayName' => 'Bank of Melbourne (Australia)',
'defaultOrgDisplayName' => 'Bank of Melbourne',
'enabledContainers' =>
array (
0 =>
array (
'containerName' => 'bills',
'assetType' => 0,
),
),
'baseUrl' => 'http://www.bankofmelbourne.com.au/',
'loginForms' =>
array (
),
'isHeld' => false,
'isCustom' => false,
'siteSearchVisibility' => true,
),
'created' => '2014-09-29T23:35:09-0700',
'retryCount' => 0,
)
I am then extracting the 'siteAccountId' field and expect to eventually receive a notification of the bad credentials.
Here is a log of the consecutive calls to jsonsdk/DataService/getItemSummariesForSite, the responses and timestamps.
Attempt 1 Sent(2014-09-30 17:21:23):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 1 Received:
array (
'key' =>
array (
),
)
Attempt 2 Sent(2014-09-30 17:21:34):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 2 Received:
array (
'key' =>
array (
),
)
Attempt 3 Sent(2014-09-30 17:21:55):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 3 Received:
array (
'key' =>
array (
),
)
Attempt 4 Sent(2014-09-30 17:22:16):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 4 Received:
array (
'key' =>
array (
),
)
Attempt 5 Sent(2014-09-30 17:22:38):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 5 Received:
array (
'key' =>
array (
),
)
Attempt 6 Sent(2014-09-30 17:22:59):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 6 Received:
array (
'key' =>
array (
),
)
Attempt 7 Sent(2014-09-30 17:23:20):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 7 Received:
array (
'key' =>
array (
),
)
Attempt 8 Sent(2014-09-30 17:23:41):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 8 Received:
array (
'key' =>
array (
),
)
Attempt 9 Sent(2014-09-30 17:24:02):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 9 Received:
array (
'key' =>
array (
),
)
Attempt 10 Sent(2014-09-30 17:24:23):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 10 Received:
array (
'key' =>
array (
),
)
Attempt 11 Sent(2014-09-30 17:24:44):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 11 Received:
array (
'key' =>
array (
),
)
Attempt 12 Sent(2014-09-30 17:25:06):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 12 Received:
array (
'key' =>
array (
),
)
Attempt 13 Sent(2014-09-30 17:25:27):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 13 Received:
array (
'key' =>
array (
),
)
Attempt 14 Sent(2014-09-30 17:25:48):
array (
'cobSessionToken' => 'REDACTED',
'memSiteAccId' => 10381802,
'userSessionToken' => 'REDACTED'
)
Attempt 14 Received:
array (
'key' =>
array (
),
)
For other siteId's I can rely on receiving one of the following attributes:
['refreshInfo']['itemAccessStatus']['name'] == 'ACCESS_NOT_VERIFIED'
['refreshInfo']['userActionRequiredType']['name'] == 'CHANGE_CREDENTIALS'
Can a yodlee staffer please check their logs and investigate why siteId 16617 is not returning the expected data when using jsonsdk/DataService/getItemSummariesForSite

You will have to implement the complete add account flow indicated in this page of Add_Site_Account flow.
Please follow the flow diagram and code accordingly. Ideally you should call getSiteRefreshInfo to know the status of refresh of the account which you tried adding.

Related

How to interpret vin/vout on a Bitcoin transaction?

I used nownodes api to get this response on a transaction:
(
[txid] => 38ac1348219f8aa9349f497bfa6f8d05f775cafbbd26354867d22ca84f15e1e1
[version] => 2
[vin] => Array
(
[0] => stdClass Object
(
[txid] => 38cff250be850140644a1abf022b22f3e59cab15c6091706c3f73218a4d72050
[vout] => 1
[sequence] => 4294967295
[n] => 0
[addresses] => Array
(
[0] => 1EJtMFThodiQ1j26xy1kugFck9325C38CQ
)
[isAddress] => 1
[value] => 158316
[hex] => 4830450221009548f997389fd9881dfed78fe25fcce77f5b96d1545da91dfa13f56db3c02f6e02207fe239ac7916681edc36afd6a9a569981cd12c2c6801616bc15794be5c024431012102afe2e887e3ff56edcebe6b1aa6bf48f4a5a7f02cfc8d743e778896df2054adee
)
)
[vout] => Array
(
[0] => stdClass Object
(
[value] => 7000
[n] => 0
[hex] => a9144a09be6e2917ef00e5d72bc38035db5c5a5ed8ec87
[addresses] => Array
(
[0] => 38SVbkkFE8qcJuGyTJ9fY2cbGS3xknEfYr
)
[isAddress] => 1
)
[1] => stdClass Object
(
[value] => 146856
[n] => 1
[hex] => 76a91491fb9214e6ad9b3ea19c1fd7d3a646e12f804d2688ac
[addresses] => Array
(
[0] => 1EJtMFThodiQ1j26xy1kugFck9325C38CQ
)
[isAddress] => 1
)
)
[blockHash] => 000000000000000000050bfb2a645a5eb7ac882aeb1782bce37ef6a2652c383b
[blockHeight] => 743696
[confirmations] => 8
[blockTime] => 1657005608
[value] => 153856
[valueIn] => 158316
[fees] => 4460
[hex] => 02000000015020d7a41832f7c3061709c615ab9ce5f3222b02bf1a4a64400185be50f2cf38010000006b4830450221009548f997389fd9881dfed78fe25fcce77f5b96d1545da91dfa13f56db3c02f6e02207fe239ac7916681edc36afd6a9a569981cd12c2c6801616bc15794be5c024431012102afe2e887e3ff56edcebe6b1aa6bf48f4a5a7f02cfc8d743e778896df2054adeeffffffff02581b00000000000017a9144a09be6e2917ef00e5d72bc38035db5c5a5ed8ec87a83d0200000000001976a91491fb9214e6ad9b3ea19c1fd7d3a646e12f804d2688ac00000000
)
The transaction was for: 0.0001146 BTC
And the fee was: 0.0000446
Totalling: 0.0001592
However, based on teh result from Nownodes, how can I see what the transaction total was? I can easily see the fee under "Fees". But how do I calculate the actually amount that came in or went out for this transaction?
Thanks!
valueIn = vout[0][value] + vout[1][value] + [fees]
valueIn = 158316
Is that what you have been looking for?

How to sub query a select into another select and put inside a variable with laravel?

I want to make a select that solves the fact that I have to perform two validations one for each table, what i'm doing now is validating the $table1 and validating the $table2 ,i just want to validate $table2
$table1 = DB::table('name_table1')
->where('invoice_id','{$table2}.id')
->get();
$table2 = DB::table('name_table2')
->select('name','invoices','{$table} as itens_of_invoice')
->get();
dd($table);
And return me something like;
Array (
[0] => Object(
'name' => 'value_name',
'invoices' => 'value_invoices',
'item_of_invoice' =>
Array(
[0] => Array(
'name_item' => 'value_name',
'price' => 'value_price'
)
)
)
[1] => Object(
'name' => 'value_name',
'invoices' => 'value_invoices',
'item_of_invoice' =>
Array(
[0] => Array(
'name_item' => 'value_name',
'price' => 'value_price'
)
)
)
[2] => Object(
'name' => 'value_name',
'invoices' => 'value_invoices',
'item_of_invoice' =>
Array(
[0] => Array(
'name_item' => 'value_name',
'price' => 'value_price'
)
)
)
)
I don't find any solution if someone ever did this please help me

AUTHENTICATE 2 LDAP USER IN ITOPS

I have some LDAP users in iTops, and i want to login with all of users in iTops. But i have an error like that "user not found in LDAP".
Which folders that i have to change ? So i can login with all LDAP users.
I appreciate for your responses, all of you. Please help me, thanks.
in config-itop.php
$MyModuleSettings = array(
'authent-ldap' => array (
'host' => '192.168.1.2',
'port' => 389,
'default_user' => 'anonim',
'default_pwd' => 'Admin123',
'base_dn' => 'dc=vokasiub,dc=COM',
'user_query' => '(samaccountname=%1$s)',
'options' => array (
17 => 3,
8 => 0,
),
'start_tls' => false,
'debug' => true,
),
'authent-ldap2' => array (
'host' => '192.168.2.2',
'port' => 389,
'default_user' => 'isoiso',
'default_pwd' => 'Admin123',
'base_dn' => 'ou=users ou, dc=bagusyekti,dc=COM',
'user_query' => '(samaccountname=%1$s)',
'options' => array (
17 => 3,
8 => 0,
),
'start_tls' => false,
'debug' => true,
),
'itop-attachments' => array (
'allowed_classes' => array (
0 => 'Ticket',
),
'position' => 'relations',
'preview_max_width' => 290,
),
'email-reply' => array (
'enabled_default' => true,
),
'itop-backup' => array (
'mysql_bindir' => '',
'week_days' => 'monday, tuesday, wednesday, thursday, friday',
'time' => '23:30',
'retention_count' => 5,
'enabled' => true,
'debug' => true,
),
);
iTop 2.7 and older
This was not possible.
iTop 3.0 and newer
This is now possible, check the full documentation here, but basically you have to set the different LDAP servers like this in the iTop configuration file:
'authent-ldap' => array (
'host' => 'localhost',
'port' => 389,
'default_user' => '',
'default_pwd' => '',
'base_dn' => 'dc=mycompany,dc=com',
'user_query' => '(&(uid=%1$s))',
'options' => array (
17 => 3,
8 => 0,
),
'debug' => false,
'servers' => array(
'MySecond-LDAP-Server' => array(
'host' => 'server1',
'port' => 389,
'default_user' => '',
'default_pwd' => '',
'base_dn' => 'dc=mycompany,dc=com',
'user_query' => '(&(uid=%1$s))',
'options' => array (
17 => 3,
8 => 0,
),
'debug' => false,
),
),
),

When submitting a place order button to order page that time generate this message

When submitting a place order button to order page that time generate this message.
How to resolve this error. Please help any one.
Order Object ( [id_address_delivery] => 88641 [id_address_invoice] => 88641 [id_shop_group] => 5 [id_shop] => 1 [id_cart] => 31973 [id_currency] => 1 [id_lang] => 1 [id_customer] => 27026 [id_carrier] => 73 [current_state] => [secure_key] => 353b960ec14efca0bf8145f79908794a [payment] => Authorize.net AIM (Advanced Integration Method) [module] => authorizeaim [conversion_rate] => 1.000000 [recyclable] => 0 [gift] => 0 [gift_message] => [mobile_theme] => 0 [shipping_number] => [total_discounts] => 0 [total_discounts_tax_incl] => 0 [total_discounts_tax_excl] => 0 [total_paid] => 6.5 [total_paid_tax_incl] => 6.5 [total_paid_tax_excl] => 6.5 [total_paid_real] => 0 [total_products] => 6.5 [total_products_wt] => 6.5 [total_shipping] => 0 [total_shipping_tax_incl] => 0 [total_shipping_tax_excl] => 0 [carrier_tax_rate] => 0 [hazmat_fees] => 0 [poison_fees] => 0 [refrigerated_fees] => 0 [ponumber] => [total_wrapping] => 0 [total_wrapping_tax_incl] => 0 [total_wrapping_tax_excl] => 0 [invoice_number] => [delivery_number] => [invoice_date] => 0000-00-00 00:00:00 [delivery_date] => 0000-00-00 00:00:00 [valid] => [date_add] => [date_upd] => [reference] => JYADOFQPY [webserviceParameters:protected] => Array ( [objectMethods] => Array ( [add] => addWs ) [objectNodeName] => order [objectsNodeName] => orders [fields] => Array ( [id_address_delivery] => Array ( [xlink_resource] => addresses ) [id_address_invoice] => Array ( [xlink_resource] => addresses ) [id_cart] => Array ( [xlink_resource] => carts ) [id_currency] => Array ( [xlink_resource] => currencies ) [id_lang] => Array ( [xlink_resource] => languages ) [id_customer] => Array ( [xlink_resource] => customers ) [id_carrier] => Array ( [xlink_resource] => carriers ) [current_state] => Array ( [xlink_resource] => order_states ) [module] => Array ( [required] => 1 ) [invoice_number] => Array ( ) [invoice_date] => Array ( ) [delivery_number] => Array ( ) [delivery_date] => Array ( ) [valid] => Array ( ) [date_add] => Array ( ) [date_upd] => Array ( ) ) [associations] => Array ( [order_rows] => Array ( [resource] => order_row [setter] => [virtual_entity] => 1 [fields] => Array ( [id] => Array ( ) [product_id] => Array ( [required] => 1 ) [product_attribute_id] => Array ( [required] => 1 ) [product_quantity] => Array ( [required] => 1 ) [product_name] => Array ( [setter] => ) [product_price] => Array ( [setter] => ) [unit_price_tax_incl] => Array ( [setter] => ) [unit_price_tax_excl] => Array ( [setter] => ) ) ) ) ) [_taxCalculationMethod:protected] => 1 [id] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => orders [identifier:protected] => id_order [fieldsRequired:protected] => Array ( [0] => id_address_delivery [1] => id_address_invoice [2] => id_cart [3] => id_currency [4] => id_lang [5] => id_customer [6] => id_carrier [7] => payment [8] => module [9] => total_paid [10] => total_paid_real [11] => total_products [12] => total_products_wt [13] => conversion_rate ) [fieldsSize:protected] => Array ( ) [fieldsValidate:protected] => Array ( [id_address_delivery] => isUnsignedId [id_address_invoice] => isUnsignedId [id_cart] => isUnsignedId [id_currency] => isUnsignedId [id_shop_group] => isUnsignedId [id_shop] => isUnsignedId [id_lang] => isUnsignedId [id_customer] => isUnsignedId [id_carrier] => isUnsignedId [current_state] => isUnsignedId [secure_key] => isMd5 [payment] => isGenericName [module] => isModuleName [recyclable] => isBool [gift] => isBool [gift_message] => isMessage [mobile_theme] => isBool [total_discounts] => isPrice [total_discounts_tax_incl] => isPrice [total_discounts_tax_excl] => isPrice [total_paid] => isPrice [total_paid_tax_incl] => isPrice [total_paid_tax_excl] => isPrice [total_paid_real] => isPrice [total_products] => isPrice [total_products_wt] => isPrice [total_shipping] => isPrice [total_shipping_tax_incl] => isPrice [total_shipping_tax_excl] => isPrice [carrier_tax_rate] => isFloat [hazmat_fees] => isPrice [poison_fees] => isPrice [refrigerated_fees] => isPrice [total_wrapping] => isPrice [total_wrapping_tax_incl] => isPrice [total_wrapping_tax_excl] => isPrice [shipping_number] => isTrackingNumber [conversion_rate] => isFloat [date_add] => isDate [date_upd] => isDate ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => orders [primary] => id_order [fields] => Array ( [id_address_delivery] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_address_invoice] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_cart] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_currency] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_shop_group] => Array ( [type] => 1 [validate] => isUnsignedId ) [id_shop] => Array ( [type] => 1 [validate] => isUnsignedId ) [id_lang] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_customer] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_carrier] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [current_state] => Array ( [type] => 1 [validate] => isUnsignedId ) [secure_key] => Array ( [type] => 3 [validate] => isMd5 ) [payment] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 ) [module] => Array ( [type] => 3 [validate] => isModuleName [required] => 1 ) [recyclable] => Array ( [type] => 2 [validate] => isBool ) [gift] => Array ( [type] => 2 [validate] => isBool ) [gift_message] => Array ( [type] => 3 [validate] => isMessage ) [mobile_theme] => Array ( [type] => 2 [validate] => isBool ) [total_discounts] => Array ( [type] => 4 [validate] => isPrice ) [total_discounts_tax_incl] => Array ( [type] => 4 [validate] => isPrice ) [total_discounts_tax_excl] => Array ( [type] => 4 [validate] => isPrice ) [total_paid] => Array ( [type] => 4 [validate] => isPrice [required] => 1 ) [total_paid_tax_incl] => Array ( [type] => 4 [validate] => isPrice ) [total_paid_tax_excl] => Array ( [type] => 4 [validate] => isPrice ) [total_paid_real] => Array ( [type] => 4 [validate] => isPrice [required] => 1 ) [total_products] => Array ( [type] => 4 [validate] => isPrice [required] => 1 ) [total_products_wt] => Array ( [type] => 4 [validate] => isPrice [required] => 1 ) [total_shipping] => Array ( [type] => 4 [validate] => isPrice ) [total_shipping_tax_incl] => Array ( [type] => 4 [validate] => isPrice ) [total_shipping_tax_excl] => Array ( [type] => 4 [validate] => isPrice ) [carrier_tax_rate] => Array ( [type] => 4 [validate] => isFloat ) [hazmat_fees] => Array ( [type] => 4 [validate] => isPrice ) [poison_fees] => Array ( [type] => 4 [validate] => isPrice ) [refrigerated_fees] => Array ( [type] => 4 [validate] => isPrice ) [ponumber] => Array ( [type] => 3 ) [total_wrapping] => Array ( [type] => 4 [validate] => isPrice ) [total_wrapping_tax_incl] => Array ( [type] => 4 [validate] => isPrice ) [total_wrapping_tax_excl] => Array ( [type] => 4 [validate] => isPrice ) [shipping_number] => Array ( [type] => 3 [validate] => isTrackingNumber ) [conversion_rate] => Array ( [type] => 4 [validate] => isFloat [required] => 1 ) [invoice_number] => Array ( [type] => 1 ) [delivery_number] => Array ( [type] => 1 ) [invoice_date] => Array ( [type] => 5 ) [delivery_date] => Array ( [type] => 5 ) [valid] => Array ( [type] => 2 ) [reference] => Array ( [type] => 3 ) [date_add] => Array ( [type] => 5 [validate] => isDate ) [date_upd] => Array ( [type] => 5 [validate] => isDate ) ) [classname] => Order ) [update_fields:protected] => [product_list] => Array ( [0] => Array ( [hazmat_fees] => 0 [poison_pack] => 0 [refrigerated_fees] => 0 [drop_shipping] => 0 [id_product_attribute] => 0 [id_product] => 21930 [cart_quantity] => 1 [id_shop] => 1 [name] => Hot/cold Protective Mitt, 17" Length [is_virtual] => 0 [description_short] =>
• For extreme hot or cold applications
• Cotton coated with aluminized silicones
• Withstands 450°F in short int
[available_now] => [available_later] => [id_category_default] => 1181 [id_supplier] => 0 [id_manufacturer] => 0 [on_sale] => 0 [ecotax] => 0.000000 [additional_shipping_cost] => 0.00 [available_for_order] => 1 [price] => 6.5 [active] => 1 [unity] => [unit_price_ratio] => 0.000000 [quantity_available] => 106 [width] => 8.000000 [height] => 8.000000 [depth] => 8.000000 [out_of_stock] => 2 [weight] => 1.000000 [date_add] => 0000-00-00 00:00:00 [date_upd] => 2016-09-01 08:00:39 [quantity] => 1 [link_rewrite] => HOTCOLD-PROTECTIVE-MITT-17-LENGTH [category] => chemical-and-heat-gloves [unique_id] => 0000021930000000000088641 [id_address_delivery] => 88641 [wholesale_price] => 4.214648 [advanced_stock_management] => 0 [supplier_reference] => [id_customization] => [customization_quantity] => [reference] => 180-50591 [ean13] => [upc] => [minimal_quantity] => 1 [stock_quantity] => 106 [price_wt] => 6.5 [total_wt] => 6.5 [total] => 6.5 [id_image] => 21930-71813 [legend] => [reduction_applies] => [quantity_discount_applies] => [allow_oosp] => 1 [features] => Array ( ) [rate] => 0 [tax_name] => [warehouse_list] => Array ( [0] => ) [in_stock] => 1 [carrier_list] => Array ( [0] => 73 ) ) ) )
This is the ggetto order, this message appears in the presence of a:
var_dump ($ order);
in any file should appear that function.

Yii cactivedataprovider count duplicates record and all record count

$criteria = new CDbCriteria;
$criteria->group = 't.blahah_id';
$result = new CActiveDataProvider('SocialnetworkSpams', array(
'criteria' => $criteria,
));
echo "<pre>";
print_r($result->getData());
Array
(
[0] => SocialnetworkSpams Object
(
[total] =>
[_new:CActiveRecord:private] =>
[_attributes:CActiveRecord:private] => Array
(
[id] => 1
[created_date] => 2015-12-04 03:50:47
[feedtype] => 1
[feedback] =>
[spam_status] => 1
[approveby_id] => 1
[blahah_id] => 1
[bunit_id] => 3
[spamby_id] => 1
)
[_related:CActiveRecord:private] => Array
(
)
[_c:CActiveRecord:private] =>
[_pk:CActiveRecord:private] => 1
[_alias:CActiveRecord:private] => t
[_errors:CModel:private] => Array
(
)
[_validators:CModel:private] =>
[_scenario:CModel:private] => update
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
[1] => SocialnetworkSpams Object
(
[total] =>
[_new:CActiveRecord:private] =>
[_attributes:CActiveRecord:private] => Array
(
[id] => 4
[created_date] => 2015-12-04 04:24:07
[feedtype] => 5
[feedback] => a
[spam_status] => 0
[approveby_id] =>
[blahah_id] => 2
[bunit_id] => 3
[spamby_id] => 1
)
[_related:CActiveRecord:private] => Array
(
)
[_c:CActiveRecord:private] =>
[_pk:CActiveRecord:private] => 4
[_alias:CActiveRecord:private] => t
[_errors:CModel:private] => Array
(
)
[_validators:CModel:private] =>
[_scenario:CModel:private] => update
[_e:CComponent:private] =>
[_m:CComponent:private] =>
)
)
I want duplicate record get using blahah id you can check bellow image:
Thanks
I have been resolved this issue.
$criteria = new CDbCriteria;
$criteria->select = '*, count(*) as total';
$criteria->group = 't.blahah_id';
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
View Page :
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'spam-user-grid',
'itemsCssClass' => 'table table-striped table-bordered table-hover',
'dataProvider' => $model->search(),
'template' => "{items}{pager}",
'pager' => array(
'header' => '',
),
'columns' => array(
array(
'header' => 'Blahah',
'type' => 'raw',
'value' => 'ucfirst($data->ratingprofile->name)',
//'filter' => CHtml::textField('User[name]'),
),
array(
'header' => 'Total',
'type' => 'raw',
'value' => '$data->total',
),
),
)
));