Pre Populate Cart

  • Posts: 7
  • Thank you received: 0
7 years 3 weeks ago #281864

-- 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.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 3 weeks ago #281872

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: 7 years 3 weeks ago by Philip.

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

  • Posts: 7
  • Thank you received: 0
7 years 3 weeks ago #281906

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 3 weeks ago #281909

Hi,

You can add the username like that:

$_SESSION['hikashop_main_user_data']['username'] = $username;
And for the address information, you can use:
$_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.059 seconds
Powered by Kunena Forum