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

Checkout - Dropdown adress - to - radio button
 
Alecs00
Member
 
Total Posts:  73
Joined:  2011-05-03
 

Salutare,

Ma puteti ajuta sa schimb din Dropdown in Radio button, adresa clientului de pe pagina de Checkout cand acesta este autentificat? (poza atasata)

Am editat functia

getAddressesHtmlSelect()
din : code/core/Mage/Checkout/Block/Onepage/Abstract.php

$select $this->getLayout()->createBlock(\'core/html_select\')
                ->
setName($type.\'_address_id\')
                ->
setId($type.\'-address-select\')
                ->
setClass(\'address-select\')
                
//->setExtraParams(\'onchange=\"show_new_address(this.value)\"\')
                
->setValue($addressId)
                ->
setOptions($options);

            
$select->addOption(\'\'Mage::helper(\'checkout\')->__(\'New Address\'));

in:

array_unshift($options, array(\'value\' => \'\'\'label\'=> Mage::helper(\'checkout\')->__(\'New Address\')));
            
$select $this->getLayout()->createBlock(\'core/html_select\')
                ->
setName($type.\'_address_id\')
                ->
setId($type.\'-address-select\')
                ->
setClass(\'address-select\')
                ->
setExtraParams(\'onchange=\"\'.$type.\'.newAddress(!this.value)\"\')
                ->
setOptions($options);

Acum adresa noua apare prima data, in dropdown. Dar nu gasesc unde ar trebui sa schimb din Dropdown in Radio button

Image Attachments
checkout.png
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top