using v8.0.3 I ran the "check coding errors" on the designer menu and it came up with errors (all of them within the "Standard Layout using CSS")
"variable 'ProductName' is used out of context (2 times)"
and a few other variables (EncodedProductAnchor, ProductReference, CartError, ProductDescription) with similar problems.
AFAIK I think that I've moved the "ProductName" out of the < form > </form> area, but kept it in the same layout because I wanted to separate the prompts within the form away from (and in a differerent css style) the actual product names etc.
I've checked the Variable Reference help file and all it says is area="product | general"
I've done some experimenting with the variable "CartError" - my ammended layout clearly shows it OUTSIDE the < form> and the Coding Errors generated the message "Variable Cart Error is used out of context"
When I then move it back WITHIN the < form> the Coding Errors generated the message "Variable Cart Error is used out of context (2 times)"
Not sure where the "2 times" comes from because its in the SAME layout just three lines higher and within the Form!
Since moving the CartError variable (part of the experiment), the message for the ProductName shows only ONE error, the "(2 times)" has dissapeared but I have NOT touched the ProductName as part of the experiment.
I've uploaded the pages it to a trial site and it seems to work !
so the main question is "just what context should it be used" and as a secondary question, "Can I rely upon the messages generated"
"variable 'ProductName' is used out of context (2 times)"
and a few other variables (EncodedProductAnchor, ProductReference, CartError, ProductDescription) with similar problems.
AFAIK I think that I've moved the "ProductName" out of the < form > </form> area, but kept it in the same layout because I wanted to separate the prompts within the form away from (and in a differerent css style) the actual product names etc.
I've checked the Variable Reference help file and all it says is area="product | general"
I've done some experimenting with the variable "CartError" - my ammended layout clearly shows it OUTSIDE the < form> and the Coding Errors generated the message "Variable Cart Error is used out of context"
When I then move it back WITHIN the < form> the Coding Errors generated the message "Variable Cart Error is used out of context (2 times)"
Not sure where the "2 times" comes from because its in the SAME layout just three lines higher and within the Form!
Since moving the CartError variable (part of the experiment), the message for the ProductName shows only ONE error, the "(2 times)" has dissapeared but I have NOT touched the ProductName as part of the experiment.
I've uploaded the pages it to a trial site and it seems to work !
so the main question is "just what context should it be used" and as a secondary question, "Can I rely upon the messages generated"
Comment