@@fnzb
thanks for the reply. the vouchers are already defined with both a product name and product model that are prefixed with "GIFT" (ie GIFT50, GIFT25, etc).
I have diffed all the files between the module source files (NEW_FILES and FILES_TO_MODIFY) and those installed and both are indentical.
I have turned on database queries in the logging but there is nothing that goes near the coupon_gv_table. I can see the order inserted and the product stock quantity is decremented. I have also manually checked the value of the configuration key 'MODULE_ORDER_TOTAL_GV_QUEUE' which is set to true.
I tried adding some debug to ot_gv.php but this method did not look like it was being called, or i was not looking at the right place for output in the browser
function update_credit_account($i, $order_id=0) {
global $order, $customer_id, $insert_id, $REMOTE_ADDR;
print ("in update_credit_account");
if (!$order_id) $order_id = $insert_id;
print ("100");
if (preg_match('/^GIFT/', addslashes($order->products[$i]['model']))) {
print ("101");
$gv_order_amount = ($order->products[$i]['final_price'] * $order->products[$i]['qty']);
if ($this->credit_tax=='true') $gv_order_amount = $gv_order_amount * (100 + $order->products[$i]['tax']) / 100;
$gv_order_amount = $gv_order_amount * 100 / 100;
print ("102");
if (MODULE_ORDER_TOTAL_GV_QUEUE == 'false') {
print ("103");
...
} else {
print ("104");
$gv_insert=tep_db_query("insert into " . TABLE_COUPON_GV_QUEUE . " (customer_id, order_id, amount, date_created, ipaddr) values ('" . $customer_id . "', '" . $insert_id . "', '" . $gv_order_amount . "', NOW(), '" . $REMOTE_ADDR . "')");
Is there some configuration to check that the module is correctly installed?
I have also noticed that if I have manually sent a store credit and redeemed it, it is available at checkout and can be correctly applied to a purchase, but the store credit isn't removed once used. It's available for subsequent purchases!
??
thanks
paul