Jump to content

Making changes during checkout


Yarnell

Recommended Posts

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 #?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...