...
Code Block |
---|
{ eventName: 'wizart_shopping_cart', payload: [ { vendor_code: string, quantity: number, }, ], } |
4. Optional parameters:
...
logo_path – link to your logo. Preferably in svg format. The logo should occupy the entire height of the image without indentation above and below.
Format: logo_path=LINK_TO_YOUR_LOGO
...
menu_items – additional fields in the menu.
Format: menu_items=JSON.stringify([{ title: string }])
...
do_not_show_info_about_app – do not show the menu item “About the application“.
Format: do_not_show_info_about_app=1
...
original_url – link to the page. Links for redirecting from posts in social networks.
Format: original_url=link_to_your_web_site
...
twitter_mention – mention your twitter account.
Format: twitter_mention=@your_twitter_mention
...
facebook_app_id – Account ID that is mentioned in the facebook post when sharing. The default account is Wizart. You need to register your app on https://developers.facebook.com/ and copy its ID (make sure that you clicked LIVE button to activate your app on Facebook).
...
back_button_background - the background of the Back button.
Format: back_button_background=#ffffff
...
back_button_icon_color - the icon color inside the Back button.
Format: back_button_icon_color=#ffffff
...
enabled_shopping_cart – If the value is 1, the shopping cart functionality will be activated. The default value is 0.
Format: enabled_shopping_cart=1
...
is_shown_shopping_cart_prices – If the value is 1, the prices in the shopping cart and catalog will be displayed. The default value is 0.
Format: is_shown_shopping_cart_prices=1
...
shopping_cart_button_name – Text for the shopping cart redirect button. The default is “Go to shop“.
Format: shopping_cart_button_name=your_text_for_shopping_cart_button
...
Visualizer configuration: https://pim-admin.wizart.tech/configuration/web
user_id – User identifier or Device identifier. Type string. Format:
user_id=string
.context - Type string. Format:
context=string
.
Integration example:
Code Block |
---|
const fittingRoomEndpoint = server_address + '/fitting-room' + '?api_token=' + api_token + '&bba=true' + '&logo_path=LINK_TO_YOUR_LOGO' + '&menu_items=' + JSON.stringify([]) + '&do_not_show_info_about_app=0' + '&twitter_mention=@your_twitter_mention' + '&original_url=LINK_TO_YOUR_WEB_SITE' + '&facebook_app_id=facebook_app_id'user_id=string + '&back_button_background=#ffffff' + '&back_button_icon_color=#ffffff' + '&shopping_cart_link=link_to_your_shoping_cart' + '&user_idcontext=string ; |
5. Save and move all the changes into the work environment of the client’s website.
...