How to retrieve id of newly added row in custom code event in joomla? - joomla

i'm new in joomla and i'm trying to get the id of newly inserted record in URL by custom code event.

If you are using ChronoForms then the record ID will be in the form data. You can use a Debugger action to see exactly where it is saved. It will depend on which version of ChronoForms you are using.

Related

How to save contact us form data in magento2

I am new to Magento 2. Can any one tell me how to save contact us form data into the database using events and observers, and display them in admin grid under the customer section in Magento 2?
If you have set SMPT to your magento2 store then you will receive conatct us data to mail id which you mention at Stores->Configuration->General->Contacts->Email Option->Send Emails to.
On this if you wish to show at admin grid, you must create your own table and grid to show the data in admin and create a before plugin to the controller Magento\Contact\Controller\Index\Post where you save data into your table you created.
You must create a separate module for the contact us a table, admin grid and forms.

How to add user custom fields to the edit profile form?

I had to add a series of custom fields to the joomla registration form. Thanks to the guide I managed to do it, both for the registration form and for the administrator form.
The process I followed for this are the following:
Added the fields to the users table
Added the fields in joomla user entity /library/src/user/user.php
Added the fields and definition to /components/com_users/model/forms/registration.xml file to update the registration form
Added the fields and definition to administrator/components/com_users/model/forms/user.xml file to update the user edition form for user with administrator role
Now I require the user to be able to change their profile data with the inthe fields that were created manually. To do this I added a link to the menu
form to edit profile, here I expected to see all user fields, both native and custom created, but instead I obtain only the native fields, although upon inspecting the object (user) I can access all the user fields.
I created the fields by hand and then I expected that when they were saved they would persist, but it is not, when sending the form only the native data is updated and not the custom fields.
When I inspect, I see that a component named k2 is the one that facilitates this profile editing form, I am new to joomla and its ecosystem
Could you please give me guidance on how to implement this task?
Greetings and thanks in advance
Do not edit core components.
There is a way to do the same using Profile plugin.
https://docs.joomla.org/Creating_a_profile_plugin
Go through above link and create a new profile plugin.
This is not the way to add extra user fields. What will you do if you need to update Joomla. Joomla releases security updates at regular intervals. First you need to create a user plugin and then you add whatever user fields you need. I found a detailed description here, you also can have a look. if still you get any doubts you can ask me here in comments.
https://smartyblog.com/adding-custom-fields-to-joomla-registration-using-profile-plugin/

Magento Customer Wizard Registration

I'm trying to create a simple registration for the magento visitors using custom steps. I need to create a wizard that helps the users to follow a path previously set in the administration panel.
At the moment I have created the extension but I am having some difficulties to create the front-end wizard form. What I'd like to achieve is a multi registration form where if the user go from the first form to the second one Magento has to save the data and wait if the user wants to go on the next new form and so on...
Here a mockup: http://minus.com/lF3krBVJG0WEM
How have I to create a multiform that follow this behaviour?
Regards

magento attributes on back end

Hey guys
I have a problem, that is I have a d.o.b attribute
displayed on the front-end but the info that gets written
by the customer, I don't get on the back-end or the magento dashboard
can I please get help on how to get the d.o.b info on the back-end customer info
please help.....
In the latest Magento 1.5, there is a Date of Birth attribute for the Customer entity. This attribute is on the Account Information section of the Customer Information tab in the admin. I'm not sure if this is the case prior to 1.5 as I currently don't have access to an earlier install. But this attribute is not available for entry on the front end (in customer/account/create/ or customer/account/edit/) in the latest or previous versions.
Which leads me to believe that you're using a pre 1.5 version of Magento and that you or someone you know may have modified a core design template to add that field to the front end. If this is the case, then that field needs to be an actual attribute of the Customer entity. Once it is so, you can rewrite the content block for the Account Information section of the Customer Information tab to a block in a new module of yours to display that field.

How can I add and fetch data from database in magento

I had to download free plug-in and install in my local.
I want to add a new field in register page, but In plugin there's also some new fields in register page and I follow the steps, they do to add new field, I can view the fields what i add in register page.but I can't update the table.
So I went to database and alter it. and store some value. Now I can't fetch the value.
If I did anything wrong, please guide me further.
Can insert data without install it again option.

Resources