Jump to content

[SOLVED] Block Myaccount with some icons showing, others are not


Recommended Posts

Hello,

I'm trying to get Block Myaccount contents to look the same. At the moment it seems like half the stuff in the there has icons, the other half do not. An example of this is if you look at "My Orders", there is no icon next to the text. If you look at "My Vouchers", there is a little icon next to the text.
In modules/block myaccount/blockmyaccount.tpl I see where the first half of the block contents come from, but not the last part that shows the icons.
Does anyone know where the other half (icons) of the Block Myaccount contents comes from, and how to either remove all icons, or add missing icons so all the contents look the same? Thanks...

22369_mXWP24r5Ux4gA0SaJvEA_t

Link to comment
Share on other sites

This is because the first five items are created by the "My account" block and the last four items were added by modules. To remove the last four images, edit modules/loyalty/my-account.tpl, modules/mailalerts/my-account.tpl, modules/referralprogram/my-account.tpl and modules/blockwishlist/my-account.tpl and {* comment out *} the <img> link in these files. To add images to the first five items, edit modules/blockmyaccount/blockmyaccount.tpl and add <img> links in the same way as the modules do.

Link to comment
Share on other sites

  • 2 weeks later...

Rocky, this is proving surprisingly difficult for me to change. I copied what I think is the correct code to make the icon appear (I made a copy of the "logo" icon in the blockmyaccount module and renamed it "history"). I attached a screenshot to show the code in question.
However, if I insert this code after the "{l s='My Orders' mod='blockmyaccount'}" code in the blockmyaccount.tpl , the icon appears to the right of the "My Orders" text.
If I insert this code before the "{l s='My Orders' mod='blockmyaccount'}" code in the blockmyaccount.tpl, the icon appears to the left as desired, but the "My Orders" text has disappeared?

Have no idea what I'm doing wrong here? Please advise..

22942_okrA1wl0rzO8IgDh1dEV_t

22943_i6lp4XV2ExmXmhAaoE3w_t

Link to comment
Share on other sites

Your blockmyaccount.tpl should look like this:



{l s='My account' mod='blockmyaccount'}
    
{l s='Personal Info' mod='blockmyaccount'}
{l s='Addresses' mod='blockmyaccount'}
{l s='Order History' mod='blockmyaccount'}
           {if $returnAllowed}
{l s='RMA (Returns)' mod='blockmyaccount'}
           {/if}
{l s='Credits' mod='blockmyaccount'}    {if $voucherAllowed}
{l s='Coupons' mod='blockmyaccount'}    {/if}   
   {$HOOK_BLOCK_MY_ACCOUNT}    
    {l s='Log out' mod='blockmyaccount'}

Link to comment
Share on other sites

  • 2 years 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...