Yarnell Posted July 2, 2023 Share Posted July 2, 2023 Morning, I can't seem to figure out the following: skins\foundation\templates\content.checkout.confirm.php <div class="pad-top"><a href="#" class="button small show_address_form"><svg class="icon"><use xlink:href="#icon-reply"></use></svg> {$LANG.form.make_changes}</a></div> This method works for the foundation skin but not in other skins. Is there any way to go back and make changes by clicking a link without the #? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 2, 2023 Share Posted July 2, 2023 The above button simply will display the Delivery Address form, at checkout, for not-logged-in customers, when the "Deliver to Billing address" is not checked. When you say "to go back", do you mean that after having moved to the next step in the checkout process, the customer wants to go back to the Confirm stage and change the delivery address? If so, and depending on the skin (I tested with Kurouto), there is at the top: 1-Basket 2-Checkout 3-Payment 4-Complete where each is a link to that stage - if appropriate. Quote Link to comment Share on other sites More sharing options...
Yarnell Posted July 3, 2023 Author Share Posted July 3, 2023 Yes. Once the customer has entered thier address the confirmation page comes up. I'd like to add a link to go back and make changes if needed. I tried using the stage links but its stuck on the confirmation page. Quote Link to comment Share on other sites More sharing options...
Yarnell Posted July 3, 2023 Author Share Posted July 3, 2023 If anyone happens to run into this issue I have resolved it by using a bit of javascript. Html <div> <a href="javascript:void(0)" onclick="makeChange()">Make Changes</a> </div> Javascript <script> function myFunction() { var x = document.getElementById("checkout_register_form"); var y = document.getElementById("register_false_address"); if (x.style.display === "block") { x.style.display = "none"; y.style.display = "block"; } else { x.style.display = "block"; y.style.display = "none"; } } </script> This snippet will hide the confirmation div and show the registration form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.