Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

paulwarwicker

Pioneers
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    Paul Warwicker

paulwarwicker's Achievements

  1. cant edit my previous reply, but i have just noticed that removing the redirect causes two orders to appear so is not a solution. anyway it seems less a problem with ccgv and more a problem integrating with paypal standard. Unless anyone else has experienced this before, I guess I'm going to have to duplicate a chunk of code. paul
  2. @fnzb I have found the problem. After some extensive debugging I have found that the call to $payment_modules->before_process() in checkout_process.php never returns so the gv queue code in checkout_process.php is never run. I am using the paypal standard payment module. In the file includes/modules/payment/paypal_standard.php the last line of the method before_process() is to redirect the browser session. If I comment out the redirect, I get the gift voucher added to the queue and it resolves the problem about the credit remaining after use. Ultimately I appear to be redirected to checkout_success.php so everything appears to be normal. includes/modules/payment/paypal_standard.php::before_process() tep_session_unregister('cart_PayPal_Standard_ID'); //tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); } Hope this helps someone in future paul
  3. @@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
  4. hello. i'm new to oscommerce and e-commerce in general. i have a clean 2.3.1 install and now have this module installed. i can purchase a gift voucher and pay for it via the paypal sandbox, but i never see anything appear in the gift voucher queue. it appears as though the order has been processed, with order status processing. also if i email a gift certificate from the admin console, i can redeem it and apply the credit to a subsequent purchase, so i think the module is functioning correctly apart from the gv queue. I have run the script order_total_gv.sql Store Credit Display Total true Sort Order 8 Queue Purchases true Include Shipping false Include Tax true Re-calculate Tax Credit Note Tax Class --none-- Credit including Tax true Modules Sort Order Action Discount Coupons 9 StoreCredit 8 Shipping 2 Sub-Total 1 Tax 3 Total 10 is there some specific order tracing I can look at? any help appreciated as i'm now completely stuck.
×
×
  • Create New...