Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [request] Add to wishlist / basket
Carl, I would be glad to help with simplecart, but I can not get it working (and do not like it injecting some extra js into the page, but it’s paranoia). So I need your help. It has sendForm checkout method that we could try to use. Set it like this:
simpleCart({
checkout: {
type: "SendForm" ,
url: "checkout.php"
// url to return to on successful checkout, default is null
success: "success.php" ,
cancel: "success.php" ,
}
//...other options
});
and put <txp:php>session_start();</txp:php>
at the beginning of your page form. With checkout.php
being
<?php
session_start();
$_SESSION['post'] = json_encode($_POST);
return;
?>
and success.php
(on the same server) like
<?php
session_start();
echo "POST\n"; print_r($_POST);
echo "SESSION\n", $_SESSION['post'];
?>
If it brings something, we are at luck.
Last edited by etc (2012-09-18 17:55:39)
Offline