Nothing happens when I click on "Add to cart"

Problems installing or using the NOP Design Free Shopping Cart that do not fit into one of the above categories.

Moderators: Koibito, Stefko, Randy

Nothing happens when I click on "Add to cart"

Postby Anthraxitus » Tue May 03, 2011 12:20 pm

Hi,

I have gotten this to work. So I added the clear cart function.

Now when I place a new order and click on "Add to cart", nothing happens and my cart stays empty?
Anthraxitus
WebMaster
 
Posts: 2
Joined: Tue May 03, 2011 11:11 am

Re: Nothing happens when I click on "Add to cart"

Postby Koibito » Wed May 04, 2011 5:24 pm

Put this in the head of your Thank You page:

Code: Select all
<script type="text/javascript">
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
}
</script>
<script type="text/javascript">
window.onload=delCookie('NumberOrdered');
</script>


It won't be possible, however, to have product items on your Thank You page, because every time you add an item to your cart, the page reloads and that will also delete the cookies.
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Nothing happens when I click on "Add to cart"

Postby Anthraxitus » Thu May 05, 2011 1:18 pm

fixed . thanks
Anthraxitus
WebMaster
 
Posts: 2
Joined: Tue May 03, 2011 11:11 am


Return to Help: Cart / General

Who is online

Users browsing this forum: wuhuilin11 and 5 guests