pre established product info go to checkout

  • Posts: 14
  • Thank you received: 0
10 years 4 months ago #162017

I'm a long time joomla user and know my way around fairly well, but Im no Joomla developer. Hope to be there at some point.

Ok, to the question.

Im working for a company that already has a process built in for our hundreds of vendor and members to sign up when sent invitations to our show. They get sent the invite code and then page by page they fill out the info. One the last page they fill out quite a bit of information and then select their quantities of products they want (Just 4 items - booths).

Now, the problem is we are trying to integrate that process from an older PHP website to our new joomla website with your HikaShop component. However, on that last page that all of the information (including the products and quantities) need to be preserved because on submit they are emailed and setup posted in multiple areas of this other site. which is needed for employees to access and us for confirmation and such.

So, what I can do is make it so that they submit the info like we need, but then have to go to the hikashop products page and again fill out what they wanted. Ugly, right? Is there a way to take these values (quantity / Name / dimension / etc) that they already filled out and jump straight to the checkout page on sumbit with those values all intact in the purchase area?

I'm racking my brain to figure a solution. Ive even thought about using ways to cross database with similar values so that I could just manually insert the values in hikashop tables but its impossible. None of the vendors and members have the same ID's or are connected between the two databases.

If there is anything you can do to help me with this I would be much appreciative.

Thanks

Last edit: 10 years 4 months ago by tnash.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #162048

Hi,

Yes, it's possible to do that.
First, you need to create custom fields of the table "item" via the menu Display>Custom fields so that you have a place to store the data of the product(s).
Then, you can redirect your users from your script to the HTML add to cart link (button at the top when you edit a product in the backend) which will add the product automatically in the cart and redirect the user to the checkout.
And you can also force the value of the fields of the product via parameters in that URL.
I would recommend to read that post of our forum on the subject:
www.hikashop.com/forum/2-general-talk-ab...-product-fields.html

The following user(s) said Thank You: tnash

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

  • Posts: 14
  • Thank you received: 0
10 years 4 months ago #162134

Thanks for the quick reply

Ok, right now I have free version. Do I need to upgrade to business version to see these things you are talking about? Like item under custom fields and the add to cart link (button at the top when you edit a product in the backend)?

Also, can I pass their purchase method if it was already pre-selected in the last page before checkout and it will click right radio button on checkout page as well?

Many, thanks.

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

  • Posts: 14
  • Thank you received: 0
10 years 4 months ago #162146

Additionally, I wanted to make sure that you understood that the people are picking multiple quantities of multiple products all at once before submitting. So it cant go straight to checkout on submit with just one item change.

Also, is it possible to just include some labels and properties in the URL and send it over? I tried but it didn't work for me using product_id and product_quantity.

Last edit: 10 years 4 months ago by tnash.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #162189

Hi,

Yes, custom item fields can only be done with the Business edition.

You can't preselect the payment method via a parameter in the add to cart URL.

You don't want to go straight to the checkout, ok, but then, where do you want to go ?
You can't add several products at the same time and provide different custom field values for each one as you can only have one set of fields in the URL. But then, in that case, you can also add the products to the cart with their custom fields via some PHP code (you can see an example in the link I gave previously) and then redirect to the checkout.

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

  • Posts: 14
  • Thank you received: 0
10 years 4 months ago #162245

Yes, I read the link, that's why I figured I need the BUSINESS edition for the solution.

I think I may have made this whole thing sound more difficult than it is. I'll get the Business edition, but then all I want to do is send over multiple products with their quantities to the checkout cart. Thats really all I need done.

Do I still need to do like brainforge did and hack the core component for this to work or have you provided that additional functionality you spoke of yet? If so, could you help walk me through it? Im a hatchling to HikaShop.

Thanks

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #162251

Brainforge on that other post added a few lines of code to the core and these were integrated in the following version of HikaShop. So no need to change core files for you. You can just use the external code from your script to add the products with their quantities in the cart before redirecting to the checkout.
If you just want to add products with their quantities via a redirect URL without specifying any custom fields, that's also possible, or you can do it like Brainforge with HikaShop PHP function calls, both are possible.
You already have an example for the PHP function calls with Brainforge's example so it will be easier to implement for you.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum