Jump to content

|SOLVED| Edit basket?


Recommended Posts

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 look
Picture 2 = Wanted look

Any help is greatly appreciated!

34116_g7gBJ21O7qjgvwumFQeH_t

34115_TZjVccKaandm4COixWu4_t

Link to comment
Share on other sites

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

×
×
  • Create New...