HI All,
I'm having a problem with Toolkit Render/forced login. This code:
Is run if someone tries to add something to their cart when not logged in. It redirects, but there's no session in the URL, so you have to click the login button twice to login, once to get a session, then once to login. Here's the form:
A separate issue is that I'd like to add the product that they tried to add, to their cart after logging in (that's why I'm capturing the product code). Do I need to create a subscreen to do that bit of work, or is their a simpler way?
Any help greatly appreciated.
best
Paul
I'm having a problem with Toolkit Render/forced login. This code:
Code:
<mvt:if expr="basket:cust_id EQ 0"> <mvt:item name="toolkit" param="vassign|myprodvar|l.all_settings:product:code" /> <mvt:item name="toolkit" param="render|LOGN" /> <mvt:exit /> </mvt:if>
Code:
<form method="post" action="&mvt:global:secure_sessionurl;" class="form-horizontal"> <mvt:comment> <mvt:item name="ratethis" param="logn" /> </mvt:comment> <input type="hidden" name="Store_Code" value="&mvte:store:code;"> <mvt:if expr="g.Write_Review"> <input type="hidden" name="Write_Review" value="1"> <input type="hidden" name="Product_Code" value="&mvt:global:Product_Code;"> </mvt:if> <mvt:if expr="g.OrderHistory"> <input type="hidden" name="Screen" value="OLST"> <mvt:elseif expr="g.myprodvar"> <input type="hidden" name="Screen" value="PROD"> <mvt:else> <input type="hidden" name="Screen" value="ACOV"> </mvt:if> <input type="hidden" name="Action" value="LOGN"> <div class="muted-header more-muted"> <h5>Log Into an existing account</h5> </div> <div class="well headless-well"> <div class="control-group"> <label class="control-label" for="Customer_Login">Login Name</label> <div class="controls"> <input type="text" id="Customer_Login" name="Customer_Login" value="&mvte:global:Customer_Login;"> </div> </div> <div class="control-group"> <label class="control-label" for="Customer_Password">Password</label> <div class="controls"> <input type="password" id="Customer_Password" name="Customer_Password" > </div> </div> <div class="control-group"> <div class="controls"> <button class="btn btn-large btn-info btn-block" type="submit">Login To Account</button> </div> </div> </div> </form>
A separate issue is that I'd like to add the product that they tried to add, to their cart after logging in (that's why I'm capturing the product code). Do I need to create a subscreen to do that bit of work, or is their a simpler way?
Any help greatly appreciated.
best
Paul
Comment