-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christian Kilb
committed
Dec 5, 2023
1 parent
61a10f7
commit 79505f9
Showing
11 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
--- | ||
nav_order: 60 | ||
parent: FAQ | ||
--- | ||
|
||
# How to set up an initial design? | ||
|
||
By default, if your customers open the product designer for one of your product, | ||
they will see an empty canvas: | ||
![Empty canvas](/img/blank-canvas.png) | ||
|
||
|
||
If you like to set up some objects that will be initially placed on the canvas you have | ||
to set up an _initial design_. | ||
|
||
## Finish your configuration | ||
|
||
Setting up an initial design should be one of the last steps of your configuration. | ||
|
||
⚠️ Before you start creating your initial design make sure you configured the correct canvas width, canvas height, article image etc. | ||
|
||
⚠️ Also, make sure your configuration has at least one article number assigned of an article which | ||
is available in your web shop's Frontend. | ||
|
||
Make sure the designer is working and everything is configured the way you want: | ||
Open the configuration's article in your web shop and open the designer. | ||
|
||
## Add objects | ||
|
||
Once you have loaded the designer for your article, place and modify all the objects | ||
you like to have set up in your initial design | ||
![Initial design](/img/initial-design.png) | ||
|
||
## Retrieve JSON code | ||
|
||
> The product designer internally saves each design and all the objects placed in it - including their positions and properties - using a format named JSON. | ||
You don't necessarily need to know about this format in detail to work with the product designer. | ||
Still, it's worth to get a rough idea about it in case you never heard about it before: | ||
https://en.wikipedia.org/wiki/JSON | ||
|
||
For the next step you need to make sure the frame the designer has been loaded into is in focus of your web browser. | ||
To do so, just click _anywhere_ within the product designer modal. | ||
For instance you could click on the zoom button: | ||
![Zoom button](/img/zoom-button.png) | ||
|
||
Right after, press the following key combination on your keyboard:\ | ||
Windows: **CTRL** + **ALT** + **J**\ | ||
MacOS: **control** + **option** + **J** | ||
|
||
⚠️ If you can't find any **CTRL** key on your keyboard it may have the label **STRG** instead. | ||
|
||
Once you pressed the key combination the bottom right button | ||
to finish the design will change to a button to view the JSON: | ||
![JSON button](/img/json-button.png) | ||
|
||
Now click on that button. A new modal will open that will show you the JSON code of your design. | ||
You will find a button to copy that JSON code to your clipboard. Now do so by clicking the button: | ||
![JSON modal](/img/json-modal.png) | ||
|
||
## Add JSON code to your configuration | ||
|
||
Now log in into your web shop's backend, open the configuration | ||
you like to set an initial design for and click on the tab "Initial design" (or "Initiales Design" in German): | ||
![Initial design tab](/img/initial-design-tab.png) | ||
|
||
In the tab you will find an input field. Now paste the JSON code you | ||
just copied from the designer into that field: | ||
![JSON input](/img/json-input.png) | ||
|
||
After you did so double-check your input by having a look to the preview on the right. | ||
|
||
If everything looks good, don't forget to save your configuration. | ||
|
||
## (Optional) Modify your initial design | ||
|
||
After you have copy-pasted the JSON code into the input field you are able to modify the objects of your initial design. | ||
Please mind to be careful here. If you change the JSON code in an invalid way the initial design could completely break. | ||
|
||
⚠️ Make sure you double-check each change you make using the preview functionality. | ||
|
||
To help you to work with the JSON code you can change between three view modes: | ||
|
||
_Text_ mode shows you the JSON as-is.\ | ||
_Tree_ mode will convert the JSON structure in a well-arranged tree.\ | ||
_Table_ mode will show you a table where each row is representing a single object. | ||
|
||
In the end it doesn't make a difference what view mode you choose. Just use the one you can work best with. | ||
|
||
--- | ||
|
||
Let's assume you like to increase the text size a bit.\ | ||
To do so, you have to find the _fontSize_ property of the text object. | ||
|
||
For demo purposes we use the _table_ mode an increase the width of the input field by clicking on the arrow button: | ||
![JSON table mode](/img/json-table-mode.png) | ||
|
||
In the table, find the row representing the text object by checking the _type_ column. | ||
No find the _fontSize_ column, double-click on the value and modify it: | ||
![JSON font size](/img/json-font-size.png) | ||
|
||
After you did so, click on the arrows again to have a look at the preview. | ||
![JSON font increased](/img/json-font-increased.png) | ||
|
||
If you are happy with your changes, don't forget to save your configuration. | ||
|
||
⚠️ You can find a documentation of all the existing object properties here: | ||
http://fabricjs.com/docs/fabric.Object.html | ||
|
||
⚠️ Please mind that not all properties are supported by the designer. So if you change the JSON code | ||
always make sure it's working like expected. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.