Magento Forum

   
Checkout - Dropdown adress - to - radio button
 
Alecs00
Member
 
Total Posts:  71
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