I am having a problem w/ this tag: <%grand_total%>. It does not work for me.. Plesae goto: http://www.martialimports.com. Please advise w/ correct html line. TIA!
Jul 1, 2000, 2:10 PM
Veteran (17240 posts)
Jul 1, 2000, 2:10 PM
Post #2 of 4
Views: 1304
Make sure that you have the following tag definition in your sub site_html_home routine in the site_html_templates.pl file:
grand_total => $grand_total
This cannot be defined as a global tag since it is ONLY defined in the sub build_home_page routine in the nph-build.cgi file. So, the <%grand_total%> tag should NOT be defined in the %globals hash at the top of the file.
Got it?
Regards,
Eliot Lee
Code:
grand_total => $grand_total
This cannot be defined as a global tag since it is ONLY defined in the sub build_home_page routine in the nph-build.cgi file. So, the <%grand_total%> tag should NOT be defined in the %globals hash at the top of the file.
Got it?
Regards,
Eliot Lee
Jul 1, 2000, 9:07 PM
Veteran (17240 posts)
Jul 1, 2000, 9:07 PM
Post #4 of 4
Views: 1301
Yep...and there is a FAQ about TAG PROBLEMS in the Resource Center (which is the first place to check before searching the forum and THEN posting questions if you can't find any answers)....
Your problem is that your tags are probably on the same line when they should be on SEPARATE lines....
Either use the following codes:
Code:
<%if links%>
<%links%>
<%endif%>
OR download and install the Enhanced Template.pm codes found in the Resource Center, and then you can have tags on the same line, like the following:
Code:
<%if links%><%links%><%endif%>
Regards,
Eliot Lee