Questions tagged [array]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
353 views

Add a new address during multishipping checkout

Is there a good way to allow users to add new addresses during multishipping checkout in-page (not having to go to a dedicated form page) the way many onepage checkouts function?
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 ...
2
votes
1answer
152 views

Exclude Parent category ids from array of category id's

Hi i'm having a product collection, i'm getting those categories by $item->getCategoryIds(); On print_r($categoryIds = $item->getCategoryIds()); i'm getting Array ( [0] => 12 [...
1
vote
2answers
518 views

Correct syntax for multiple category ID's in array

Trying to exclude the rendering of something based on category ID using the following... <?php if ($_category_id == 2) { ?> <?php //do nothing ?> <?php } else { ?> <?php /...
0
votes
2answers
851 views

Convert Mage_Customer_Model_Customer Object to an array and convert again to object

I had encrypted customer's firstname ,lastname and email and need to decrypt data to show in front end. I will be Overriding public function getCustomer() located at app/code/core/Mage/Model/Session....
1
vote
2answers
177 views

Is there a way to split a customer text attribute in Magento?

I am trying to find a way to split a customer text attribute in order to display it on the frontend. I have added a new text field to the customer address and would like to display this value on the ...
3
votes
2answers
2k views

Custom API specify multidimensional parameter

I already created custom api where I am able to pass array item (for example $data = array('date'=>'2013-12-22','operation'=>'import','successful'=>'1', 'requeue'=>'0');) but I would ...
0
votes
1answer
317 views

Copy array from product to quote item and order item

I am copying single valued attributes from product to quote item and converting to order item. But is it possible to do that with an array? If yes - what's the process and what type should the table ...
3
votes
2answers
1k views

Passing an array from block file to template file

I have a collection of Dealer Stores. I have implemented a function that calculates the distance of all stores from the location of the customer and i have an array of respective distances. I have ...
3
votes
4answers
1k views

Duplicate items in array from SOAP

Im trying to get a list of items from an order to display correctly on my webpage using the SOAP API. I have managed to display shipping, billing and general info, and i have also managed to display ...
1
vote
1answer
58 views

Array is duplicating the results?

I am trying to insert multiple items on Db. It inserts successfully but when it comes to multiple items it duplicates it looks like am replacing on this array. Here is the code: $orderitems=$order-&...
0
votes
1answer
4k views

GetStreet() endup into an error Array to string conversion?

I am trying to call all the customer info after placing an order and insert all these info into a database. All the parameters are passing ok beside getStreet() which ends up as array into database, ...
9
votes
1answer
24k views

How to list all users

As part of an exercise I am trying to list all users email from my database on one page. So far the closest i've got is $user = mage::getModel('customer/customer')->getCollection()->getData(); ...
18
votes
3answers
31k views

How to print array contents in log file?

How to print array contents into a log file in magento CE 1.7 without iterating through a loop?
1
vote
1answer
1k views

How to load an address by street attribute

I can load an address using the following code: $addresses = $addressObj->getCollection() ->addAttributeToSelect('*') ->addAttributeToFilter('firstname', $addressData['...