Hikashop to sobipro

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #139773

-- HikaShop version --HikaShop Starter: 2.2.3
-- Joomla version -- : 3.1
-- PHP version -- : 5.3

Hi,
I interested in developing a feature which will save Hikashop checkout address form data to a Sobipro entry. (by saving it to the DB table)
how do you suggest i do this ?
by developing an extension ? if so where can i start ? any references for this kind of a extension ?

this is the quick and dirty way i thought of achieving this although it might be too much of a hack:
1. create a hikashopSobiClass (duplicating the address class) which extends hikashopClass and put it in the classes folder, use the save() function in it.
2. call the save function from within the address controller save() function like so: $sobiClass->save($addressData);
and save the form data to sobipro DB table.
if i do go down this line, i have a question:
inside the "classes/address.php" hikashopExpertClass class,in the save() function, there is this line:
parent::save($oldData);
(around line 145)

what class is the "parent" referring to ? im assuming its "hikashopClass". if so, where can it be found ?

Thank you

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 10 months ago #139826

Hi,

I would recommend instead to develop a hikashop plugin using some of the triggers of that are already available as explained here:
www.hikashop.com/support/support/documen...r-documentation.html
That way, you can plug your code whereever you want via a plugin without any core hack of HikaShop.

The following user(s) said Thank You: buzibuzi

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

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #139934

Thanks, yes. that is much easier.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum