All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1
votes
1answer
29 views

Array Get Value in magento2

i want to get profile id from this array [2019-05-21 07:30:24] main.DEBUG: array ( 'url' => 'https://api-3t.sandbox.paypal.com/nvp', 'CreateRecurringPaymentsProfile' => array ( '...
0
votes
1answer
22 views

Multiple For each loop value to Json string

$data= array(); foreach($itfdatas as $key=>$itfdata){ $checkemps = explode(',',$itfdata['employee_id']); $data[] = array( 'id'=>mysql_real_escape_string($itfdata['P_id']), ...
2
votes
1answer
88 views

Unserialize large data not working in Magento 1.9

I've created a custom module on my Magento 1.4.0 website, which create a csv feed file with all products and you can add dynamically what product attributes to display in the file. Something like in ...
2
votes
2answers
49 views

How can Select arrays from associate array in php on the basis on element [closed]

I have an array "$arrItems['items']" in which 5 more arrays(associate array) and each array contain 5 element(f_name,l_name,contact,address,seller_id). Actually I want to get all those arrays(from "$...
0
votes
1answer
63 views

Magento 1.9.x Quantity Select Box Increments - How can i limit them?

We currently display product quantities in select box <select><option> type inputs and limit the select dropdown to a maximum Qty of 30. This has been working fine for us however we want ...
1
vote
5answers
305 views

Magento 2.2: Weird $_files array after image upload

currently I'm trying to develop an image upload in the Magento admin area with ui components. My fieldset declarations looks like this: <fieldset name="slide"> <argument name="data" ...
0
votes
1answer
441 views

Arry to string conversion Magento 2 webapi - with snippet

I have this code in a module to recalculate Magento 2 shipping rate public function getAddressHash($request) { $addressCondition = $this->objectManager->create('Magesales\...
1
vote
1answer
189 views

something is wrong in the code. theows an error->getNodeChildrenData() must be an instance of Varien_Data_Tree_Node,on line 18 [duplicate]

<?php class Ab_CategoryObserver_Model_Observer{ public function updateTopMenuJson(Varien_Event_Observer $observer){ $_helper = Mage::helper('catalog/category'); $_categories = $...
0
votes
2answers
81 views

What to do exactly? my code throw an error -> 'Call to undefined function getNodeChildrenData()'

class Ab_CategoryObserver_Model_Observer{ public function updateTopMenuJson(Varien_Event_Observer $observer){ $_helper = Mage::helper('catalog/category'); $_categories = $_helper->...
0
votes
1answer
49 views

adding new custom attribute product into cart remove the other cart products

I have an issue by adding custom attribute product into cart remove the other already added cart items. I have checked by applying base theme, disabling install module replace the fresh core files of ...
0
votes
3answers
100 views

arrange the array in table format [closed]

This is my array $_tierPrices = Array ( Array ( "price_qty" => "4", "price" => "143.00", "savePercent" => "8" ), ...
0
votes
2answers
42 views

How to change the array values?

My data is in this format. I want it without wishlist_id, means simple values. How to change the array values? Array ( [0] => Array ( [wishlist_id] => 35 ) [1] => Array ( [...
0
votes
3answers
838 views

How To Fetch And Display Last 4 Table Rows?

The following code currently outputs the first row matching the criteria is_read != 1', 'is_remove != 1'. I need to modify this code to output the last 4 table rows that matches said criteria. I tried ...
3
votes
1answer
497 views

iterate over array value not display in phtml

I´m trying to display Ebay GetSingleItem response (http://developer.ebay.com/devzone/shopping/docs/callref/GetSingleItem.html) and I´m having problems displaying array ["ItemSpecifics"]. The call is ...
2
votes
2answers
2k views

Getting all rows from database

i have an array string with id numbers example: $taxIds=array(9,13) how to fetch all record with this query?? $connection = Mage::getSingleton('core/resource')->getConnection('core_read'); $sql ...
1
vote
0answers
60 views

Get single dimensional php array from model getData [closed]

From my model collection I got the list of data, which is in format - array(0 => "first", "1" => "second", ...). Is it possible to get the data in a normal single dimensional php array like ...
0
votes
3answers
1k views

how to show array value label?

I have an array: $type = array( 0 => "Car", 1 => "SUV", 2 => "Truck", 3 => "Bike" ); When a user selects the options from a form, the associated value is stored in a ...
0
votes
1answer
304 views

How to intersect 2 collections in Magento

I have 2 lists of countries: the default directory/country list and another one from an extension. I want to display only the values from the Magento list that are common between the two values. The ...
1
vote
1answer
1k views

How to pass dynamic values into an array

I'm creating a list of products, which is filtered to only show products within certain categories in Magento. I'm using the AddAttributeToFilter which is working fine: $products->...
1
vote
1answer
50 views

Strange arrays being output on front-end instead of website

Trying to setup version control on a pre-existing client's site. There have been a number of developers who have had their hands in this and I'm slowly modifying the .gitignore file in attempt to ...