jeudi 27 novembre 2014

Magento: can't retrieve saved billing address


Vote count:

0




I have a problem trying to show an already saved billing address in the checkout process. Basically, the existing code (OnePageCheckout) uses the following code to show a dropdown list with existing addresses:



<?php echo $this->getAddressesHtmlSelect('billing') ?> // For billing
<?php echo $this->getAddressesHtmlSelect('shipping') ?> // For shipping


The problem is that the billing dropdown has the same values as the shipping one.


The code that shows the dropdown is the following:



<?php echo $this->getAddressesHtmlSelect('billing') ?> // for billing
<?php echo $this->getAddressesHtmlSelect('shipping') ?> // for shipping


Shipping is correct, Billing shows the Shipping values.


But if I perform the following query on the DB:



select * from sales_flat_quote_address where customer_id = <my_customer_id>;


I can clearly see the 2 addresses, one with address_type shipping, one with address_type billing.


The method reported here has the same problem.


I'm stucked...any hints is appreciated. Thanks.



asked 2 mins ago







Magento: can't retrieve saved billing address

Aucun commentaire:

Enregistrer un commentaire