Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

windfjf

Members
  • Content count

    9
  • Joined

  • Last visited

  1. windfjf

    Official PayPal IPN Support Thread

    I think it probably can use same variables of "GET" . I have to amend it so that the contribution "Discount coupon codes" can be used together and paypal_ipn.
  2. windfjf

    Official PayPal IPN Support Thread

    correct the situation ----- paypal_ipn : 1. no pay -- status: preparing IPN , stock is not deducted 2.paid -- status: changed , stock is not deducted 3. paid and return ---status: changed , stock is deducted
  3. windfjf

    Official PayPal IPN Support Thread

    change: (about #451 in V1.4 /include/modules/payment/paypal_ipn.php ) include(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); $order_id = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1); $sql_data_array = array('orders_id' => $order_id, 'orders_status_id' => $order->info['order_status'], 'date_added' => 'now()', 'customer_notified' => (SEND_EMAILS == 'true') ? '1' : '0', 'comments' => $order->info['comments']); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); to: include(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); $order_id = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1); $sql_data_array = array('orders_id' => $order_id, 'orders_status_id' => ((MODULE_PAYMENT_PAYPAL_IPN_ORDER_STATUS_ID > 0) ? MODULE_PAYMENT_PAYPAL_IPN_ORDER_STATUS_ID : DEFAULT_ORDERS_STATUS_ID), 'date_added' => 'now()', 'customer_notified' => (SEND_EMAILS == 'true') ? '1' : '0', 'comments' => $order->info['comments']); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
  4. windfjf

    Official PayPal IPN Support Thread

    I uploaded a complete file package of V1.4 . http://www.oscommerce.com/community/contributions,2679 The install_guide of V1.4 is the same as V1.3.
  5. windfjf

    Official PayPal IPN Support Thread

    You welcome! :D I have tested,it work fine
  6. Thank you very much. I see now.The "Fixed Discount" field in coupons.php is for convenience only. otherwise, Do you have plan improve this module allows to set discount for specifically products or categories ?
  7. perhaps needs add a variable in table osc_discount_coupons distinguish "Desired Fixed Discount " from " Percent Discount". discount_method: =0 -- Percent Discount =1 -- Desired Fixed Discount and add a exclusive opt. in /admin/coupons.php when insert a new Discount Coupons.
  8. thanks, I think there's the other bug in /admin/coupons.php about 194: "if( !empty( $cInfo->coupons_max_order ) && !empty( $cInfo->coupons_min_order ) && $cInfo->coupons_max_order == $cInfo->coupons_min_order ) { $fixed_discount = $cInfo->coupons_discount_percent * $cInfo->coupons_max_order; }" It's for get $fixed_discount . when : I use Percent Discount:0.1 , and Min Order=Max Order =20 then: Desired Fixed Discount=2 (It's wrong,should be nothing) so : I want to use "Percent Discount", but actually I ues Desired Fixed Discount when Min Order=Max Order . sorry my English.
  9. me too. Fatal error: Cannot redeclare class discount_coupon in /www/includes/classes/discount_coupon.php on line 14
×