Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
gravitypad  
#1 Posted : Wednesday, May 18, 2016 3:28:08 PM(UTC)
gravitypad

Rank: Member

Groups: Member
Joined: 5/18/2016(UTC)
Posts: 11

We are currently evaluating Customer's Canvas for a project we are kicking off soon. It appears that Customer's Canvas generates hi-res images from the customer's customizations. Is there any way to retrieve the customizations via the iFrame API? For example, can I get back a JSON object that looks something like:

{ surfaces: [{name: "front", data: { text1: "Hello World", text2: "My Address", image1: "foo.png"}}]}

I need the information the customer has entered for their product to be accessible so I can correctly configure the product in the e-commerce system.

Thanks in advance.
-Paul

Edited by user Wednesday, May 18, 2016 5:57:50 PM(UTC)  | Reason: added image to sample json

Kate D.  
#2 Posted : Wednesday, May 18, 2016 8:23:48 PM(UTC)
Kate D.

Rank: Advanced Member

Groups: Administration
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi Paul,

Yes, you can. The finishProductDesign method returns an object containing all changes made by the user when personalizing the product.

See this article: https://customerscanvas.....ifinishdesignresult.htm

Best regards,
Kate
gravitypad  
#3 Posted : Thursday, May 19, 2016 7:34:18 AM(UTC)
gravitypad

Rank: Member

Groups: Member
Joined: 5/18/2016(UTC)
Posts: 11

Thanks Kate. It looks like finishProductDesign returns back the text customizations, but does it also include font and image customizations?
Kate D.  
#4 Posted : Thursday, May 19, 2016 10:00:33 PM(UTC)
Kate D.

Rank: Advanced Member

Groups: Administration
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi Paul,

We will add the information about added pictures in the userChange object in the upcoming release. We have already implemented this functionality.

Unfortunately, to get an information about used fonts it isn't possible using our API right now. However, it's not difficult to add in the userChange object.

Do you want to return any other information besides of used fonts?

Best regards,
Kate
gravitypad  
#5 Posted : Friday, May 20, 2016 8:08:09 AM(UTC)
gravitypad

Rank: Member

Groups: Member
Joined: 5/18/2016(UTC)
Posts: 11

I would like to see all information the user customized: text, images, fonts, colors, font size, etc. That would be most helpful.

Thanks!
Kate D.  
#6 Posted : Sunday, May 22, 2016 11:32:55 PM(UTC)
Kate D.

Rank: Advanced Member

Groups: Administration
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi Paul,

I need definitely more clarification about this feature request.

You want to get object as follows:

Code:

userChange: {
    text: {
        textlayer1: content, font name, size, styles, color, alignment, opacity;
        textlayer2: ... 
    }
    images: {
        imagelayer1: {image path, border width, opacity;}
        imagelayer2: ...
    }
}


1. Do you need to get added/deleted layers?

2. How do you want to get the information if the rich text will be changed (some separate symbols, separate part of text its styles)?

3. Do you need to get the coordinates of every item? Do you need information about moving/scaling/rotating/z-index?

Please specify your other requirements. I need full understanding of the details of your request.

Best regards,
Kate

Edited by user Sunday, May 22, 2016 11:36:22 PM(UTC)  | Reason: Not specified

praxent  
#7 Posted : Friday, February 3, 2017 11:21:31 AM(UTC)
praxent

Rank: Newbie

Groups: Member
Joined: 1/31/2017(UTC)
Posts: 1

Sorry for digging up this old post, but I am unclear on something. I have noticed the finishProductDesign promise returns only the changes to existing IUserChange objects but if I add new text, rich text, or other objects, it is not reflected in the userChanges object. Should I be receiving all changes? If not, how do I get all changes on the canvas.

Thank you
Kate D.  
#8 Posted : Wednesday, February 8, 2017 6:37:55 PM(UTC)
Kate D.

Rank: Advanced Member

Groups: Administration
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi there,

This behavior works by design. We have an internal API which allows to get all text which was added on the canvas interacting with the object model. I can prepare the sample code for you if you are interested. Do you need any other elements apart from text?

Best regards,
Kate
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.