Adding new page to Admin Panel in Magento - magento-1.7

I am developing an e-commerce website and I need to customize the database. I want to add some tables into the database and records entry should be done from the Magento Admin Panel, eg:-
Like as we click Add New Product under Manage Products from Magento Admin Panel, whatever data we provide there like, name, weight, description, sku, etc, it is entered to the respective database table automatically.
Now, let’s say I want three more tables to be created in the database: Brand(brand_id, brand_name, brand_desc...), Brand_loc(brand_id, brand_loc_id, brand_address, brand_city, brand_state...), Product(prod_id, brand_id, brand_loc_id, prod_name, prod_weight....).
So, I want the above tables’ attributes to be shown in Magento Admin Panel and as I enter the data from Magento Admin Panel, it should be entered to the respective tables in the database like I explained of Add New Product above.
Can anyone please help me on the above issue....
Thanks.

I will proceed as follows :
add a event observer in my module so that can be called once a product is saved, there are various observers in magento for before and after events.
when a product is saved i will add my code of saving data into custom tables in the observer function.
tutorial to add product after observer is here :
http://snipplr.com/view/56959/
As per a magento developer i would advice to create a complete module doing as said above, and also create pages so that admin can edit/delete brands in your case.

Related

demo-magento2.vuestorefront find user name and password

I am new Vuestorefront, I am trying to change product catalog
for that, everywhere is returning to go admin panel but can anyone tell me how to get the user name and PWD of demo admin panel
http://demo-magento2.vuestorefront.io/admin
reference page https://docs.vuestorefront.io/guide/cookbook/data-import.html#_2-1-recipe-a-using-demo
thanks in advance
The Magento demo is purely for demo purposes. If you intend to begin working in Magento on catalog and orders you will need to spin up your own instance of Magento (or desired backend).

Adding additional information to user accounts in Trac

For my Trac plugin, I would like to add a color (as string or rgb values) to each user for use from somewhere else in the plugin. The color should be configurable via the admin page.
Is it possible to add another column to the table in the Users settings of the AccountManagerPlugin panel, and if it is, how do I add the information to the database so I can access it from elsewhere?
Another option would be to make a new Admin Panel for my plugin, which is what I am currently doing, with a table with just the user names and their colors. But in this case, although I already have the empty admin panel, I don't know how to add the table and add new items to the database.
To explain what I need the colors for:
My plugin adds a new export option for tickets, and formats them with my own html and css structure. The tickets contain the owner's name, and this name should be displayed with their respective colors. The code for this already exists, now I just need to retrieve the colors from the database, and beforehand save them to the database via the admin panel.
The colors should be changable only via the admin page.
There's no Users admin panel in Trac, however the AccountManagerPlugin has a User management panel. Let me know if you are using the AccountManagerPlugin and I'll provide more info on that.
Keeping the discussion within the scope of Trac, you could implement the ability for the user to make a selection through a preference panel by implementing IPreferencePanelProvider. You could save the value in the session_attribute table and make use of it anywhere else. For an attribute named user_color, the value can be retrieved using req.session.get('user_color').
Examples can be found in trac.prefs.web_ui. I've linked to the code in Trac 1.1.6 because the module was refactored so that the preferences were more modular #9162.

Custom blocks to display for students in moodle

I have created a custom block in moodle. The block displays perfectly on admin and manager account. But it doesnt display on the student account.
I have created db/access.php file. I have also created tests/generator_test.php (copied as same from online_user block by changing the key names ). The block is not visible in site admistrator/users/permission/define roles/ student and then clicking on edit. (Block: online users allow). The same is not showing for my block.
Some one please help me with this. I want to display that block on students dashboard.
If you have already installed the block then any changes to db/access.php won't apply until the version number is bumped.
So just increase the version number in blocks/yourblock/version.php then go to site admin -> notifications to update it.
If that doesn't work then show the contents of access.php.

Dynamic dropdown custom field in moodle

I want to create a dynamic(database driven) custom profile field in moodle.
it shd take the data of the university table which is customly made by us.it shd be a dropdown that should populate the university name from the database. This custom field should be visible in adding a new user page.
Plz help me with this topic

How to add new fields in cart of VirtueMart (Joomla!)

I am working on joomla and using joomla VirtueMart component.I created new fields in product detail page like color and size (drop down), Now I want to add that POST value (ex. $_POST["cmbColor"]) in shopping cart process and finally to be saved in database of VirtueMart.Please help me how to add these fields in cart.
Did you use the attribute system to add the optional color and size? Using either child products or attributes will get the options to show in the cart and saved on a sale. The VM documentation is pretty good on this topic, you can find how to use attributes here -
http://virtuemart.net/documentation/User_Manual/Product_Attributes.html