Questions tagged [admin]

Can denote questions related to Magento admin panel, admin session or admin user.

Filter by
Sorted by
Tagged with
5
votes
3answers
16k views

How to get Admin page url?

I want to get the current url of an admin panel page. I tried the folowing. $currentUrl = Mage::helper('adminhtml')->getUrl(); But it's not returning the current url.
0
votes
1answer
95 views

Can i customize the backend to the following features?

I am a newbie. I am planning on opening a greeting card shop in which the users can customize it. So they will get fields depending on the type of card they choose. Some of them, they just need to ...
15
votes
2answers
4k views

Autologin on frontend from the backend

See the following scenario. I have some custom module that allows the frontend user to perform some actions on some custom entities. (details are not really important). The request is that an admin ...
1
vote
1answer
1k views

How to send JSON POST data for admin module?

I am trying to send a POST request to a controller with JSON payload. Relevant request details are as follows. Request URL:http://mag.local/index.php/shahal/test/saveJson Request Method:POST Content-...
0
votes
1answer
819 views

How to trigger an event only on record creation and not on updation?

I have a custom admin grid module. When I add an item to that grid it calls the saveAction() in the controller of my module (obviously). I need to trigger a custom event after the record gets saved (...
1
vote
2answers
3k views

Load details of a root category and subcategories

How do i load all the sub categories of a particular Root Category? I need to form a tree like structure for traversing all the sub categories (including the inactive ones). Kindly help.
3
votes
3answers
8k views

Remove index.php from admin url on live server?

I am trying to resolve this problem form 2 day ago but i cant success to resolved it I given all details of this problem we have magento installed on root directory i.e public_html on live server ...
18
votes
1answer
7k views

How to Copy Code/Core system.xml file into Code/local in magento

i wanted some customization in admin panel so i have made changes in 1) "app/code/core/../system.xml file its working fine. But I don't want to change code inside core folder. Because of my ...
4
votes
2answers
9k views

Code before a controller's action is executed?

I would like to write some custom code before any actions in a controller is executed. It would seem like an easy one, but i am unable to find help anywhere in google. I tried to override preDispatch()...
1
vote
1answer
3k views

Collapse fieldset

I have an admin module with an edit form, that has two fieldsets. On opening the page both fieldset are open by default and there is no option for the user to close either of them. How do I have one ...
1
vote
2answers
1k views

UI: Backend Catalog -> Manage Products -> edit product (Related Products, Up-Sells, Cross-Sells)

Sorry if I must ask this stupid question, but I cannot figure out the meaning of the following user interface element in the backend (Magento 1.8.0.0): Under any of Catalog -> Manage Products -> ...
18
votes
3answers
11k views

Creating Custom Option on Product Save

I'm working on creating a custom option for my products automatically any time a product is created. What I've got so far is an observer that fires on the catalog_product_save_before event and runs ...
0
votes
1answer
2k views

How to save different fieldset value in single table in magento?

I have created custom module with form in admin side. In a form, I have created two fieldset: $fieldset = $form->addFieldset('base_fieldset', array( 'legend' => Mage::helper('checkout')-&...
3
votes
2answers
14k views

Adding tabs to custom view in Magento's admin section

I have tried to follow a couple of tutorials and when that failed tried to copy an example in the magento core to add tabs to a custom admin module, but with no success. Looking at the tutorials and ...
3
votes
1answer
1k views

edit grid in admin section is not showing

I have a grid from a custom module in my admin section which displays users that fit a specified criteria. When I click on one of those users to edit details I am transferred to a blank content area ...
1
vote
1answer
5k views

how to set default value for fields in admin panel

I have created tabs, sections, groups and fields successfully in magento admin panel. Now I want to create default values for my fields of type text or text area. I have given proper values in my ...
1
vote
1answer
6k views

how to create section and tabs in admin panel

how to create new section and new tab in admin panel. i have tried groups under sections and fields under groups, but not able to create sections. Could you please explain in detail how to create ...
19
votes
5answers
20k views

Adding a CMS block via setup script

I am working on a site that has, I believe 9 separate Magento instances, same site. Therefore there are strict procedures surrounding any back-end data - config and even for CMS blocks. I would like ...
4
votes
1answer
637 views

Retrieve customer attribute properties

I am going to add front-end validation for customer attribute by adding CSS classes 'validate-length' and 'maximum-length-xx' in the input tag. I need to find how I can retrieve, for example, the ...
0
votes
1answer
610 views

Customer Attributes & Customer Address Attributes Export/Import

I am trying to export and import via MySQL the customer attributes & customer address attributes. There are 9 instances of Magento that I manage and I've set up the validation rules on 1 instance. ...
0
votes
3answers
2k views

Is it possible to display the gross profit of a product as an attribute in the admin page of a product?

Simply looking to create an area/block in the admin area of a product page that displays what the current gross profit is on that product. I.e. calculating the difference between the cost price and ...
1
vote
1answer
783 views

How do you create a link to BOTH the product frontend and backend from the sales order page?

We are looking to create a link to the frontend of a product and the backend of a product from the "items ordered" area of the sales order page. We have the code to create both, but not from the same ...
6
votes
3answers
4k views

Why is the default js files outside the theme package?

I am developing a new admin module and needs to customize the magento admin panel. i've created a new theme in default package of adminhtml. In the skin folder (skin/default/mytheme) i've included my ...
0
votes
3answers
4k views

Error in Manage Catalog page in admin after upgrade to magento 1.8 when category flat data is enabled

We have the below error displaying in the browser when we navigate to Catalog > Manage Categories Fatal error: Call to undefined method Mage_Catalog_Model_Resource_Category_Flat::...
0
votes
2answers
583 views

Can't see my widget name in admin dropdown

I am learning about widgets through this link. I have done everything as mentioned in that link but still I can't see my widget in admin panel.. I observed some error logs in var/log/system.log file ...
0
votes
1answer
2k views

Is there any way to delete/remove admin user programmatically?

I wanted to delete an admin user programmatically, I have only FTP access.
0
votes
1answer
5k views

How to validate Image in admin custom form in magento?

I create custom form in admin panel in magento.Here I tried in many way to validated image tags in admin panel. /app/code/community/company_name/module_name/Block/Adminhtml/module_name/Edit/Tab/...
0
votes
2answers
911 views

If the attribute has “No” or not filled out, then do not display for bundled product

I'm currently displaying a block that has a custom attribute for simple products. But, I don't want to display it for grouped products, only for simple products. In Manage Products > Custom ...
1
vote
1answer
2k views

Add custom module Tab(gird) in admin Dashboard

I've build a custom extension but now I would like to add some data from this extension to the dashboard page. To be precise I would like to add it to the tabs you see in the image attached. Can ...
1
vote
1answer
4k views

How to set timezone when save and retrieve data on Magento

I've changed the System->Configuration->General->Locale Options->Timezone to ID and saved. the data is 2013-09-30 12:03 when saved. but when i see on Admin Grid the data is : Sep 30, ...
2
votes
1answer
673 views

Change Magento decimal field format

I need to change Magento's default decimal format. I mean, when I save '1' to a decimal field, it becomes '10000.0000' with this '.0000' in the end. I need to change it to another format, which uses '...
0
votes
2answers
1k views

Hide product types in New product

I'm trying to find a way of stopping users in the back end of the site from adding certain product types. I don't need to remove all the functionality of the product types I just need to remove the ...
1
vote
2answers
631 views

Execute Code Upon Admin Section Save

Situation: I have some custom code that I would like to have evaluated when someone clicks "Save Category" within the "Manage Categories" section of the Admin panel. I am thinking that this can be ...
0
votes
1answer
1k views

Magento Admin Actions Log - How to capture mass action data? [duplicate]

We've created a module for Enterprise that has 2 controller actions, one is the index and the other is a save from a massaction. We're logging to the Admin Actions Log with the following logging.xml: ...
1
vote
1answer
6k views

Getting custom email template name in system configuration

I need to get custom email template in admin system configuration. system.xml This is my email template field code. <email_template> <label>Email Template</label> <...
0
votes
2answers
972 views

How to customize or reduce the size of register trademark symbol

In my magento frontend i am displaying categories in the header navigation, one of the category title is containing register trademark symbol. Now my question is how to reduce/customize the register ...
0
votes
1answer
408 views

Display image in system configuration? [closed]

I want to display a image for radio button value in system configuration. As well i want to show that selected image in my front-end. Help me to do this. Thanks
4
votes
3answers
914 views

Is It Possible To Move An Admin Menu Node?

We're using Fishpig's Attribute Splash module which inserts a node "Splash" at the top level of the admin menu. We'd prefer it to live under the Catalog menu though. Here's the original XML the ...
1
vote
1answer
8k views

displaying data from two tables in one grid

I have a grid for my admin module and it works fine, but I now would like to add more data onto that grid, but the additional data is held in a second table in my database. To display this additional ...
2
votes
1answer
3k views

How can I export fields which are not being displayed in admin grid?

I have a custom admin grid, which shows the feedback given by customers during checkout. I have 19 fields in the custom_table including entity_id, created_at and updated_at. This is my form view: ...
2
votes
1answer
561 views

Best way to reproduce the Order grid view as a printable report?

Below is an image of the screen at this URL in our Magento Community edition. It is the grid view of all sales orders. I have been tasked with building a printable worksheet report that will list ...
2
votes
2answers
4k views

Data from form not being passed to database

I have created an edit form for an admin module, but have come across an issue with putting data into and pulling data from the database. For example I have field A,B and C, where I place some data, ...
0
votes
2answers
82 views

404 on content area in admin module

I am getting 404 Error Page not found in the main content area of my admin module. Both the header and footers are displayed, but im left with a white screen between, with no other ...
1
vote
1answer
1k views

Problem in submitting Magento Login form [closed]

Here is my simple magento login form but I am unable to submit my form. What may be the possible reasons? <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-...
1
vote
2answers
2k views

Order detail with product id

How can i display product id in the admin order details page.]
1
vote
2answers
12k views

successful admin login redirects to login page

I've imported a copy of the live db to my new dev site using sequel pro. I've had to use this tool as the db has some errors in (duplicate SKU's) and we're trying to fix them, but not on the live ...
1
vote
1answer
8k views

Adding a new tab to system | config

I am trying to add a tab to my system | config. I have got this code (from the magento university free video) and have commented each line with my understanding of what each line does (its for future ...
1
vote
2answers
3k views

Restrict User Category Access

I am using magento 1.7 community edition is there is any way to restrict user's in publishing products in some specific categories.
0
votes
0answers
92 views

How to check if admin user is logged in on frontend [duplicate]

I was wondering how it is possible to check if admin user is logged in on the frontend?
0
votes
1answer
75 views

The correct way to configure an adminhtml module

I have started to try and learn how to create a module for the admin of magento and to do this i am using Magento's PHP developers guide. In it shows two ways of starting an admin module. The first ...