View Single Post
Old August 30th, 2012, 10:14 AM
dhilditch dhilditch is offline
Join Date: Feb 2012
Location: In my house
Posts: 108

Hi Eric,

This didn't help. I tried variations too:

<?echo $s->coupon_info($product->id, 'code'); ?>

It's odd that [] and [product.merchant] work but [product.description] returns 0 - if that were working I could run some split code over the coupon description like this I think:

$coupontokens = split(";", str_replace("]", "", str_replace("[", "", $product->description)));
$couponends = split(":", $coupontokens[1])[1];
$couponcode = split(":", $coupontokens[2])[1];