Initial commit

This commit is contained in:
James Oakley 2025-05-20 14:57:40 +00:00
commit 34d112f1e4
7 changed files with 980 additions and 0 deletions

24
etc/events.xml Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!--
~ Copyright James Oakley 2025. https://git.oakleys.org/
~
~ This file is part of Jro_Guest2Customer.
~
~ Jro_Guest2Customer is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by the
~ Free Software Foundation, either version 3 of the License, or (at your
~ option) any later version.
~ Jro_Guest2Customer is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
~ Public License for more details.
~ You should have received a copy of the GNU General Public License along with
~ Jro_Guest2Customer. If not, see https://www.gnu.org/licenses/.
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_onepage_controller_success_action">
<observer name="jro_guest2customer_convert" instance="Jro\Guest2Customer\Observer\CreateCustomerAccount"/>
</event>
</config>

23
etc/module.xml Normal file
View file

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!--
~ Copyright James Oakley 2025. https://git.oakleys.org/
~
~ This file is part of Jro_Guest2Customer.
~
~ Jro_Guest2Customer is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by the
~ Free Software Foundation, either version 3 of the License, or (at your
~ option) any later version.
~ Jro_Guest2Customer is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
~ Public License for more details.
~ You should have received a copy of the GNU General Public License along with
~ Jro_Guest2Customer. If not, see https://www.gnu.org/licenses/.
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Jro_Guest2Customer" setup_version="1.0.0"/>
</config>