PDA

View Full Version : Mini Cart


BilstonBob
07-Oct-2003, 03:42 PM
Hi

First of all I apologise if this is really dumb! However, after checking out and completing a transaction the 'mini cart' isn't clearing and still shows the totals I've just purchased. The mini cart only clears if I view the main cart - the totals are then reset to '0'.

I'm convinced that when I originally set this up on another server the mini cart cleared after checkout?

The javascript creating the totals is as follows:

<span class="actxxsmall">
<script language="JavaScript">
document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
</script></span>

Thanks

Anthony

TraceyG
08-Oct-2003, 10:34 AM
Hi Anthony,

Is your 'acatalog' folder on a different server to your 'cgi-bin'? Demon use this setup which can cause a problem. If this is the case then please see this kb article (http://www.actinic.com/knowledge/acatalog/v6_Viewing_the_Online_Store.html#aGC119) for the fix.

BilstonBob
08-Oct-2003, 10:59 AM
Hi Tracey

No the Mini Cart is in the same place. I'm using a Claranet webserver. But on checkout you're taken to a shared Claranet SSL server, so perhaps this is causing the problem?

Also, may be in relation to the above, I occasionally find that after checkout completion I get a page redirection error, although this hasn't happened in recent testing. Any ideas?

Many thanks

Anthony

TraceyG
08-Oct-2003, 12:37 PM
Hi,

But on checkout you're taken to a shared Claranet SSL server, so perhaps this is causing the problem?

This is the problem and I'm afraid that this is a bug that won't be fixed until v7 and we don't have a workaround for it. The problem is that the cookie is being cleared in the secure part of the process but not in the non-secure part which is why it does not clear the summary. If you feel that it is a major problem then I'm afraid that you won't be able to use the summary and should comment out the code in your first posting in the Act_Primary.html or Act_Header.html template (depending on theme).

I occasionally find that after checkout completion I get a page redirection error, although this hasn't happened in recent testing. Any ideas?

Intermittent problems are usually server errors, however, there could be other factors, for example, do you always test from the same pc - if not, then do you have a firewall on one machine and not on the other one? Maybe you could look at the 'error.err' file contained in the 'acatalog' folder when you get the problem to see if that sheds any light on it.

BilstonBob
08-Oct-2003, 01:01 PM
Cheers, Tracey.

Re: Mini Cart

I can live with the Mini Cart error. I thought it might be something to do with cookie clearing. If you click on view cart after checking out the cookie is reset and the Mini Cart clears, which your comment confirms. It was just one of those niggly little things that I'm sure a customer somewhere will moan about!

Re: Page Redirection

No I'm testing on the same machine at the moment. The problem seems to occur after an upload. I think that it's related to me uploading the site with changes then viewing cached pages during the checkout process. So I'll keep an eye on things for now.

Many thanks

Anthony