News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Programmatically Populate Billing Address Details

Started by SuilAmhain, March 08, 2013, 01:24:41 AM

Previous topic - Next topic

SuilAmhain

Hi,

I am trying to find the Function/Code that I can call from a non virtuemart page to populate the Billing Address Details that are in the *_session table for each user.

The details are stored in the *_session table in the following format:
"BT";a:12:{s:5:"email";s:22:"my@email.com";s:18:"delimiter_userinfo";s:0:"";s:16:"delimiter_billto";s:0:"";s:7:"company";s:0:"";s:5:"title";s:2:"Mr";s:10:"first_name";s:6:"John";s:11:"middle_name";s:0:"";s:9:"last_name";s:10:"Doe";s:9:"address_1";s:7:"First Street One";s:9:"address_2";s:0:"First Street Two";s:3:"zip";s:4:"Eire";s:4:"city";s:9:"Dublin";}

These details get there after I have filled in the address details from the User View Page and the editaddresscart task. The URL for the page I am referring to is
/index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT

One of the many, many silly things I have tried is placing "echo $this->loadTemplate ('userfields');" in random pages to see will it work but I cannot get it to work. I have tried creating the "VirtueMartCart" class but that has not been sufficient either.

Any help greatly appreciated I am going insane.  :'(

Thanks,
SuilAmhain

SuilAmhain

Hi,

I am bumping the post.  :-[

I just wish to update the billing address without going to the editaddresscart task page specifically.
I am sure it is very obvious what I need to do but I cannot find the relevant code that actually does the update.

I would be very grateful if somebody could just point me in the right direction as to where the code is that updates the billing address in the *_session table.

Thanks,
SuilAmhain