GoldRazor Posted May 16, 2012 Share Posted May 16, 2012 Bonjour, Lorsque je suis identifié, sur la page panier, tout en bas, il y a un bloc transporteur avec le nom et le logo du transporteur disponible. Je souhaite supprimer ce bloc à cet endroit. Avez vous une solution ? Merci Link to comment Share on other sites More sharing options...
Divine Posted May 16, 2012 Share Posted May 16, 2012 Bonjour, Il faut que tu supprime ou que tu commente les lignes concernées dans le fichier shopping-cart.tpl de ton thème : {if (($carrier->id AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc} <div class="order_delivery"> {if !isset($formattedAddresses)} {if $delivery->id} <ul id="delivery_address" class="address item"> <li class="address_title">{l s='Delivery address'}</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'}</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 item=address name=myLoop} <ul class="address {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if}"> <li class="address_title">{$address.object.alias}</li> {foreach from=$address.ordered name=adr_loop item=pattern} {assign var=addressKey value=" "|explode:$pattern} <li> {foreach from=$addressKey item=key name="word_loop"} <span class="{if isset($addresses_style[$key])}{$addresses_style[$key]}{/if}"> {$address.formated[$key]|escape:'htmlall':'UTF-8'} </span> {/foreach} </li> {/foreach} </ul> {/foreach} <p class="clear" /> {/if} {if $carrier->id AND !isset($virtualCart)} <div id="order_carrier"> <h4>{l s='Carrier:'}</h4> {if isset($carrierPicture)}<img src="{$img_ship_dir}{$carrier->id}.jpg" alt="{l s='Carrier'}" />{/if} <span>{$carrier->name|escape:'htmlall':'UTF-8'}</span> </div> {/if} </div> {/if} Link to comment Share on other sites More sharing options...
GoldRazor Posted May 16, 2012 Author Share Posted May 16, 2012 (edited) Merci pour ta réponse Donc si je comprend bien, il faut que je supprime le div order Carrier en bas ? {if $carrier->id AND !isset($virtualCart)} <div id="order_carrier"> <h4>{l s='Carrier:'}</h4> {if isset($carrierPicture)}<img src="{$img_ship_dir}{$carrier->id}.jpg" alt="{l s='Carrier'}" />{/if} <span>{$carrier->name|escape:'htmlall':'UTF-8'}</span> </div> {/if} </div> {/if} Donc j'ai bien supprimé ce bout de code et quand je raffraichi la page, j'ai toujours le bloc en bas ... Quelqu'un aurait une solution ? Merci Edited May 16, 2012 by Kevin789 (see edit history) Link to comment Share on other sites More sharing options...
GoldRazor Posted May 16, 2012 Author Share Posted May 16, 2012 Je dois pas vider un cache ? Si oui, comment faire ? Merci Link to comment Share on other sites More sharing options...
comptes-premium Posted May 16, 2012 Share Posted May 16, 2012 salut, dans ton panel admin preference=>performances : forcer la compilation = oui cache = non sa sera un peux plus lent c'est normal va actualiser ta page et tu devrait voir tes modification. pense a remettre la compilation et le cache comme avant une fois finis . Link to comment Share on other sites More sharing options...
GoldRazor Posted May 16, 2012 Author Share Posted May 16, 2012 Ok merci ! Ca ma effectivement raffraichi la page mais la partie du code que j'ai enlevé n'est pas la bonne :/ Link to comment Share on other sites More sharing options...
comptes-premium Posted May 16, 2012 Share Posted May 16, 2012 a tu essayer de tout simplement supprimer les transporteur dans transport=>transporteurs ? Link to comment Share on other sites More sharing options...
GoldRazor Posted May 16, 2012 Author Share Posted May 16, 2012 Ha non, c'est bon, probleme résolu, j'ai supprimé un IF en trop Merci pour ton aide Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now