Skip to main content

Pre Populate Cart

More
8 years 11 months ago #281864 by toomanylogins
-- HikaShop version -- : 3.2.1

We would like to pre-populate the checkout page with our customer data for guest checkout or we could create joomla account but still need to pre-populate the form. Is this possible as we have already captured the data ?
Thanks
Paul

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #281872 by Philip
Replied by Philip on topic Pre Populate Cart
Hello,

First by editing your checkout view via the HikaShop override allow you to custom and add lots of different elements, see this tutorial .
But to be honest, to be sure that you have what you want, we will need more elements to better understand the context and your needs.

Regards
Last edit: 8 years 11 months ago by Philip.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #281906 by toomanylogins
Replied by toomanylogins on topic Pre Populate Cart
Hello Philip, sorry you seem to have misunderstood. We have already captured the customer name and address and product information in our system therefore I would like to pass a URL to Joomla! to automatically populate the shopping cart page and allow the customer to check out this is possible?

To clarify this means the customer will not have to re-enter their data. Our platform has access to the Joomla! mysql database therefore I could create a record in your tables if needed.
Regards
Paul

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #281909 by nicolas
Replied by nicolas on topic Pre Populate Cart
Hi,

You can add the username like that:
Code:
$_SESSION['hikashop_main_user_data']['username'] = $username;
And for the address information, you can use:
Code:
$_SESSION['address_on_registration']['address_city'] = $city;
The registration form in the HikaShop checkout will be prepopulated with that data when the user then access the checkout.

Please Log in or Create an account to join the conversation.

Time to create page: 0.252 seconds
Powered by Kunena Forum