Carlos Robles frikiblog

‘Enviar a esta dirección’ por defecto

| 0 comments

Cuando en magento un cliente va a hacer el checkout, primero se le pide la direccion de facturación, y luego puede elegir entre ‘Enviar a esta dirección’ o enviar a otra.

Por defecto esta marcada la de enviar a otra, que creo que no tiene mucho sentido, porque por lo general los envios son a la direccion de facturacion.

Se puede uno romper la cabeza, o tratar de hardcodear. para ello vamos a app/dessingn/frontend/default/default/{NOMBRE DE LA PLANTILLA}/checkout/onepage/billing.phtml

y cambiamos


<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1" <?php if ($this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = true;" />&nbsp;<label for="billing:use_for_shipping_yes"><?php echo  $this->__('Ship to this address') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0" <?php if (!$this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = false;" />&nbsp;<label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;

por:

<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1" checked="checked" onclick="$('shipping:same_as_billing').checked = true;" />&nbsp;<label for="billing:use_for_shipping_yes"><?php echo  $this->__('Ship to this address') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0" onclick="$('shipping:same_as_billing').checked = false;" />&nbsp;<label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>&nbsp;&nbsp;&nbsp;&nbsp;

y una cosa menos.

Facebook Twitter Linkedin Plusone Digg Delicious Reddit Email

Leave a Reply

Required fields are marked *.