Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
Hi
I'm searching for a best practice for the following.

I have a website that sells food (Indonesian).
I have a lot of clients that order food for big groups, like schools, companies,...
Now I would like to add a feature that allows my customer to give the names of all the groupmembers so I can write it on the foodpackage. So that everybody quickly knows what is his.

I would like to work it out in this way: the client has to give the quantity of products (=number of groupmembers).
The site shows then as much textfields as the number of groupmembers.
Each text-field can be filled in with the names of the groupmembers.

In the shopping cart you get an oversight of the ordered products and the text-fields with the names of the members.

I figured out with javascript how to show the text fields linked with the number of groupmembers, but now I have to make it work into the Couch Shopping system.

Anyone that has a similar project or experience?
Please, clarify where you put that number - on the front-end or in admin?

So, a group leader gives you, say, 5 names and each has a custom order. And you literally take a big pack and write those names on it.
Btw, how do they know which plate belongs to whom?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
The number of groupmembers has to be chosen by the customer on the front-end.

Let me make it more clear with a simple example:
There are 2 plates in the shop: Sushi and Pizza.

The groupleader has to order food for 10 persons, 6 of them want pizza, 4 of them sushi.

The groupleader adds number 6 into the quantity field of pizza, and 6 new text fields show up, where he can fill in the names of the persons that want pizza.
The same for the 4 sushi eaters.

When he places the order, I can see in the mailoverview which person ordered what and write the name on each pizza/sushi box.

Ofcourse in this example it is obvious which package includes pizza or sushi.
But I will be more handy when you for example 10 types of pizza, so you can't see directly which pizza is in which box.

Hope this is clear?
For the moment I only see it possible to use one "big" textarea, where the user has to put in the names of the group.
samverdyck wrote: For the moment I only see it possible to use one "big" textarea, where the user has to put in the names of the group.

Sure, why not! Encourage visitors to put all orders in the text area and that's it /unless you design something visually better, so we could help put couch behind that/.
textarea wrote: Hey there,
we have 6 hungry persons:
person name - want pizza1
person name - need 2 of pizza2
...
person name - put half of pizza1 and half of pizza 4, without onion

This looks realistic..
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Yes, that should be a solution, but then I'm working completely around my existing CouchCart website.

I made a sketch of what I want to achieve, ideally.
The element on the screenshot are already existing in a working shop, except the "Name"-fields.

I hope this make it more clear. 8-)

Attachments

Sam, out-of-the-box CouchCart has the provision of adding a 'custom text' field to each product - http://docs.couchcms.com/concepts/shopp ... -variants-

You can see one in action in the demo at http://www.couchcms.com/demo/simple/ where the 'Paper Airplane' product has this field. I'd like you to please play around with it in the demo for a while. Try ordering the same item multiple times with different options and a different text each time.

If I understood the problem correctly, I think we can use it for your use-case to add custom text (i.e. the names of persons) to each cart item. It would be a single textbox but should serve the purpose of holding the custom text attached to the package.

Your thoughts?
Hi KK

I'm indeed going to use the custom text option.
The client has to fill in the names in one text field then.

What I was trying to achieve is when you would like to buy 5 'Paper Airplanes', 5 custom text fields are shown, so you could give each airplane a different custom text.

But in this case we can handle it with one field. ;)
hi,

You could try to use http://vuejs.org/guide/index.html#All_Together_Now to get this working. I'm trying to do something similar but still have some issues with updating the database with multiple fields (pages) at once.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Thanks for the advise!
I will look into that.
10 posts Page 1 of 1