PDA

View Full Version : Using "0" for Options > Shop Defaults > Bounce page delay causes unwanted sideeffect


Mocker
23-Jun-2003, 01:37 PM
I have a strange problem (well it's strange if you ask me atleast =) ). I have set the Design > Options > Shop Defaults > Bounce page delay to "0", so that it wouldn't bounce customers back to the catalogue. I don't know if this is really the correct way to do this, but it works, though with a strange side-effect: It causes meta-tags to appear to the end of the cart, in clear text and not as html tags, when adding new products. If you reload the cart, or do pretty much anything except add new products, this doesn't cause problems. The tags are usually (not always though, one of the reasons i think it strange) as the follows:

Content-type: text/html Content-length: 0 Date: Mon, 23-Jun-2003 13:20:26 GMT Pragma: no-cache Set-Cookie: ACTINIC_BUSINESS=-; PATH=/; Set-Cookie: CART_CONTENT=CART_TOTAL%09%26%23128%3b34%26%2346%3b00%09CART_COUNT%091%0a; EXPIRES=Mon, 23-Jun-2003 16:20:26 GMT; PATH=/;

These appear after the footer set from Design > Options > Shop Defaults > footer.

Such weird text wouldn't really convince anyone of the shops usability and security =)

I have poked around the html files without finding this text anywhere.

You can check around the site if that would help you find answers, the sites mostly (still translating some stuff) in Finnish, though, so that might cause a few problems to that =)
Well, the address is http://www.prohobby.fi/acatalog/ (yeah, it's under heavy construcktion and it's promised to be ready next monday =( ).

Thanks ahead if you have some kind of solution, maybe I've just set the redirecion off the wrong way...

chrisbrown
23-Jun-2003, 09:41 PM
Mocker,

The bounce page that appears is a bit of a mess. I don't think that it has anything to do with the delay=0, at least not directly.

The html code looks to be severly broken. The tail end of it is:

<BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#003366" ALINK="#003399" VLINK="#6699cc"><BLOCKQUOTE>
<P>
Odota kun palautamme sinut nettikauppaan tai paina A TARGET="_parent" HREF="http://www.prohobby.fi/cgi-bin/os000001.pl?ACTION=Aloita%21&BPN=catalogbody%2ehtml&REFPAGE=http%3a%2f%2fwww%2eprohobby%2efi%2facatalog%2fMarui_vakio%2dpistoolit%2ehtml&ACTINIC_REFERRER=http%3a%2f%2fwww%2eprohobby%2efi%2fcgi%2dbin%2fca000001%2epl&REFPAGE=http%3a%2f%2fwww%2eprohobby%2efi%2facatalog%2fMarui_vakio%2dpistoolit%2ehtml">tästä</A>.
<BLOCKQUOTE></BODY>
</HTML>

The <A> tag is missing its opening < delimiter. I am not quite sure where this code is being generated but I think that you have accidentially removed the vital < character before the A in the template.

zmagyar
23-Jun-2003, 11:30 PM
The 0 bounce delay is designed to operate in this way. IOW it is a feature not a bug. :)
The duplicated HTTP header problem is a known issue and will be fixed in the next maintenance release. If you need a workarround meanwhile you can get it work correctly by editing ShoppingCart.pl. Open this file in a plain text editor and locate sub ShowCart. The last line of this function isPrintPage($sHTML, $::Session->GetSessionID());Find this line and just below add a new line wh\ithexit;Before you do this change please don't forget to backup the original file.

Regards,

Mocker
24-Jun-2003, 08:02 AM
zmagyar,

Thanks a lot, that did the trick!
(was a bit worried at first when it didn't work by updating the website but refreshing it worked)

chrisbrown,

heh, I hadn't even noticed that silly mistake (not made by me so not my fault!! =) ).

Oh, and I have to say that the "service" in these forums is excellent, I mean actual Admins and even Developers helping people with their problems, that's pretty much new to me in non-opensource projects... I wonder if the some kind of e-mail-support service my boss bought for this program will ever be useful =)

Well, anyways, thanks a lot again and keep up the good work!
(and I will keep bothering you with my questions =) )