Jump to content

[SOLVED] Remove 'last added product' from cart view


peepo

Recommended Posts

yep, I dont like this feature too :)

 

go to the shopping-cart.tpl file and cut out these lines:

 

{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))}
		<div class="cart_last_product">
			<div class="cart_last_product_header">
				<div class="left">{l s='Last added product'}</div>
			</div>
			<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'}"/></a>
			<div class="cart_last_product_content">
				<h5><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5>
				{if isset($product.attributes) && $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}
			</div>
			<br class="clear" />
		</div>
	{/if}
{/foreach}
{/if}

  • Like 1
Link to comment
Share on other sites

  • 6 months later...
  • 4 months later...
  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...