Delete Options & Carts : LUSENET : S-Mart Shopping Cart : One Thread

Hi, Has anyone got the Delete subroutine to work. AFter the Delete cart is picked, then i get a server error, however the cart has been deleted. In addition I was wondering if someone picks items and then leaves, is that entry recorded in the /tmp dir. DO i have to delete it manually? What if orders have been processed. Will the carts be deleted automatically. I'm particularly concerned with people accessing the server from 1 IP address ( from a proxy ) and seeing others peoples contents.

THanks, Jackson

-- Jackson (, April 21, 1998


The new version (v1.9.5) solved the problem. You can also avoid having the same content being display by doing the following:

Find the following section in the SMART.CGI file:

sub get_host { $host = $ENV{'REMOTE_HOST'}; $reffile = "$tmpdir$delim$storename-$host"; }

Replace with the following lines:

sub get_host { $host = $ENV{'REMOTE_HOST'}; $p_id = ($$ % 10000); $reffile = "$tmpdir$delim$storename-$host-$p_id"; }

-- God bless!

-- Patrick Chan (, February 14, 2000.

Even w/1.95 I'm still getting the server error.

-- Wayne Simila-Dickinson (, March 21, 2000.

Moderation questions? read the FAQ