I was referring to this post: https://community.sellerdeck.com/for...311#post556311
Announcement
Collapse
No announcement yet.
Sellerdeck Pay and ClearAccept
Collapse
X
-
Jonathan Chappell
Website Designer
SellerDeck Website Designer
Actinic to SellerDeck upgrades
Graphicz Limited - www.graphicz.co.uk
-
Ok. So from what I can see that code is adding a javascript payment overlay function for paypal so not something you'd do in preview mode. I'd have to say it looks to me as if the blockif function is correct.-----------------------------------------
First Tackle - Fly Fishing and Game Angling
-----------------------------------------
Comment
-
Looking at a default Swift 18.2.3 site that bit of layout is no longer there suggesting that it is right to remove it:
Code:<div class="button-wrapper order-2 w-xs-100"> <input type="submit" name="ACTION_CONFIRM" id="idBtnConfirm" value="<actinic:variable name="ConfirmOrderButton" />" class="btn btn-lg btn-success theme-btn button cart-button" /> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e%20%26%26%0d%3cactinic%3avariable%20name%3d%22UseAccordionPayments%22%20%2f%3e%20%3d%3d%20false" > <script type="text/javascript"> $("#idBtnConfirm").click(function(event){ $('body').addClass("paymentOverlayActive"); pspFunction = "doPspConfirm" + GetPaymentMethod(); if (typeof window[pspFunction] === 'function') { event.preventDefault(); return window[pspFunction](); } return SubmitPSPForm('<actinic:variable name="ShopID" />'); }); </script> </actinic:block> </div>
Jonathan Chappell
Website Designer
SellerDeck Website Designer
Actinic to SellerDeck upgrades
Graphicz Limited - www.graphicz.co.uk
Comment
-
I don't disagree that he's right to remove it but that doesn't change that you wouldn't want it running in preview mode.
The checkout pages only run in perl on the server so it wouldn't make sense to want bits of PSP javascript for the checkout to be running in preview mode.-----------------------------------------
First Tackle - Fly Fishing and Game Angling
-----------------------------------------
Comment
-
Talking of being stitched up like kippers...
see: https://community.sellerdeck.com/for...-18-2-2-reallyJonathan Chappell
Website Designer
SellerDeck Website Designer
Actinic to SellerDeck upgrades
Graphicz Limited - www.graphicz.co.uk
- 1 like
Comment
Comment