{ id : "ProductTour", steps : [ #IF( #PAGETYPE.Alias EQ "UnityMBO-Products") { title : "{YourProducts}", content : "{AddProduct_Content}", target : ".ep-contentBox-check.add-button", placement : "bottom", yOffset : 8, multipage : true, nextOnTargetClick : true, task : { taskFunction : "clickOnTarget", mandatory : true } }, #ELSE /*setting up two dummy steps to match the amount of steps from the MBO-Products Page*/ { target : null, }, #ENDIF #IF( #PAGETYPE.Alias EQ "UnityMBO-ProductNew") { title : "{ProductName}", content : "{ProductName_Content}", target : "#NameNative", placement : "bottom", arrowOffset : "center", showPrevButton: false, yOffset : 8, task : { taskFunction : "validateInputOnTarget", target : "input#NameNative", mandatory : false }, onNext: function() { ep('#SaveButton').attr('disabled', true); } }, { title : "{ProductVisibility}", content : "{ProductVisibility_Content}", target : "div.col-xs-3:has(#IsVisible0)", placement : "right", yOffset : -12.5, task : { taskFunction : "clickOnTarget", target : "#IsVisible0", mandatory : false }, onNext: function() { ep('#SaveButton').attr('disabled', true); } }, { title : "{ProductDescription}", content : "{ProductDescription_Content}", target : "div.ep-wysiwyg-wrapper", placement : "bottom", yOffset : 8, arrowOffset : "center", task : { taskFunction : "validateInputOnTarget", target : "div#uieditor_DescriptionTranslation", mandatory : false }, onNext: function() { ep('#SaveButton').attr('disabled', true); } }, { title : "{UploadImage}", content : "{UploadImage_Content}", target : ".ep-dndupload-element", placement : "left", arrowOffset : "center", highlight : false, task : { taskFunction : "testDnDUploader", mandatory : false, target : "input.ep-dropzone-fileinput" }, onNext: function() { ep('#SaveButton').attr('disabled', true); } }, { title : "{ProductPrice}", content : "{ProductPrice_Content}", target : "div.col-xs-6:has(input.Price)", placement : "top", yOffset : -8, arrowOffset : "center", task : { taskFunction : "validateInputOnTarget", target : "input.Price", mandatory : false }, onNext: function() { ep('#SaveButton').attr('disabled', true); } }, { title : "{Categories}", content : "{Categories_Content}", target : "div.col-xs-12:has(div.col-xs-12:has(input#Category))", placement : "top", yOffset : -8, xOffset : 30, highlight : false, task : { taskFunction : "clickOnTarget", target : "input#Category ~ button.ep-tray", mandatory : false }, onNext: function() { ep('#SaveButton').attr('disabled', false); } }, { title : "{SaveChanges}", content : "{SaveChanges_Content}", target : "#SaveButton", placement : "top", yOffset : -8, multipage : true, nextOnTargetClick : true, noScroll : true, task : { taskFunction : "clickOnTarget", target : "#SaveButton", mandatory : true }, onPrev: function() { ep('#SaveButton').attr('disabled', true); } }, #ELSE { target : null, }, { target : null, }, { target : null, }, { target : null, }, { target : null, }, { target : null, }, { target : null, }, #ENDIF { title : "{ViewStorefront}", content : "{ViewStorefront_Content}", target : ".unity-storefront-link", placement : "bottom", xOffset : "center", arrowOffset : "center", nextOnTargetClick : true, noScroll : true, task : { taskFunction : "clickOnTarget", mandatory : false } } ] }, tourSettings : { highlightMargin: 0 } #IF( #PAGETYPE.Alias EQ "UnityMBO-ProductNew") }); if (sessionStorage.getItem('hopscotch.tour.state') !== null) { sessionStorage.setItem('hopscotch.tour.state', 'Product:2'); } ({ #ENDIF #IF( #PAGETYPE.Alias EQ "UnityMBO-Products") }); if (sessionStorage.getItem('hopscotch.tour.state') !== null) { sessionStorage.setItem('hopscotch.tour.state', 'Product:0'); } ({ #ENDIF /* Those language tags are required in for the Tour Start Dialog in GuidedTours "TourExplanation": "{TourExplanation}" "WelcomeMessage": "{WelcomeMessage}"" */