Jump to content

Remove from cart or clear cart??


deltatech

Recommended Posts

Is there anyway that one can remove something from the cart?

 

Specifically, when doing a domain transfer, if someone mistypes the domain name, and then goes back and adds the correct domain name, both the incorrect domain and the new one shows up in the cart. It is impossible to continue with the order until the EPP code is entered for ALL domains including the one they really didn't want in their cart.

 

Is there a way to remove items from the cart or to completely clear the cart?

 

I tried logging out and coming back but it seems that as long as the session remains, the items remain in the cart. I think this would end up in a lost sale as the client would give up.

 

I am a noob here and probably I am missing something obvious?

Link to comment
Share on other sites

I see that now but... When ordering a domain transfer, you can't get far enough to see that until you have entered the EPP code. One can get there by typing anything in as an EPP code then you can move to the part of the cart where the item can be removed. Not very intuitive for the customers.

 

In 3.6.2 there's a "Remove" link next to each item in the cart, and an "Empty Cart" button beneath it.
Link to comment
Share on other sites

  • 1 month later...

You can add the below to the cart template...


<a href="#" onclick="removeItem('p','{$num}');return false" style="color:#cc0000;">[{$LANG.cartremove}]</a>" and "{literal}<script language="javascript">
function removeItem(type,num) {
var response = confirm("{/literal}{$LANG.cartremoveitemconfirm}{literal}");
if (response) {
window.location = 'cart.php?a=remove&r='+type+'&i='+num;
}
}
function emptyCart(type,num) {
var response = confirm("{/literal}{$LANG.cartemptyconfirm}{literal}");
if (response) {
window.location = 'cart.php?a=empty';
}
}
</script>{/literal}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated