Magento frontend hightlight translations - magento

I am trying to make Magento highlight translations on the front end of the website and show what file the translation is in.
I'm not really sure where best to start with this and cant find anything similar.
Edit: I managed to do this by extending the Translate model, was actually very simple.

You're in luck! Magento has this built in. Go to admin, and go to;
System > Configuration
From the top menu, then;
Developer
From the left menu (its at the bottom).
Open the 'translate inline' tab, and enable for front end. Flush your cache and go back to the frontend. It will now show you the paths for labels which live in the /app/locale/[COUNTRY CODE] folders.
NOTE: Don't do this on a production site, as others will see the labels too.

Related

Home page block order

I would like to change the order of some blocks in our Magento environment.
I've opened nearly every layout XML, but I can't find what I am looking for.
Does anyone know where to start looking for the order of the blocks?
Anything front-end or design related is under app/design/frontend (for general site) and app/design/adminhtml for the admin panel.
The next folder you navigate to is the package you use, you can check this under the design tab of the system config of the admin panel. So for example if it is base, you go to the app/design/frontend/base
Next folder is the theme, you can check it in the design tab too. So assume it's the default theme it would be like app/design/frontend/base/default
Now go to the layout folder and find the .xml for the page you looking for. If its a product page it would be the app/design/frontend/base/default/layout/catalog.xml

Magento, category, details button

I'm trying to teach myself Magento, and basic programming.
In the product lists I have, beside the "add to cart" button is a "Details" button. It has a typo in the label, and says "Detalis".
I need to fix this, but I can't find where/which file it is in. Can anyone point me in the right direction?
Generally,product list layout came from list.phtml file.
file location:app/design/frontend/default/my_theme/template/catalog/product/list.phtml
(or)
Please enable the path hints via admin panel.It's show all block paths.
How do I turn on template path hints?
To turn on template path hints in Magento:
log into the magento back-end admin
Go to System -> Configuration in the main menu
Go to Developer on the bottom left under ADVANCED
Switch to the store view on the top left to your current website or
store view.
Under the Debug tab of the same Developer config page you will see a
new option appear that will allow you to turn on/off template path
hints.
Remember to clear your cache.
Generally, I believe that the templates associated with products would be located in the
app/design/frontend/default/your_theme/template/catalog/product/
However, I am unsure of your site template files etc, especially if you are doing things yourself.
To make your life easier, I would suggest installing a program called Agent Ransack which I have found to be invaluable when searching for a needle in a haystack.

Content and footer of magento front end is not displaying except header

My front end of magento does not show any content and footer, its only showing header and navigation menu. I have checked in view.phtml as the code is there to display the page. please provide me the solution.. picking my hair since morning...
If I understand you correctly, your site is loading the header and then displaying nothing after that section. Syntax errors in PHP are the most common cause of this. Could be something as simple as whitespace. In order to diagnose I would recommend turning on template hints in Magento's backend to see what template files have or have not loaded.
From the dashboard, go to System > Configuration. Scroll down to the bottom left and you will see "Advanced". Click on "Developer" underneath that. A new screen will appear. Click on the section labeled "Debug" and uncheck "Use Website" next to "Template Path Hints". If you don't see this option, switch stores in the upper-left drop down.
Go back to your troubled web page and reload. You'll see all kinds of fun markup which leads to file paths pertaining to your site. After header.phtml loads, usually the next files to be called are breadcrumbs.phtml, topmenu.phtml or even homepage.phtml depending on your site's setup. I generally go into these template files, select all and delete the contents of each. If breadcrumbs.phtml is empty and your content isn't showing, restore it with cmd + z or ctrl + z and move on to the next file. Empty it, save it and reload the website. The goal is to narrow down that syntax error that is causing the page to break. When you have successfully found the file, your site will load correctly (minus whatever phtml file you just emptied). Be sure to have a backup or copy of your PHTML files while doing this. ;)
You could also switch back to your default template. If your content returns then you definitely know it is something with your custom template.
You might also be able to check your PHP/Apache logs for signs of trouble but I feel confident the above method will help you out. Let me know.

Magento content does not show up

It is the first time I use Magento. I have installed Magento with a custom theme. When I add category and product from dashboard, they doesn't show up on the website, just a blank content (header, sidebar and footer works fine, more precisely you can see it at here)
I found the added product from sitemap with css gone. What might be the reason for this? Why categories and content doesn't appear on the website? Why css is broken on the product page?
Magento is designed to be as efficient as possible and the learning curve can initally be daunting to people encountering it for the first time. A couple things to try:
Make sure that the category you've created, found in Catalog > Categories > Manage Categories, the option "Include in Navigation Menu" set to yes (this should automatically "create" the navigation bar for you)
In the admin section of your site, navigate to System > Index Management and select all and reindex them all
In the admin section, navigate to System > Cache Management and flush the cache
The last two steps, when developing your site, are sometimes necessary to see the most up to date information on your Magento install. Something which may make your life easier is in the Cache Management page, select all of the cache types and choose to disable them for now. You'll want to re-enable them once you make the site live.

Subtotal, Shipping, Discount and Grand Total Missing in Magento

Hope someone can point me in the right direction. I am not a Magento developer but am having to fix my site after my "developer" left me with most of the work to do.
Currently in my checkout screen i'm not seeing any values other than that of the actual product item value - no subtotals, discounts, shipping or the grand total. They all appear ok on the emails that are sent though (luckily).
I'm not using the default Magento package but from what i can see all the .phtml files seem to be there in the base directories and are not in my new design directories - so i would have assumed all would work ok. But alas, no. Is there anywhere i should be looking/tweaking etc etc? Have googled about as much as i can but to no avail.
I'm sure it must be something simple (!?) if all appear on the emails ok. Any ideas would be great!
I realise this is fairly old now but just in case anyone else comes across this I had this problem and for me all I had to do some enable the Mage_Tax module in System > Configuration > Advanced
It is difficult to answer your question without more insight, but here is what can be a starting point:
Login to your shop's admin panel.
In System menu click on Configuration.
From the Current Configuration Scope box select your Website.
Now in the menu on left-hand side under Configuration > Advanced (almost to the bottom of the screen)
Click on Developer
Now in the main panel, click on Debug.
For the field Template Path Hints select Yes.
Now reload your website (front-end) and you will see from which template is each part of the page being loaded.
Also if Magento's cache is enabled, you will need to clear that. I would suggest that this cache be disabled during development and/or on non-production versions of your site.

Resources