MAGENTO - Registration form (+validation and callback) outside magento files?


HOME ยป Web Design

I'm trying to integrate a php file inside an aplication that gives
users the posibility to register an account. This account has to be
registered inside a magento store.


This is what i have to
this momment:


<?php
require_once
'../../../app/Mage.php';
umask(0);

Mage::app('default');

Mage::app()->getTranslator()->init('frontend');

$session = Mage::getSingleton('core/session', array('name' =>
'frontend'));
// get layout object
$layout =
Mage::getSingleton('core/layout');
//get block object

$block = $layout->createBlock('core

I'm using Magento v1.7.0.2 and have tried to add a Mobile field on
registration form. I have amended the code(See code at below).
However, the Mobile field still isn't shown on the registration form.


Is there anyone can help me? Thanks in advance!

/>

appetcmodulesMydons_Customer.xml


<config> /> <modules>
<Mydons_Customer>

<codePool>local</codePool>

<active>true</active>

</Mydons_Customer>
</modules> /></config>
/>

appcodelocalMydonsCustomeretcconfig.xml


Programming Languages

I'm trying to integrate a php file inside an aplication that gives
users the posibility to register an account. This account has to be
registered inside a magento store.


This is what i have to
this momment:


<?php
require_once
'../../../app/Mage.php';
umask(0);

Mage::app('default');

Mage::app()->getTranslator()->init('frontend');

$session = Mage::getSingleton('core/session', array('name' =>
'frontend'));
// get layout object
$layout =
Mage::getSingleton('core/layout');
//get block object

$block = $layout->createBlock('core
Web Design

EDIT 051012:
Turns out that the issue was less to do with the
forms being on one page but more to conflicts between prototype and
jQuery; there was a inclusion of jQuery right at the bottom of the
footer which was not set to no conflict. I simply added this after the
inclusion of that particular jQuery:


<script
type="text/javascript">
//<![CDATA[
$.noConflict(); />//]]>
</script>

I'm accepting
Pavel Novitsky's answer below because he mentioned, "If assuming that
you have no form embedding or JavaScript errors your code should
work.." and that made me realize that it might have something to d

Programming Languages

We are setting up a new Magento site and will allow clothing
designers the ability to sell their products in our store. We've
already created a separate user group with appropriate permissions for
Designers. However, we need to create a custom registration form for
use by them, and an accompanying approval workflow. Can someone
provide links to guidelines in creating such a custom form and
workflow? Is it advisable to create a separate store for each
designer, or create user defined attributes to assign a designer to
their products in the main store catalog? Also, given that we will
have a separate and changing commission percentage for each designer,
what custom module logic must be

Programming Languages

How do I create custom fields like mobile number in customer
registration form without modifying magento core files? I tried but
the mobile number is not saved in the DB


I override the
Mage_Customer_Model_Entity_Setup class with
Myown_Mage_Customer_Model_Entity_Setup by creating
Model/Entity/Setup.php in my modules folder and added the following
code to the array in getDefaultEntities


'mobilenumber'
=> array(
'label' => 'Mobile
Number',
'visible' => true,

'required' => true,

),


Programming Languages
I want to add multiple fields in registration form.installation file
is:- <?php $installer = $this; $installer->startSetup();
$setup = Mage::getModel('customer/entity_setup', 'core_setup');
$setup->addAttribute('customer', 'accounttype', array('type' =>
'int','input' => 'select','label' => 'Accounttype','global'
=> 1,'visible' => 1,'required' => 0,'user_defined' =>
1,'default' => '0','visible_on_front' => 1, 'source' =>
Programming Languages

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow