360 Product View
- Ekaterina Slesarchik
90% online shoppers rely on product photos when deciding on a potential purchase.
Entry point button
For successful integration of this button, you need to add several lines of JS-code to the place, where you would like to display the button.
To initialize the button, you need to call this code with a token, element and vendor code and room name:
First integration option:
<script type="application/javascript" src="https://d35so7k19vd0fx.cloudfront.net/production/integration/view-360.min.js"></script>
<script>
const entryPoint3DGraphics = new window.WEntryPoint360({
token: "your token for wizart",
element: "link to the element to insert the 360 view entry point button", // example document.getElementById("0000")
vendorCode: "vendor code of product or name",
clientUuid: "client uuid",
});
entryPoint3DGraphics.render();
</script>
Parameter | Description | Type |
---|
Parameter | Description | Type |
---|---|---|
token | api token - generated and issued by Wizart Administrator. | Required |
vendorCode | Unique SKU ID of the product uploaded to Wizart system. | Required |
clientUuid | Add client_uuid generated and issued by Wizart Administrator. | Required |
element | link to the element to insert the entry point button (e.g | Optional |
When you are rendering button, you can write next parameters to style your button:
If you want re-styled button, it will look like: entryPoint3DGraphics.render({title: "Your title", color: "#000"});
fontSize,
title,
tooltipTitle,
tooltipPosition,
tooltipDisable,
glitterDisable,
className,
borderRadius,
background,
color,
width,
height,
border,
image,
onloadCallback,
onCloseCallback,
onButtonClick,
elementSelector,
insertElementPosition,
iframeElementSelector,
insertIframeElementPosition,
Name of parameter | Description and Examples of using |
---|
Name of parameter | Description and Examples of using |
---|---|
| Font size of your button. |
| Text to be displayed on the button (the default value is "Try it in your room in one click!"). |
| Text to be displayed on the tooltip (the default value is "See it in your room!"). |
| Tooltip position towards the button. Available values are top, right, bottom, left (the default value is top). |
| If the value is “true”, the tooltip will not be displayed. Default: false. |
| If the value is “true”, glitter will not be displayed. |
| Class to be set for the button element on the page. Mostly, using to change more style, that our default parameters can’t (e.x. box-shadow). |
| Button border-radius. |
| Button background. |
| Button text color. |
| Max button width. |
| Button height. |
| Style of button. For example: |
| Link to the icon that will be displayed on the button. |
| The name of the function to be in the global scope. The function will be called when the visualizer is loaded. function wizartOnLoad() {
console.log('Visualizer is loaded!');
}
entryPoint.render({onloadCallback: "wizartOnLoad"});
|
| The name of the function to be in the global scope. The function will be called after the visualizer is closed.
|
| The name of the function to be in the global scope. The function will be called when the button is cliecked.
|
| A CSS selector to select an element on the page to insert a button where you want.
|
| A CSS selector to select an element on the page to insert a button where you want.
|
| A CSS selector to select an element on the page to insert the fitting room where you want. The best way to put iframe is “before body“.
|
| The insertion position of the element. Values: append, before, after. default value: append. The best way to put iframe is “before body“.
|
Second integration option:
Parameter | Description and Examples of using |
---|
Parameter | Description and Examples of using |
---|---|
class | Required parameter. |
src | Link to js-file with integration code. |
data-token | api token - generated and issued by Wizart Administrator. |
data-vendor_code | Unique SKU ID of the product uploaded to Wizart system. |
data-client_uuid | Add client_uuid generated and issued by Wizart Administrator. |
data-title | Text to be displayed on the button (the default value is "Try it in your room in one click!"). |
data-color | Button text color. |
data-background | Button background. |
data-tooltip-disable | If the value is “true”, the tooltip will not be displayed. |
data-tooltip-title | Text to be displayed on the tooltip (the default value is "See it in your room!"). |
data-tooltip-position | Tooltip position towards the button. Available values are top, right, bottom, left (the default value is top) |
data-glitter-disable | If the value is true, glitter will not be displayed |
data-width | Button width |
data-height | Button height |
data-border | Button border |
data-border_radius | Button border-radius |
data-image | Link to the icon that will be displayed on the button |
data-class_name | Class to be set for the button element on the page |
data-onload-callback | The name of the function to be in the global scope. The function will be called when the visualizer is loaded. |
data-on-close-callback | The name of the function to be in the global scope. The function will be called after the visualizer is closed. |
data-element-selector | A CSS selector to select an element on the page to insert a button where you want. |
data-insert-element-position | The insertion position of the element. Values: append, before, after. default value: append. |
data-iframe-element-selector | A CSS selector to select an element on the page to insert the fitting room where you want. |
data-insert-iframe-element-position | The insertion position of the element. Values: append, before, after. default value: append. |
What will you get?
You can view this functionality on the live website: https://thematerialcloud.com/products/harmony-pasadena-california-green
Button called 360 Product View.