Jump to content

[SOLVED] Duplication of bag image by cart - duplicated code?


Recommended Posts

Hi Guys

 

I have a weird issue. 

 

If you have a look at my site: http://radiator.annacalvert.co.uk/ you will see that the bag image sign by the my cart bit is duplicated. There should only be one bag. 

 

I am assuming when editing some code that I have duplicated that section but I cannot find where this code is or what file? 

 

Has anyone got any ideas? 

 

Cheers :)

Link to comment
Share on other sites

Code from the theme's module (assuming you mean this one as I believe it overwrites the main one?) 

 

I edited this for the pintrest, facebook etc. It looks like the block cart is duplicated so can i just delete the second bit of the block user cart flag
 
<!-- Block user information module HEADER -->
 
<ul class="block_socials">
 
<li class="first_item">
<a href="https://www.facebook.com/pages/Anna-Calvert-Jewellery/177478928971023" title="{l s='Send on Facebook' mod='blockuserinfo'}" target="_blank"><img class="social" src="{$img_dir}Facebook.png" alt="Facebook" width="32" height="32" onmouseover="this.src='{$img_dir}Facebook-hover.png';" onmouseout="this.src='{$img_dir}Facebook.png';" /></a> 
<a href="https://twitter.com/Anna_Calvert" title="{l s='Send on Twitter' mod='blockuserinfo'}" target="_blank"><img class="social" src="{$img_dir}Twitter.png" alt="Twitter" width="32" height="32" onmouseover="this.src='{$img_dir}Twitter-hover.png';" onmouseout="this.src='{$img_dir}Twitter.png';" /></a> 
<a href="http://pinterest.com/acjewellery/" title="{l s='Send on Pintrest' mod='blockuserinfo'}" target="_blank"><img class="social" src="{$img_dir}Pintrest.png" alt="Pintrest" width="32" height="32" onmouseover="this.src='{$img_dir}Pintrest-hover.png';" onmouseout="this.src='{$img_dir}Pintrest.png';" /></a>
</li>
 
 
</ul>
 
 
<div id="header_user">
 
 
<ul id="header_nav">  
 
<li id="header_user_info"> 
 
<a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Login' mod='blockuserinfo'}"><img src="{$img_dir}icon/locked.gif" alt="loginlink" width="10" height="11" onmouseover="this.src='{$img_dir}icon/unlocked-red.gif';" onmouseout="this.src='{$img_dir}icon/locked.gif';" /></a>
 
</li>
 
<li class="user_space">|</li>
 
<li id="your_account"><a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a></li>
 
</ul>
 
<div id="shopping_cart">
<p>
<img class="boutique" style="float:left; margin: -2px 10px 0 0" src="{$img_dir}cart-premium.png" alt="footlink" width="20" height="20" />
<a href="{$link->getPageLink("$order_process", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'}
<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span>
<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span>
{if $cart_qties >= 0}
<span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
{if $priceDisplay == 1}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
{else}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
{/if}
</span>
{/if}
<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='0' mod='blockuserinfo'}</span>
</a>
</p>
</div>
 
</div>
 
<!-- /Block user information module HEADER -->
Edited by gnattle (see edit history)
Link to comment
Share on other sites

ok, try to comment this part of code:

{*
<div id="shopping_cart">
<p>
<img class="boutique" style="float:left; margin: -2px 10px 0 0" src="{$img_dir}cart-premium.png" alt="footlink" width="20" height="20" />
<a href="{$link->getPageLink("$order_process", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'}
<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span>
<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span>
{if $cart_qties >= 0}
<span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
{if $priceDisplay == 1}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
{else}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
{/if}
</span>
{/if}
<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='0' mod='blockuserinfo'}</span>
</a>
</p>
</div>
*}
Link to comment
Share on other sites

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...