Skip to main content

Add file upload Field in Product Order

More
15 years 10 months ago - 15 years 10 months ago #2471 by aze_kool
Hi,
Thank you for the great component. I am just using the starter version to get to know the component. I am using the component to sell writing services. Therefore, I need to have an File upload option during the order placement. the best place i think is where the shipping and payment options are selected. could you please tell me how can include file upload option. Offcourse the order need to have a reference to the file as well.

Is there a possibility to include thirdparty file upload module/Plugin ?


I will really appreciate the help.


Best Regards,
Aze
Last edit: 15 years 10 months ago by aze_kool.

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

More
15 years 10 months ago #2472 by nicolas
Hi,

It's not currently possible to do that by default with HikaShop. We will add that to the todo list.

Maybe there is a possibility to do that with a third party plugin/module but I don't know these plugins/modules so I can't say...

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

More
15 years 10 months ago - 15 years 10 months ago #2473 by aze_kool
Thanks for the answer,

If i would do it myself , which file should I edit. lets says i have a complete code which theoretically upload a file. where should i include that code so it appears on checkout process.

Thanks and Best Regards,
Last edit: 15 years 10 months ago by aze_kool.

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

More
15 years 10 months ago #2475 by nicolas
You can go in the menu Display->Views and search for the files of the view checkout. Based on your checkout workflow those files will be used or not. Only the step file will be used for all the pages of the checkout process regardless of the workflow since that's on this view file that the other view files are called.

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

More
15 years 10 months ago - 15 years 10 months ago #2489 by aze_kool
Thanks for the tip. I have managed to setup swfupload into the component. the problem i am having is that only the confirm view is showing the upload fields. but then i couldn't finish the checkout process. it stuck on the the checkout page even if i click next. any other view doesn't display the fields at all. What i am doing wrong here.

you can see the swfdemo here

demo.swfupload.org/v220/simpledemo/index.php

can i define my own workflow step here.

thanks
Last edit: 15 years 10 months ago by aze_kool.

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

More
15 years 10 months ago - 15 years 10 months ago #2490 by nicolas
Adding your own workflow step is possible. But you will have to add fucntions a bit everywhere.
in the controllers/checkout.php file you need three functions: before_view after_view and check_view and the in the views/checkout/view.html.php file you need a function view and the add a file view.php to views/checkout/tmpl
Of course you will have to fill all this with valid code... Clearly not easy to do.

It would be way easier to add an input field in the step view, and check on the $_FILES variable yourself for the file in the same view, save the file and link it to the order. Then, edit the order view on the back end.

But even that require a good php knowledge. You can't just copy paste the code of swfupload in the view...that's a lot more complicated.
Last edit: 15 years 10 months ago by nicolas.

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

More
13 years 11 months ago #68253 by bruntho
Hello ! I just found this interesting subject, as i was asking myself the same question.

This post is 1 year old... Does something changed since this date ? Is it possible to upload a file when ordering ?

Thanks a lot,

Bruntho.

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

More
13 years 11 months ago #68444 by nicolas
Hi,

Yes, it's possible since more than a year to do that with the Business edition of HikaShop.
Go in the menu Display->Custom fields and create a custom field of the table "order" and of the type "file" and the rest is all automatic.

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

More
13 years 11 months ago #68765 by bruntho
Thank you for your quick reply... Definitely HikaShop looks like a very interesting solution.

Regards,

Bruntho.

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

Time to create page: 0.197 seconds
Powered by Kunena Forum