Shaun Posted April 21, 2010 Share Posted April 21, 2010 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... Link to comment Share on other sites More sharing options...
rocky Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
Shaun Posted April 21, 2010 Author Share Posted April 21, 2010 Awesome, I'm going to play around with that tonight. Thanks a million.... Link to comment Share on other sites More sharing options...
Shaun Posted May 3, 2010 Author Share Posted May 3, 2010 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.. Link to comment Share on other sites More sharing options...
Star Posted May 4, 2010 Share Posted May 4, 2010 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 More sharing options...
Shaun Posted May 4, 2010 Author Share Posted May 4, 2010 That worked a charm, thanks Star & Rocky! Link to comment Share on other sites More sharing options...
g.ciprian Posted June 27, 2012 Share Posted June 27, 2012 Hi. I'm using the new PS theme (http://addons.prestashop.com/en/neutral/3337-prestashop-template-15.html) on PS 1.4.8. This solution is not working in my case. Any ideea? Thanks. 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