EzDevInfo.com

magento interview questions

Top magento frequently asked interview questions

Magento or Prestashop, which is better? [closed]

I want to find an ecommerce solution for my little shop. My friend tells me that Prestashop is very easy to use and develop modules for, but some say Magento is better. Can anybody tell me which is better for developing modules and why? Thank you.


Source: (StackOverflow)

How to get a product's image in Magento?

I'm running on version 1.3.2.1, but on my client's server they had Magento 1.3.0 so my previous code to display images for my local copy,

echo $this->helper('catalog/image')->init($_product)->resize(163, 100);

, does not work on the client's installation.

Looking at the results returned by their Magento, version 1.3.0 actually returns a URL although it points to the skin's media folder.

Is there a way to get the absolute image path for the image?
Or should I make changes somewhere else that would tell Magento that the media directory should be on the root?


Source: (StackOverflow)

Advertisements

how to get store information in magento?

How to get active store information like store name,and line number etc in magento?


Source: (StackOverflow)

Magento admin login not working in chrome but works fine for firefox

I am just a newbie to the magento. I have installed magento on my localhost. After all the setup when I used the admin page to login I can't able to login in chrome browser even with my right username and password. But when I am trying to login in firefox there is no problem. So can some one really help me here to solve the problem?


Source: (StackOverflow)

What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management?

What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management?

enter image description here


Source: (StackOverflow)

How do I save value in my own session variable in Magento?

I am using Magento and trying to save a value in the session as follows in its index.php file, but the value is not being retained.

$_SESSION['myvar'] = '1';

How do I do it?

Thanks


Source: (StackOverflow)

Understanding Magento Block and Block Type

I just want to understand the meaning of

 <block type="page/html" name="root" output="toHtml" template="example/view.phtml">

I got many references from Google and understood many things about it but I am still unable to understand the formation of type="page/html" how to form a type for my custom module.

Please explain

type="A/B"

Let me know where this A and B come from?


Source: (StackOverflow)

Get skin path in Magento?

I have a few custom PHP functions for my Magento store that I stored in myfunc.php and I need to require it from in a few different .phtml files. How do I do that?

I mean I can use an absolute path but that would be dirty and probably problematic when migrating to another server.

For now I'm stuck with:

require('/home/myuser/public_html/app/design/frontend/default/mytheme/myfunc.php');

How do I refer to the skin path ( /home/myuser/public_html/app/design/frontend/default/mytheme/ ) programatically?

Thanks!


Source: (StackOverflow)

Clearing Magento Log Data

I have a question regarding clearing of the log data in Magento.

I have more than 2.3GB of data in Magento 1.4.1, and now I want to optimize the database, because it's too slow due to the size of the data. I checked the log info (URL,Visitors) and it shows more than 1.9 GB. If I directly clear those records, will it affect any functionality in the site? How can I clear the log details? By clearing those data will I have or lose any data on my site?


Source: (StackOverflow)

What Tools and Extensions are Critical for Magento Development? [closed]

We're building a nice little community of Magento experts here. I'm curious what Magento extensions and other software tools (IDEs, editors, etc.) everyone is using to help with their development projects?

Both free and commercial tools are more than welcome.


Source: (StackOverflow)

Adding values to a magento dropdown or multi-select product attribute while adding a new product

I'm wondering if anyone has found or written an extension that would allow a magento website administrator the ability to add values to their products attribute while adding the product. For example, if I sell books and want the book author to be in a drop down list so that it would be used in layered navigation, it seems odd that I would have to add the author via the attributes section before adding the product. From a workflow standpoint it really makes sense to have an "add new value" button next to the drop down on my add product screen.

Anyone have any thoughts or insight?


Source: (StackOverflow)

Service Temporarily Unavailable Magento?

My Application was working fine yesterday. I started my Pc today when I tried to start magento I Got This Error message.

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime
or capacity problems. Please try again later.

I am not able to Open even admin page and I am not even able to see any sort of errors on then page. if i give any url of my magento site I am getting the above output. How do I resolve this? Please Help...


Source: (StackOverflow)

Current user in Magento?

I'm customizing the product view page and I need to show the user's name. How do I access the account information of the current user (if he's logged in) to get Name etc. ?


Source: (StackOverflow)

"Error 404 Not Found" in Magento Admin Login Page [closed]

I just transfered my magento installation from one local machine server to another. Now, I cannot login to admin panel. When I go to the admin login url, I get the following error message:-

"Error: 404 Not Found"

Some of my module's pages also show this error.

Can anyone please figure out the problem?


Source: (StackOverflow)

ALTER TABLE in Magento setup script without using SQL

Jonathon Day says

"updates SHOULD NOT be in the form of SQL commands". I haven't come across any DDL or DML statments that cannot be executed via Magento's config structures.

(In the question How can I migrate configuration changes from development to production environment?)

I would like to know how best to add/modify/remove a column or index to/from a table in this manner, but without relying on SQL? Is it even possible?

Furthermore, what other actions can only be done in SQL?


Source: (StackOverflow)