Search the Community
Showing results for tags 'discount code'.
-
This is the support forum for: PayPal Express Checkout for Discount and Extra Fee Order Total Modules by Bernhard Bauer and @raiwa http://addons.oscommerce.com/info/8848 This Add-On will include discount and extra fee quantities to the PayPal payment. The included file will work for the following Order Total modules: ot_loworderfee included in standard OsCommerce 2.2. and 2.3. Stores Quantity Discounts by That Software Guy (OSC 2.3.) http://addons.oscommerce.com/info/7881 or Quantity Discounts by That Software Guy (OSC 2.2. http://addons.oscommerce.com/info/6751 Discount Code v3.1 http://addons.oscommerce.com/info/7397 (OSC 2.2.) or http://addons.oscommerce.com/info/7700 (OSC 2.3.) This PayPal Express Checkout module can be modified to work with other Order Total modules too.
- 25 replies
-
- paypal express checkout
- ot_loworderfee
- (and 5 more)
-
I implemented the discount code module for an osCommerce Online Merchant v2.3.1 running on Mac Highway. Everything is setup according to the readme.txt for the module. I have reviewed the changes several times and it all looks correct. The module looks and seems to function correctly in the admin panel - I can add/edit/delete new codes, and the module looks correct in the store system, but when I enter the discount code into the field during checkout process, it always comes back with a response code of 0. Has anyone run into this? I can't seem to find any debugging tools or logs to see what is going wrong...
-
Discount Code currency error in paypal express on osc 2.3.1
Guest posted a topic in Order Total Modules
I've installed on a clean osc 2.3.1 the discount code for 2.3.1 (last version 3.1 + paypal support http://addons.oscommerce.com/info/7700). When I try to pay using paypal express checkout, paypal ask me to pay in $ rather than in €. For example I spend 10€ - 3€ discount = 7$ and not 7€! I think the express checkout module modifies in http://addons.oscommerce.com/info/7700 loose by the way the currency settings. Is there somebody that have this problem too? May be it happens with all currencies that aren't dollar. Thanks to all- 3 replies
-
- discount code
- paypal
-
(and 3 more)
Tagged with:
-
Hii All Im using osCommerce 2.2-MS2 with osCommerce_PayPal_IPN_v2.3.3 and KGT Discount coupon code module dc_autoinstaller_2.14_2_1 And i did some changes found on forum. But still my discount amount does not transfer to paypal. It shows total amount without applying Discount percentage. When i try with bank transfer payment method it shows correct amount. If i used paypal payment method after first using bank transfer payment method, then paypal also shows correct discounted total amount. But if i try paypal as a payment method at the first place, it doesnt show discounted total. I tried installing different paypal IPNs and discount module versions. But still my problem same. If you guys have any idea how to fix this error please help me. i really appriciate any level of help. Thank you so much in advance. ----------------------------------------------------- i did following changes. ----------------------------------------------------- 1) I selected aggregate instead of individual On transaction type. 2) FIND around line 195: //+1.4 $sql_data_array = array('orders_id' => $insert_id, 'orders_status_id' => $order->info['order_status'], 'date_added' => 'now()', 'customer_notified' => '0', 'comments' => $order->info['comments']); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); //-1.4 ADD this code after: //kgt - discount coupons if( tep_session_is_registered( 'coupon' ) && is_object( $order->coupon ) ) { $sql_data_array = array( 'coupons_id' => $order->coupon->coupon['coupons_id'], 'orders_id' => $insert_id ); tep_db_perform( TABLE_DISCOUNT_COUPONS_TO_ORDERS, $sql_data_array ); } //end kgt - discount coupons FIND around line 493: // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); ADD this code after: //kgt - discount coupons tep_session_unregister('coupon'); //end kgt - discount coupons 3) FOLLOWING CODE: if(MOVE_TAX_TO_TOTAL_AMOUNT == 'True') { $parameters['amount'] = number_format(($subtotal + $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } else { // default $parameters['amount'] = number_format($subtotal * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); $parameters['tax'] = number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } Updated to THIS : if(MOVE_TAX_TO_TOTAL_AMOUNT == 'True') { if (isset($order_total['ot_gv']) || isset($order_total['ot_coupon'])) { //the discount will apply to the order total $parameters['amount'] = number_format((($subtotal + $order->info['tax'] + $shipping) * $currencies->get_value($my_currency)) - $order_total['ot_gv'] - $order_total['ot_coupon'], $currencies->get_decimal_places($my_currency)); }else{ $parameters['amount'] = number_format(($subtotal + $order->info['tax'] + $shipping) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } } else { // default $parameters['amount'] = number_format(($subtotal + $shipping) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); $parameters['tax'] = number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); }