Upload file from customer side

LiteCart Fan
From Thailand
Member since Aug 2017

Hello, e-commerce selling customized items (t-shirt, cups...) need the customers to upload a file (jpg or other) at order time to then create the t-shirt (for example) with the requested image.
Any suggestions/road to follow/add-on?
Thank you

tim
Founder
From Sweden
Member since May 2013
tim

Hi, this would be great to serve as an add-on.
You need to change the buy now form on the product page into a multipart/form-data type and insert a file field.
Then edit lib_cart.inc.php so it can store the HTTP POSTed file.
Then edit ajax/checkout_summary.inc.php which cooks the order and edit ent_order.inc.php that handles all the entity data.

Maybe a 5 h job.

See if a freelancer can help if this seems too hard.

LiteCart Fan
From Thailand
Member since Aug 2017

Hello, I did it but not as add-on.
Anybody interested in it just contact me here.
One limit: the file are uploaded during the order. If the customer will leave the website the file will stay on the server forever. Need to add a cron job to delete files older than xxx month, I think.

Developer
From United States
Member since Mar 2021

I'm totally interested in this. @vilaiporn

LiteCart Fan
From Thailand
Member since Aug 2017

Hello, thank you for your interest in my customization.

You can check it here (it is a live website so don't place an order if you don't want to buy):https://xi-store.com/customizations-c-23/custom-t-shirts-c-22/custom-t-shirt-for-children-p-361

I don't really know how much should charge for adding the system to your website, will be 90 usd a fair price? I could also just give you all the lines of code and you can do by yourself.

Waiting for comments,
bye,
Vilaiporn

Developer
From United States
Member since Mar 2021

I certainly would love to have just the code and port it over to an addon. If you look through my other comments in the forum I've been trying to assist others that way. I really like the litecart platform as it puts the ability to engage in commerce into the hands of every individual with no strings attached.

LiteCart Fan
From Thailand
Member since Aug 2017

An addon would be nice, I could even buy it myself :)
What about the price?

Developer
From United States
Member since Mar 2021

I wouldn't charge anything for turning it into an addon. I've asked the guy who made the boomstore catalog if I could open source it (I made some fixes to it for other users already and think people would benefit from having it on Github).

LiteCart Fan
From Thailand
Member since Aug 2017

I was thinking about the price for me to release the code for everyone...

Designer
From United States
Member since Jul 2017

I would also be interested in this option. How do I go about getting it?  I do free websites for animal rescues and they are always doing t-shirt campaigns to raise money.

LiteCart Fan
From Thailand
Member since Aug 2017

Hello,
I was thinking about 70 usd to give the code. Do you think is it a fair price?
Waiting for comments.
Thank you

tim
Founder
From Sweden
Member since May 2013
tim

@vilaiporn I would suggest publishing it as an add-on for around $49. When you are selling the add-on in the addons store you must be able to provide support for it. Meaning answering questions, fix errors, update to new versions, etc.

If you give it out free under Public Domain you have no obligations and can benefit from somone else improving it.

LiteCart Fan
From Thailand
Member since Aug 2017

Hello,
the idea as add-on is nice, about support is OK. But the problem is that I am not able to create it as vQmods.
Or can the add-on be created as files to be replaced with instruction (and free support of course)?

tim
Founder
From Sweden
Member since May 2013
tim

Creating a vQmod is super simple.


    <operation error="log">
      <search position="after"><![CDATA[
  Match this line
      ]]></search>
      <add><![CDATA[
  Insert this line
      ]]></add>
    </operation>
  </file>```

Have you looked at the documentation?
https://wiki.litecart.net/how_to_create_a_vqmod
LiteCart Fan
From Thailand
Member since Aug 2017

Hello, is there maybe somebody want to join me? He will create the vQmod and i provide the code and we can share the add-on?

tim
Founder
From Sweden
Member since May 2013
tim

[quote]Hello, is there maybe somebody want to join me? He will create the vQmod and i provide the code and we can share the add-on?[/quote]

Isn't that what @mishochu offered you. He said:

[quote]I certainly would love to have just the code and port it over to an addon. If you look through my other comments in the forum I've been trying to assist others that way.[/quote]

Developer
From United States
Member since Mar 2021

Yep, I'm totally down for working with you @vilaiporn. I fixed the boomstore catalog for a few users and asked the original author if I could open source it (put the code on Github). I haven't gotten a reply to my comment yet so I only send it to people who ask. 

I don't really view this as a money making scheme from my end. The platform has some really great benefits in terms of full sovereignty of your ability to transact business in the world and I'm writing some cryptocurrency-based payment modules for it (BTCPayServer and Coinpayments).

Anything I can do to make litecart better for more people to use, I'd love to do it.

tim
Founder
From Sweden
Member since May 2013
tim

I recommend posting your very first add-ons for free. Gain some recognition and field practice. When you are getting skilled you can try releasing a few commerical add-ons. It takes time before add-ons starts paying for your efforts. 90% of the LiteCart users never open their wallet, just grabbing the freebies.

LiteCart Fan
From Thailand
Member since Aug 2017

Hello,
As I cannot alone produce a viable add-on, I am willing to post the code to create a free add-on with @mishochu. In this case, the final add-on will be free of charge for anyone, and, as Tim stated, I will gain some recognition and field practice. But also @mishochu has to gain some recognition, how?

Developer
From United States
Member since Mar 2021

Don't worry about me. Would you like to create a Github repo under your Github account or should I? @vilaiporn.

tim
Founder
From Sweden
Member since May 2013
tim

You can click the username link and use the contact feature to establish mail contact with eachother. Swap some files. If there are questions how to publish addons I am happy to help.

Happy to see you teaming up. :)

LiteCart Fan
From Thailand
Member since Aug 2017

Hello, OK I will. Expect some delay in my answering as I am on holiday...
No need a Github repo in my name, thanks

LiteCart Fan
From Thailand
Member since Aug 2017

Hello, good afternoon, any news about the Add-ons?

LiteCart Fan
From Thailand
Member since Aug 2017

Great!
Thank you, not hurry, just keep me posted.

LiteCart Fan
From Thailand
Member since Aug 2017

Hello,
still waiting...

Developer
From United States
Member since Mar 2021

Sorry for the delay, I was busy adding things like the BTCPayServer addon and getting my own shop out of test and into production.

I've renamed this to [url=https://github.com/mishfit/litecart-order-upload-addon]litecart-order-upload-addon[/url] as it seems like each file will need to be associated with an order and not with a specific customer.

I do have a use case for having a customer-based upload but I think that will be a future addon.

LiteCart Fan
From Thailand
Member since Aug 2017

Great!

tim
Founder
From Sweden
Member since May 2013
tim

@mishochu LiteCart 2.5.0 comes with a vMod editor.
I think that might make things easier for you.
Now it's easier than ever to create a modification. :)

LiteCart Fan
From Hungary
Member since Jul 2024

Hello,
I would be very interested in that! How are things now?
Thnx!

You
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.