Use steps with post actions #579

Open
ottosmittenaar opened this Issue Sep 24, 2016 · 0 comments

Projects

None yet

1 participant

@ottosmittenaar

Hi,

I really love Bootstrap Tour and hope to use it for an important live demonstration. I would like to demonstrate how our Commerce solution works and therefore need to handle some post actions. By using jQuery trigger with 'onNext' I managed to perform an add to cart action.

onNext: function (tour) {$( "[name=addProduct]" ).trigger( "click" );}

But when this step is performed the tour does not continue because the path is not know (I guess). I assume I need to write an regulair expression or function to set the unieke path.

The URL path after performing the trigger is: /web/WFS/inSPIRED-inTRONICS-Site/en_US/-/USD/ViewData-Start/1524909863?JumpTarget=ViewCart-View

I think this is a newbie question, but I really hope you can help me with this.

Thanks and best,
Otto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment