Adding a custom view in checkout progress bar

  • Posts: 11
  • Thank you received: 0
8 years 9 months ago #230058

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome latest version

Hi,

I wanted to add a custom view in the checkout progress bar which is used for collecting user's query details.
The progress bar should be like this:
1st step: Register and login
2nd step: payment
3rd step: enter the query details and finish

and can we add a url as product i.e the user only can access the required page only after success full payment.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 9 months ago #230077

Hello,

1. If you use Order custom field to retrieve the "query details", the solution will probably be to directly add the "Field" action through the 3nd step of your checkout workflow via "Hikashop->System->Configuration->Checkout".

2. I didn't exactly understood what you really wanted to do so giving us more details about it will probably help.
Note that if you just want to enable a customer who bought a product "p1" to have access to another product "p2", then the solution will be to set the "User group after purchase" option of your "p1" configuration page to a custom group and restrict your "p2" product to that group.

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

  • Posts: 11
  • Thank you received: 0
8 years 9 months ago #230185

We have a 3 step checkout which looks like this:
1. Register and login
2. Payment
3. Booking
At 3rd step we collecting information from the user which is done by a separate component so after 2nd step i.e payment we are redirecting to the booking screen of the component, but we are not finding a way to display 3rd i.e the booking screen in checkout progress bar. How can I add the booking screen in the checkout progress bar?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #230221

Hi,

You can implement our "checkout API" in a hikashop plugin. You can read more about it here:
www.hikashop.com/support/documentation/6...tation.html#checkout
That will allow you to add new views to the checkout workflow of HikaShop.

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

  • Posts: 11
  • Thank you received: 0
8 years 9 months ago #231075

Can you explain more clearly about what needs to be done? At the 3 rd step we collecting booking information which is done through some XYZ component so can you tell me exactly how to display that booking screen of another component into the hikashop checkout progress bar? and do we need to create a hikashop plugin for this?

Last edit: 8 years 9 months ago by tabibak.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #231083

Hi,

I don't know how you can get the form from that component. It's something you should see with the support of that component.
But once you have the HTML of that component form, you can just add it to $html in the function
onCheckoutStepDisplay($layoutName, &$html, &$view) of your plugin. And implement the other functions of the checkout API to register your new view and process the saving of that component form.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum