Has anyone succesfully implemented a voucher redemption scheme on their Cat 6 website?
Announcement
Collapse
No announcement yet.
Vouchers
Collapse
X
-
Yes, I did but that's called v7.
Probably this can also be implemented in v6 by using referrer.pl and doing some customisation on AdjustmentTamplate.pl. I would modify the sub CalculateOrderAdjustment of AdjustmentTamplate.pl and change the line
to have something likeCode:if($sKey =~ /^ORDER_ADJUST_/)
If my guess is correct then then your discount will only be active if your site is accessed by using referrer.pl and the specified voucher code.Code:my ($nStatus, $sMsg, $sReferrer) = ACTINIC::GetReferrerCookie($ENV{'HTTP_COOKIE'}); if ($sKey =~ /^ORDER_ADJUST_/ && $sReferrer eq "MyVoucher")
Please note it is just a guess and I couldn't test this in lack of time. But you can try this on your own responsibility. I hope this helps anyway.
Regards,
Comment