Hi all,
I'm working on an OPAY page redesign that includes a live basket.. like on the BASK page, where each basket line has its own Remove (RPRD action) and Update (QNTY) buttons. I've got it basically working with this code; hitting either button reloads OPAY with the updated cart:
The problem comes up when I try to move on to the INVC screen, with this:
I get dumped back onto a blank OCST, with a message reading:
The contents of your basket changed during the checkout process. As a security precaution, you have been returned to the beginning of the checkout process.
How can I avoid being dumped back onto OCST at this point? I'm already updating the cart securely, and my customer wants the live basket on the final checkout page, so I can't just move it somewhere else.
Any help's very appreciated! 'sbeen driving me up the wall.
Thanks..
I'm working on an OPAY page redesign that includes a live basket.. like on the BASK page, where each basket line has its own Remove (RPRD action) and Update (QNTY) buttons. I've got it basically working with this code; hitting either button reloads OPAY with the updated cart:
HTML Code:
<mvt:foreach iterator="item" array="basket:items"> <tr><td class="product-remove"> <form method="post" action="&mvt:global:secure_sessionurl;"> <input type="hidden" name="Action" value="RPRD"> <input type="hidden" name="Screen" value="&mvte:global:Screen;"> <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;"> <input type="hidden" name="Basket_Line" value="&mvte:item:line_id;"> <mvt:item name="buttons" param="Remove" /></form></td> <td class="product-update"> <form method="post" action="&mvt:global:secure_sessionurl;"> <input type="hidden" name="Action" value="QNTY"> <input type="hidden" name="Screen" value="&mvte:global:Screen;"> <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;"> <input type="hidden" name="Basket_Line" value="&mvte:item:line_id;"> <input type="text" name="Quantity" value="&mvte:item:quantity;" size="4" /> <mvt:item name="buttons" param="Update" /></form></td> </tr> </mvt:foreach>
HTML Code:
<form method="POST" action="&mvt:payment:url;"> <input type="hidden" name="Screen" value="INVC" /> <input type="hidden" name="Action" value="AUTH" /> <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" > <input type="hidden" name="PaymentMethod" value="&mvte:global:PaymentMethod;"> ...(payment fields etc.)... <input id="purchase" type="image" src="../images/purchase.gif" alt="Purchase" /> </form>
The contents of your basket changed during the checkout process. As a security precaution, you have been returned to the beginning of the checkout process.
How can I avoid being dumped back onto OCST at this point? I'm already updating the cart securely, and my customer wants the live basket on the final checkout page, so I can't just move it somewhere else.
Any help's very appreciated! 'sbeen driving me up the wall.
Thanks..
Comment