Announcement

Collapse
No announcement yet.

The Cart summary does not work when Demon Internet hosts the site.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    The Cart summary does not work when Demon Internet hosts the site.

    This occurs because Demon Internet hosts the CGI directory on a different server from the site. As a result the Cookie is saved for the domain of the CGI server but the JavaScript running in the browser is attempting to read the Cookie for the site server domain.

    To resolve this problem the Perl Script Actinic.pm needs to be modified to write the domain name as a parameter when saving the Cookie.

    - Locate the file Actinic.pm in the site folder.
    - Edit the file using a text editor such as Notepad.
    - Search for…

    Print cart cookies

    - A few lines after this line you should see…

    print "Set-Cookie: " . $sCartCookie . # set the cookie
    "; EXPIRES=" . $sCartExpiry .
    "; PATH=/;\r\n";

    - Replace the line…

    "; PATH=/;\r\n";

    - with…

    "; PATH=/; domain=;\r\n";

    - Replace with the site server address e.g.

    "; PATH=/; domain=www.sellerdeck.co.uk;\r\n";

    - Save the file and exit.
    - Update the site.

    SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
Working...
X