Jump to content

(SOLUCIONADO) Editar resumen en carrito


streetbrotherswear

Recommended Posts

Lo de estimación de entrega en el resumen del carrito, es un modulo llamado:

Estimación de la entrega

que lo tienes en la pestaña módulos -> módulos.
 
Referente al bloque de direcciones que aparece debajo del resumen del carrito lo puedes quitar, editando el fichero:

/themes/plantilla/shopping-cart.tpl

Buscando esto:

{if !isset($addresses_style)}
        {$addresses_style.company = 'address_company'}
        {$addresses_style.vat_number = 'address_company'}
        {$addresses_style.firstname = 'address_name'}
        {$addresses_style.lastname = 'address_name'}
        {$addresses_style.address1 = 'address_address1'}
        {$addresses_style.address2 = 'address_address2'}
        {$addresses_style.city = 'address_city'}
        {$addresses_style.country = 'address_country'}
        {$addresses_style.phone = 'address_phone'}
        {$addresses_style.phone_mobile = 'address_phone_mobile'}
        {$addresses_style.alias = 'address_title'}
{/if}

{if ((!empty($delivery_option) AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc}
<div class="order_delivery clearfix">
        {if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
                {if $delivery->id}
                <ul id="delivery_address" class="address item">
                        <li class="address_title">{l s='Delivery address'} <span class="address_alias">({$delivery->alias})</span></li>
                        {if $delivery->company}<li class="address_company">{$delivery->company|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_name">{$delivery->firstname|escape:'htmlall':'UTF-8'} {$delivery->lastname|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_address1">{$delivery->address1|escape:'htmlall':'UTF-8'}</li>
                        {if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_city">{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_country">{$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if}</li>
                </ul>
                {/if}
                {if $invoice->id}
                <ul id="invoice_address" class="address alternate_item">
                        <li class="address_title">{l s='Invoice address'} <span class="address_alias">({$invoice->alias})</span></li>
                        {if $invoice->company}<li class="address_company">{$invoice->company|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_name">{$invoice->firstname|escape:'htmlall':'UTF-8'} {$invoice->lastname|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_address1">{$invoice->address1|escape:'htmlall':'UTF-8'}</li>
                        {if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_city">{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_country">{$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if}</li>
                </ul>
                {/if}
        {else}
                {foreach from=$formattedAddresses key=k item=address}
                        <ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if}">
                                <li class="address_title">{if $k eq 'invoice'}{l s='Invoice address'}{elseif $k eq 'delivery' && $delivery->id}{l s='Delivery address'}{/if}{if isset($address.object.alias)} <span class="address_alias">({$address.object.alias})</span>{/if}</li>
                                {foreach $address.ordered as $pattern}
                                        {assign var=addressKey value=" "|explode:$pattern}
                                        <li>
                                        {foreach $addressKey as $key}
                                                <span class="{if isset($addresses_style[$key])}{$addresses_style[$key]}{/if}">
                                                        {if isset($address.formated[$key])}
                                                                {$address.formated[$key]|escape:'htmlall':'UTF-8'}
                                                        {/if}
                                                </span>
                                        {/foreach}
                                        </li>
                                {/foreach}
                                </ul>
                {/foreach}
                <br class="clear"/>
        {/if}
</div>
{/if}

Y dejandolo asi:

{*

{if !isset($addresses_style)}
        {$addresses_style.company = 'address_company'}
        {$addresses_style.vat_number = 'address_company'}
        {$addresses_style.firstname = 'address_name'}
        {$addresses_style.lastname = 'address_name'}
        {$addresses_style.address1 = 'address_address1'}
        {$addresses_style.address2 = 'address_address2'}
        {$addresses_style.city = 'address_city'}
        {$addresses_style.country = 'address_country'}
        {$addresses_style.phone = 'address_phone'}
        {$addresses_style.phone_mobile = 'address_phone_mobile'}
        {$addresses_style.alias = 'address_title'}
{/if}

{if ((!empty($delivery_option) AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc}
<div class="order_delivery clearfix">
        {if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
                {if $delivery->id}
                <ul id="delivery_address" class="address item">
                        <li class="address_title">{l s='Delivery address'} <span class="address_alias">({$delivery->alias})</span></li>
                        {if $delivery->company}<li class="address_company">{$delivery->company|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_name">{$delivery->firstname|escape:'htmlall':'UTF-8'} {$delivery->lastname|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_address1">{$delivery->address1|escape:'htmlall':'UTF-8'}</li>
                        {if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_city">{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_country">{$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if}</li>
                </ul>
                {/if}
                {if $invoice->id}
                <ul id="invoice_address" class="address alternate_item">
                        <li class="address_title">{l s='Invoice address'} <span class="address_alias">({$invoice->alias})</span></li>
                        {if $invoice->company}<li class="address_company">{$invoice->company|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_name">{$invoice->firstname|escape:'htmlall':'UTF-8'} {$invoice->lastname|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_address1">{$invoice->address1|escape:'htmlall':'UTF-8'}</li>
                        {if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'htmlall':'UTF-8'}</li>{/if}
                        <li class="address_city">{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}</li>
                        <li class="address_country">{$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if}</li>
                </ul>
                {/if}
        {else}
                {foreach from=$formattedAddresses key=k item=address}
                        <ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if}">
                                <li class="address_title">{if $k eq 'invoice'}{l s='Invoice address'}{elseif $k eq 'delivery' && $delivery->id}{l s='Delivery address'}{/if}{if isset($address.object.alias)} <span class="address_alias">({$address.object.alias})</span>{/if}</li>
                                {foreach $address.ordered as $pattern}
                                        {assign var=addressKey value=" "|explode:$pattern}
                                        <li>
                                        {foreach $addressKey as $key}
                                                <span class="{if isset($addresses_style[$key])}{$addresses_style[$key]}{/if}">
                                                        {if isset($address.formated[$key])}
                                                                {$address.formated[$key]|escape:'htmlall':'UTF-8'}
                                                        {/if}
                                                </span>
                                        {/foreach}
                                        </li>
                                {/foreach}
                                </ul>
                {/foreach}
                <br class="clear"/>
        {/if}
</div>
{/if} *}

Con
 

{* ... *}

se comenta el codigo que no quieres que se vea.

Link to comment
Share on other sites

busca en módulos -> shipping estimator (o algo similar), desactivalo.

 

Edit: mi respuesta tras la de nadie ya no tiene sentido ;)

 

Todas las respuestas tienen sentido. 

 

La fuerza de la comunidad, es la fuerza de los usuarios !

 

Saludos,

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...