Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get all shipping dest. address informations
 
brazilcr
Jr. Member
 
Total Posts:  4
Joined:  2008-08-21
Fortaleza, Ceará
 

Hi… I’m trying to create a shipping method to work under a kind of delivery’s store logic.

My goal is about to have a tax per neighborhood.. And my try now, is about to retrieve all data of all shipping address at \model\carrier checkout step and I’m newbie on magento and I’m not sure how to code that:

my try is about have something as:

$address $request->getAllShippingAddresses();
foreach(
$address  as $adds{
   $city 
$adds['city'];
   
$ads $adds['address'];
   
// ...
}

Does anyone could point me here please any light on how should I implement this…

TIA

Claudio

 
Magento Community Magento Community
Magento Community
Magento Community
 
szotyi
Sr. Member
 
Total Posts:  153
Joined:  2008-11-29
 

use:
echo ‘<pre>’; print_r($adds); echo ‘</pre>’;

and u will find every information

however:
BILLING/SHIPPING INFO
[entity_id]
[entity_type_id]
[attribute_set_id]
[increment_id]
[parent_id]
[store_id]
[created_at]
[updated_at]
[is_active]
[address_type]
[firstname]
[lastname]
[company]
[street]
[city]
[region]
[postcode]
[country_id]
[telephone]
[fax]
[region_id]

 
Magento Community Magento Community
Magento Community
Magento Community
 
brazilcr
Jr. Member
 
Total Posts:  4
Joined:  2008-08-21
Fortaleza, Ceará
 

Hi.. thanks for your reply…

however

echo “<pre>”; print_r($adds); echo “</pre>”;

brought me to the following error:

Notice: Undefined variable: adds in /home/domain/public_html/magento/app/code/community/Cushy/Correios/Model/Carrier/Correios.php on line 66
Trace:
#0 /home/domain/public_html/tomoe/app/code/community/Cushy/Correios/Model/Carrier/Correios.php(66): mageCoreErrorHandler(8, ‘Undefined varia...’, ‘/home/nissis/pu...’, 66, Array)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top