Announcement

Collapse
No announcement yet.

Vouchers

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

    Vouchers

    Has anyone succesfully implemented a voucher redemption scheme on their Cat 6 website?

    #2
    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
    Code:
    if($sKey =~ /^ORDER_ADJUST_/)
    to have something like
    Code:
    		my ($nStatus, $sMsg, $sReferrer) = ACTINIC::GetReferrerCookie($ENV{'HTTP_COOKIE'});		
    		if ($sKey =~ /^ORDER_ADJUST_/ &&
    		   $sReferrer eq "MyVoucher")
    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.
    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,
    Zoltan
    Actinic Software
    www.actinic.co.uk

    Comment


      #3
      I think I'll wait for V7, as I understand this will include a voucher processing facility.....

      Thanks for the advice anyway.

      Mark

      Comment

      Working...
      X