Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ Copy contents of canvas and send to shopping cart

Posted by: baileycooper Sep 11 2015, 06:21 PM

Hi,
Apologies if this is in the wrong place, or if it's just a stupid question. I'm a novice coder and I'm struggling with a problem that someone might be able to help with...

I have code that creates a 'canvas' on a webpage and adds graphics/text to it using input from the user.
The problem I have is this: How can I create a copy of the canvas contents (as a graphic or some other format) that I can then pass through to a shopping cart system?
I just don't know how to start with this so any help is really appreciated.

Many thanks - and apologies again if I've messed up by posting here.

Posted by: pandy Sep 11 2015, 07:12 PM

Why do you want this? Is it just as an illustration that you want to pass along so the customer sees it all through the process or is it the way you are going to know what (s)he wants to order?

Posted by: baileycooper Sep 12 2015, 02:23 AM

QUOTE(pandy @ Sep 12 2015, 01:12 AM) *

Why do you want this? Is it just as an illustration that you want to pass along so the customer sees it all through the process or is it the way you are going to know what (s)he wants to order?


It's so that I know what the customer wants to order. I can create the canvas element but just don't know how to get a copy of it to me.

Posted by: pandy Sep 12 2015, 12:35 PM

Then a snapshot isn't what you want. Not my forte, this, but the logic must be that whenever the customers adds or removes an item from the canvas a server side program register this and when (s)he is ready to buy the list of goods is already there.

How to accomplish this I don't know. What do you use to create the canvas thing? JavaScript? jQuery maybe?

Posted by: baileycooper Sep 14 2015, 05:58 AM

QUOTE(pandy @ Sep 12 2015, 06:35 PM) *

Then a snapshot isn't what you want. Not my forte, this, but the logic must be that whenever the customers adds or removes an item from the canvas a server side program register this and when (s)he is ready to buy the list of goods is already there.

How to accomplish this I don't know. What do you use to create the canvas thing? JavaScript? jQuery maybe?


Thanks for the answer. I think I'm out of my depth with this! It's javascript that lets the customer place text/graphics on the canvas, but I don't know how to record this ready to pass through to a shopping cart.
Thanks again. I may need to buy some help in for this.

Posted by: pandy Sep 14 2015, 06:18 AM

I would need to do that too. If you want I can move this topic to the server side forum though, in case someone here that knows these things better than I have something to contribute. They may not notice it here.

Posted by: baileycooper Sep 14 2015, 12:38 PM

QUOTE(pandy @ Sep 14 2015, 12:18 PM) *

I would need to do that too. If you want I can move this topic to the server side forum though, in case someone here that knows these things better than I have something to contribute. They may not notice it here.

Yes please move it for me - that would be very kind. Thanks.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)