Meet us at Drupa 24. Dusseldorf/Germany. May. 28 - Jun 7.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
shane_elite  
#1 Posted : Wednesday, April 17, 2019 12:15:43 PM(UTC)
shane_elite

Rank: Newbie

Groups: Member
Joined: 4/17/2019(UTC)
Posts: 1

Hello,

I need to be able to retrieve the name of the background image outside of the editor. Is there any way to retrieve a background image name on change via Javascript? Also, is it possible to have a background image from the background gallery be used only for display purposes within the editor and not be included in the print output?

Use case: Our client is a print shop offering different colored envelopes, and we need to pass the envelope color selection along with the product to the cart. Obviously, we don't need to print the color of the envelope - we would just like the user to see it.

Thanks!
Shane
Sergey_f  
#2 Posted : Sunday, April 21, 2019 10:50:10 PM(UTC)
Sergey_f

Rank: Member

Groups: Member
Joined: 12/7/2018(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Hello Shane,

Quote:
I need to be able to retrieve the name of the background image outside of the editor

You can use "getallItems" method, it returns the array of items, you can choose the element and get its name.
https://customerscanvas.....product.getallitems.htm
"onChange" event will be available in the later versions of Customer's Canvas.

Quote:
Also, is it possible to have a background image from the background gallery be used only for display purposes within the editor and not be included in the print output?

Yes, it's possible, to reach that, you need to add the marker <VNP> to the name of the layer with the image which you want to display in the editor but don't want to print. The article about the markers:
https://customerscanvas....cc/supported-markers.htm

For your use case, you can set the product theme options(color), here is the article about it:
https://customerscanvas....cs/cc/product-themes.htm
And the examples:
https://customerscanvas....-page/envelopes/envelope
https://customerscanvas....ge/business-cards/simple
The color theme can be passed to the cart and the order info.

Regards,
Sergey
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.