I want to be able to run a PHP script once an order is completed.
A couple of options which I have investigated and so far been unsucessful include;
1. Trying to parse the Perl (.pl) pages as PHP by adding this line of code to .htaccess
but this do not work.
2. Renaming the a checkout file to .php extension, but then my guess is that it would not be able to do its thing (and I dont not know how to do this).
3. Setting up a redirect to a PHP file during the ordering process. This to me seems like the best option currently.
I want to manipulate the items in within the order and create a secondary output. How are items within the order stored? My first guess would be cookies, in which case I would have not thought I would have problem accessing these items using PHP code?
A couple of options which I have investigated and so far been unsucessful include;
1. Trying to parse the Perl (.pl) pages as PHP by adding this line of code to .htaccess
Code:
AddType application/x-httpd-php .pl
2. Renaming the a checkout file to .php extension, but then my guess is that it would not be able to do its thing (and I dont not know how to do this).
3. Setting up a redirect to a PHP file during the ordering process. This to me seems like the best option currently.
I want to manipulate the items in within the order and create a secondary output. How are items within the order stored? My first guess would be cookies, in which case I would have not thought I would have problem accessing these items using PHP code?
Comment