gnattle Posted October 11, 2013 Share Posted October 11, 2013 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 More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 you've got two carts attached to top. one from block user info module second from block cart module. in first one you've got definition of image: the question is: which one you want to remove? Link to comment Share on other sites More sharing options...
gnattle Posted October 11, 2013 Author Share Posted October 11, 2013 Which one should I remove? It appeared after I chose the quick checkout I think? Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 i don't know which one you want to remove, decision is your, just let me know which one, then i will inspect code and give you solution Link to comment Share on other sites More sharing options...
gnattle Posted October 11, 2013 Author Share Posted October 11, 2013 (edited) Will it just affect the image duplication? if so I want to keep the one closest to my cart and not have the one with the outer border bit if that makes sense. Thanks for your help. Sorry I thought you meant which module not which image. Edited October 11, 2013 by gnattle (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 can you show me contents of your blockuserinfo.tpl file please? (from blockuserinfo module) Link to comment Share on other sites More sharing options...
gnattle Posted October 11, 2013 Author Share Posted October 11, 2013 (edited) 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 October 11, 2013 by gnattle (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 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 More sharing options...
gnattle Posted October 11, 2013 Author Share Posted October 11, 2013 Sorry, do you mean to replace my code with what you have posted? Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 yes, just add brackets exactly as i added {* code *} Link to comment Share on other sites More sharing options...
gnattle Posted October 16, 2013 Author Share Posted October 16, 2013 Thanks I will try this now. Link to comment Share on other sites More sharing options...
gnattle Posted October 16, 2013 Author Share Posted October 16, 2013 (edited) Ignore me. That has worked, thank you so much! Solved! Edited October 16, 2013 by gnattle (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2013 Share Posted October 16, 2013 hello thank you for confirmation that it works im so glad that i could help you thread marked as [solved] with regards, Milos 1 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