Forums

Virtuemart registration with Chronoform

vismay 17 May, 2013
Hello,

I have the following task:

Need to register only resellers on my shop. So they have to fill the complete form ( VAT, Adress, etc...)
Then the reseller needs to be approved from admin to buy, so I would like to have the native sysyem like joomla do of subscription and activation; Registration with Virtuemart doesn't allow this.

So I've setted up a chonoform that use the Joomla registration plugin and send the informations to virtuemart.
Teoretically I could to with curl, registration works perfectly, so I have the native activation system of joomla, but the informations are not passed to Virtuemart.

Following are the forms:

Chronoform:
http://tesla.servwise.com/~timeouts/index.php?option=com_chronoforms&chronoform=test

Virtuemart:
http://tesla.servwise.com/~timeouts/index.php/iscrizione/edit

And this is the debug:

Array
(
    [option] => com_chronoforms
    [chronoform] => test
    [event] => submit
    [Itemid] => 
    [name] => test
    [username] => test
    [password] => test
    [email] => webmaster@yalosmurano.it
    [company] => test
    [piva] => 4654654
    [codicefiscale] => 654654
    [first_name] => test
    [last_name] => test
    [address_1] => test
    [zip] => 12123
    [city] => test
    [virtuemart_country_id] => 105
    [phone_1] => 786876
    [fax] => 6876876876
    [tos] => 1
    [input_submit_22] => Submit
    [3afc72ef34046f0250fc439b5d829f86] => 1
    [curl] => 

[password2] => test
    [_PLUGINS_] => Array
        (
            [joomla_registration] => Array
                (
                    [*isRoot] => 
                    [id] => 751
                    [name] => test
                    [username] => test
                    [email] => webmaster@yalosmurano.it
                    [password] => 88c5fb388072b5fb37483729090a2fb7:nfprnzh0QbhH1C8t4bpmBAsOXBgtewDX
                    [password_clear] => test
                    [usertype] => deprecated
                    [block] => 1
                    [sendEmail] => 0
                    [registerDate] => 2013-05-17 12:10:14
                    [lastvisitDate] => 
                    [activation] => 75cd9ea1864582bef73d3e10d14248f9
                    [groups] => Array
                        (
                            [0] => 2
                        )

                    [lastResetTime] => 
                    [resetCount] => 
                    [*_params] => JRegistry Object
                        (
                            [data:protected] => stdClass Object
                                (
                                )

                        )

                    [*_authGroups] => Array
                        (
                            [0] => 1
                        )

                    [*_authLevels] => Array
                        (
                            [0] => 1
                            [1] => 1
                        )

                    [*_authActions] => 
                    [*_errorMsg] => 
                    [*_errors] => Array
                        (
                        )

                    [aid] => 0
                    [option] => com_chronoforms
                    [chronoform] => test
                    [event] => submit
                    [Itemid] => 
                    [company] => test
                    [piva] => 4654654
                    [codicefiscale] => 654654
                    [first_name] => test
                    [last_name] => test
                    [address_1] => test
                    [zip] => 12123
                    [city] => test
                    [virtuemart_country_id] => 105
                    [phone_1] => 786876
                    [fax] => 6876876876
                    [tos] => 1
                    [input_submit_22] => Submit
                    [3afc72ef34046f0250fc439b5d829f86] => 1
                    [curl] => 
                   [password2] => test
                )

        )

)
 Debug Data

    curl
        CURL OK : the CURL function was found on this server.
        $curl_values: name=test&username=test&password=test&password2=test&company=test&piva=4654654&email=webmaster@yalosmurano.it&first_name=test&last_name=test&address_1=test&zip=12123&city=test&virtuemart_country_id=105&phone_1=786876&codicefiscale=654654
        curl_target_url: http://tesla.servwise.com/~timeouts/index.php/iscrizione/edit






Any idea?

Thanks
Matteo
GreyHead 18 May, 2013
Hi vismay,

My first suggestion is not to use the SEF URL as the cURL target use the root URL and add everything else like option=virtuemart task=subscription into the cURL parameters box.

Bob
vismay 18 May, 2013
Hello Bob,
thanks for suggestion, I've tryied to change with the full URL, but doesn't work 😟

It could be because the submission button of Virtuemart is a javascript?

Matteo
GreyHead 18 May, 2013
Hi Matteo,

Sorry but I don't know anything about VirtueMart except that it can be difficult to work with. You'd need to ask them how data can be received.

Bob
This topic is locked and no more replies can be posted.