I have found how to have it work, for the people here that are trying to redeem their points and can not.
well, here it is:
The readme stated that the contributor had the redemptions store as a parallel store, and that gave me a hint of the source of the following $_SESSION variable, ie $_SESSION['cot_redemptions'] in the OT_REDEMPTIONS.PHP file.
This seems to indicate that the actual session is "special" somehow. Probably a tweak for the parallel store.
So, I disabled the checks for the 4 if ($_SESSION['cot_redemptions'])
simply by adding a NOT operator. it is now
(!$_SESSION['cot_redemptions']) (note the"!" - NOT operator)
and I can redeem my points.
Be aware that there is a ill written form at one place, where it is actually spelled "$SESSION", with no underscore. you must change this one too.
You also might want to change an other place where it checks if the products is redeemable by the model name. In the same file (OT_REDEMPTIONS.PHP), function selection_test()
change
if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION'))
{
return false;
}
for
if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION'))
{
return true;
}
Now, I understand that this is not pretty, and does not reflect good coding practices. But it works, and as I'm short on time, I'll leave it that way and maybe recode it later in a more fashionable way. I just wanted to let people here that I had found a way to have it work.
Bye,
Spou