Steffen Posted November 26, 2010 Share Posted November 26, 2010 Hi I want to edit out/hide/remove "Last added item" and "Delivery address/Billing address" from the basket, but I don't know where to do this?? I only want the customer to see the shopping cart resumé and the voucher field.Picture 1 = Standard lookPicture 2 = Wanted look Any help is greatly appreciated! Link to comment Share on other sites More sharing options...
rocky Posted November 27, 2010 Share Posted November 27, 2010 Edit shopping-cart.tpl in your theme's directory and {* comment out *} lines 21-37 (in PrestaShop v1.3.2): {if isset($lastProductAdded) AND $lastProductAdded} {foreach from=$products item=product} {if $product.id_product == $lastProductAdded.id_product AND (!$product.id_product_attribute OR ($product.id_product_attribute == $lastProductAdded.id_product_attribute))} {l s='Last added product'} <a class="cart_last_product_img" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" width="{$smallSize.width}" height="{$smallSize.height}" /> <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'} {if $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}{/if} {/if} {/foreach} {/if} and lines 239-271: {if ($carrier->id AND !$virtualCart) OR $delivery->id OR $invoice->id} {if $delivery->id} {l s='Delivery address'} {if $delivery->company}{$delivery->company|escape:'htmlall':'UTF-8'}{/if} {$delivery->lastname|escape:'htmlall':'UTF-8'} {$delivery->firstname|escape:'htmlall':'UTF-8'} {$delivery->address1|escape:'htmlall':'UTF-8'} {if $delivery->address2}{$delivery->address2|escape:'htmlall':'UTF-8'}{/if} {$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'} {$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if} {/if} {if $invoice->id} {l s='Invoice address'} {if $invoice->company}{$invoice->company|escape:'htmlall':'UTF-8'}{/if} {$invoice->lastname|escape:'htmlall':'UTF-8'} {$invoice->firstname|escape:'htmlall':'UTF-8'} {$invoice->address1|escape:'htmlall':'UTF-8'} {if $invoice->address2}{$invoice->address2|escape:'htmlall':'UTF-8'}{/if} {$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'} {$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if} {/if} {if $carrier->id AND !$virtualCart} {l s='Carrier:'} {if isset($carrierPicture)}<img src="{$img_ship_dir}{$carrier->id}.jpg" alt="{l s='Carrier'}" />{/if} {$carrier->name|escape:'htmlall':'UTF-8'} {/if} {/if} Link to comment Share on other sites More sharing options...
Steffen Posted November 27, 2010 Author Share Posted November 27, 2010 I thank thee, my good sir! Link to comment Share on other sites More sharing options...
ReBoot Posted November 28, 2010 Share Posted November 28, 2010 This I don't understood well, could it be explained easier, what to replace or which lanes to delete or changed Thank you in advanceRegards,Darius Link to comment Share on other sites More sharing options...
rocky Posted November 28, 2010 Share Posted November 28, 2010 I already specified which lines in which file to change and even pasted them here. I can't be any clearer other than to say that by {* comment out *} I mean add {* to the beginning of the specified code block and *} after it. Link to comment Share on other sites More sharing options...
ReBoot Posted December 1, 2010 Share Posted December 1, 2010 Thanks Rocky I got it smoothly done Link to comment Share on other sites More sharing options...
Recommended Posts