~;
}
&product_page_footer($status,$total_row_count);
exit;
}
############################################
# display_cart_contents Subroutine
sub display_cart_contents
{
local (@cart_fields);
local ($field, $cart_id_number, $quantity, $display_number,
$unformatted_subtotal, $subtotal, $unformatted_grand_total,
$grand_total);
&standard_page_header("View/Modify Cart");
&display_cart_table("");
&cart_footer;
exit;
}
sub file_open_error
{
local ($bad_file, $script_section, $this_file, $line_number) = @_;
&update_error_log("FILE OPEN ERROR-$bad_file", $this_file, $line_number);
&CgiDie ("I am sorry, but I was not able to access $bad_file in the
$script_section routine of $this_file at line number $line_number.
Would you please make sure the path is correctly defined in
web_store.setup and that the permissions are correct.")
}
sub display_page
{
local ($page, $routine, $file, $line) = @_;
open (PAGE, "$page") ||
&file_open_error("$page", "$routine", $file, $line);
while ()
{
s/cart_id=/cart_id=$cart_id/g;
s/%%cart_id%%/$cart_id/g;
s/%%page%%/$form_data{'page'}/g;
if ($form_data{'add_to_cart_button.x'} ne "" &&
$sc_shall_i_let_client_know_item_added eq "yes")
{
if ($_ =~ /