PDA

View Full Version : error templates


Kev
27-Jun-2003, 11:12 AM
Hi,

Whilst testing my site I'm getting a few (expected) errors e.g. I'm purposefully not selecting an address from my delivery book to see what the error page looks like- it looks bad.

I assume the error pages are template driven too- could someone tell me what they're called?

Kev
27-Jun-2003, 01:09 PM
Apparently, according to the AUG, the error strings are formatted by OrderScript.pl but I can't find the relevant bits.

If you go here-

http://rosemarys.cmhosts.net then add something to the cart, proceed to the checkout then leave the shipping destination country blank and click the 'next' button you'll see the errors that I'm getting- basically the error message is displayed in a nested table thats too wide for my design.

I've tried altering the settings in Design | Text | Website | HTML as there is a table in there that matches the parameters but overwriting them and uploading again does no good so it must be specified elsewhere- any clues would be a big help.

TIA.

Kev
27-Jun-2003, 02:42 PM
Found them!

The table sizes (and borders and cellpadding) were hard-coded(!!) into four .pm files.

ac00001.pm
ACTINIC.pm
ActinicConstants.pm
al000001.pm

at around line 126.

Sorted now but tut tut Actinic- hard coding design elements? Not good.

chrisbrown
30-Jun-2003, 09:48 AM
ac00001.pm and al00001.pm are generated from the other files so you don't need to modify them directly. Your changes in the .pm files with more readable names should get carried through.

Kev
30-Jun-2003, 10:47 AM
Well whatever generates them is broke then cos they weren't ;)

realsmack
30-Jan-2004, 06:20 PM
Gah!

This one has been driving me nuts. I was changing the al000001.pm file over and over, only to find it overwritten when I updated the file. Thanks for the pointer to change them in the two constants files.

Kee-rist! These *really* should be parsed and use Actinic variables - otherwise what's the point of ACTSTDWIDTH?

My 2 cents -

s.