Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

drtduarte

Pioneers
  • Posts

    20
  • Joined

  • Last visited

Everything posted by drtduarte

  1. Hello there, I've read all the posts I could find about this error message, but it seems to be that my case is different. It's being really hard to find the problem... I'm using Paypal IPN V 2.3.3.0 11/17/2007. Any one can help me? Regards, David Duarte
  2. As I was thinking, just a stupid error :( I have added a piece of code instead of replacing the original, so I had a duplicated line of code, this was causing the issue. All tested and running now. Regards, David
  3. My discount coupon is applied this way Product price 345€ Discount 10% - 34,5 345-34,5=310,5 Than 310,5 is added to 345 so we get the subtotal of 655,5 :( Here you have my debug <!-- Discount Coupons DEBUG order Object ( [info] => Array ( [order_status] => 1 [currency] => EUR [currency_value] => 1.00000000 [payment_method] => Multibanco / Transferência Bancária [cc_type] => [cc_owner] => [cc_number] => [cc_expires] => [shipping_method] => Portes (Correio Expresso) [shipping_cost] => 10 [subtotal] => 655.5 [tax] => 0 [tax_groups] => Array ( [Taxa desconhecida] => 0 ) [comments] => [total] => 631 ) [totals] => Array ( ) [products] => Array ( [0] => Array ( [qty] => 1 [name] => TR4402 [model] => [tax] => 0 [tax_description] => Taxa desconhecida [price] => 345.0000 [final_price] => 345 [weight] => 0.00 [id] => 64 ) ) [customer] => Array ( [firstname] => David [street_address2] => 118 [telephone] => 789456123 [lastname] => Daniel [company] => [street_address] => Av. Rasosas [suburb] => [city] => London [postcode] => 2720 [state] => [zone_id] => 0 [country] => Array ( [id] => 171 [title] => PT [iso_code_2] => PT [iso_code_3] => PRT ) [format_id] => 1 [email_address] => [email protected] ) [delivery] => Array ( [firstname] => David [street_address2] => 118 [telephone] => 789456123 [lastname] => Daniel [company] => [street_address] => Av. Rosas [suburb] => [city] => london [postcode] => 2720 [state] => [zone_id] => 0 [country] => Array ( [id] => 171 [title] => PT [iso_code_2] => PT [iso_code_3] => PRT ) [country_id] => 171 [format_id] => 1 ) [content_type] => physical [coupon] => discount_coupon Object ( [messages] => Array ( [debug] => Array ( [0] => INFO: DISPLAY_PRICE_WITH_TAX = false [1] => INFO: MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING = false [2] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS = true [3] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_SORT_ORDER = 2 [4] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TYPE = true [5] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL = false [6] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TAX = None [7] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_EXCLUDE_SPECIALS = true [8] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_RANDOM_CODE_LENGTH = 6 [9] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_LINES = false [10] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_ALLOW_NEGATIVE = false [11] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_USE_LANGUAGE_FILE = true [12] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_CONFIG = Valor do Desconto [13] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG = true [14] => INFO: Product 64 passed exclusion check. Discount 34.5 applied. (percent) [15] => INFO: Discount of 34.5 applied to product 64 ($345). [16] => INFO: Calculating tax on 310.5. Displayed price 310.5. [17] => INFO: Discount of 34.5 applied to order total. ) ) [coupon] => Array ( [coupons_id] => TESTE [coupons_description] => Teste [coupons_discount_amount] => 0.100000000000 [coupons_discount_type] => percent [coupons_date_start] => [coupons_date_end] => [coupons_max_use] => 0 [coupons_min_order] => 0.0000 [coupons_min_order_type] => [coupons_number_available] => 0 ) [applied_discount] => Array ( [Taxa desconhecida] => 34.5 ) [cart_info] => Array ( [valid_products] => Array ( [count] => 1 [line_items] => 1 [total] => 345 ) [total_products] => Array ( [count] => 1 [line_items] => 1 [total] => 345 ) [exclusions] => Array ( [categories] => Array ( ) [products] => Array ( ) [manufacturers] => Array ( ) ) ) [discount_tax] => Array ( [Taxa desconhecida] => 0 ) ) [billing] => Array ( [firstname] => David [street_address2] => 118 [telephone] => 789456123 [lastname] => Daniel [company] => [street_address] => Av. Rosas [suburb] => [city] => London [postcode] => 2720 [state] => [zone_id] => 0 [country] => Array ( [id] => 171 [title] => Portugal [iso_code_2] => PT [iso_code_3] => PRT ) [country_id] => 171 [format_id] => 1 ) ) End Discount Coupons DEBUG-->
  4. Hello Charles, Thanks for your help However my problem is different, the discount is not applied at all, the instead it is ++ to the amount... Regards, David
  5. Hello to all, I have installed this contribution and everything is working except that the discount is being added to the subtotal... Any idea of what could it be? Regards, David
  6. drtduarte

    Payed Service

    Hello to all, I have paypal web standard working very well. Just had to add some code to pass the paypal bug of last week. Now one thing that I'm not able to get done, is to have the order totals + discount sent on the order confirmation email. I will pay $20 for this. Regards David
  7. I've been using this method for a while, as if costumers don't click the "Return to Merchant" button at paypal, I don't get the email confirmation with all details needed as order comments. I just can't have the order total including shipping costs sent on the email even using the same code that checkout_process uses for this. Now using Pending Order Emails http://www.oscommerce.com/community/contributions,3539 I have the same problem with the confirmation email sent if the costumer clicks the "Return to Merchant" button. Using PayPal Website Payments Standard http://addons.oscommerce.com/info/5655/v,22 If someone can help me... Thanks Regards David
  8. Thank you for your help. Actually I'm using contribution 5199, who works like this: If a user selects paypal payment after confirmation.php he goes to confirmation2.php, here an email is sent with subject "Pending Order" only to the store admin with all the order information, the products, the order comments everything. On the original version, at this step the order is recorded into the database, but this as a problem, if the user doesn't pay, the order stays on the database and this could fill the database with invalid orders. So I have changed some code, and now confirmation2.php only sends the email with subject "Pending Order" that contains all the order details, if the user doesn't pay, there is no problem and no order is created, if the user pays and forget to click on "Return to merchat", the store admin gets the paypal email and has the pending order email with all the details that he can use to finish the order on the user account using the master password. This is the easiest and cleanest system that I could imagine. The problem of order not recorded after clicking on the "Return to merchant" was several lines of code on confirmation2.php that where kintroduced to avoid orders duplication: // 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'); But as I don't insert orders on this step, I don't need this code. Thanks for your help. Regards David
  9. The paypal module that I'm using doesn't have any return link to set, it's the default module I guess. But this as always worked fine until know. Did paypal did any changes this last month?
  10. Dear Frieds, I have a store that was working like a charm until August. Now when a user clicks on the return to "Storename" button he is redirected to the file checkout_process.php but this file is redirected to the file checkout_shipping.php and the user shopping cart is not emptied and the order is not inserted on the database. I'm sure that this was working before, anyone more is having this issue?? Why is this happening??? Please if someone can help?
  11. I'm using this great contribution and it is working very well. I just have two problems, 1 - When users select to pay with paypal ipn, orders get duplicated, for what I have read on google, its because when the user returns to the store after paypal payment, the order is created a second time and stays with status "preparing paypal ipn". 2 - I don't receive the order comments on the order email, i guess this is because the order comment is on a database fied that is not included on the first costumer notification. If anyone has a fix for this, I'll apreciate, I'm now using the old paypal module again. Using the latest IPN V 2.2
  12. Hello dear friends, I have a flower store and I have my oscommerce full of contributions, they are all working very well. My first problem is with the Paypal IPN V. 1.0, as the order comment field (like others) is stored on the database before the order is payed. When the order confirmation email is sent, the costumer order comments are not included on the order email. Any idea on how to fix this?
  13. Well after all I put all like it was on the checkout_shipping and changed only the module file. if ($extraship_cost <= 0 || $total_weight <= 0) { $error = true; } else { $shipping_cost = $extraship_cost; $shipping_method = MODULE_SHIPPING_EXTRASHIP_TEXT_WAY . ' ' . $dest_shipping . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_EXTRASHIP_TEXT_UNITS; } The new code: if ($extraship_cost <= 0 || $total_weight <= 0) { $shipping_cost = $extraship_cost; $shipping_method = '<b>' . $dest_postcode . ' </b>' . MODULE_SHIPPING_EXTRASHIP_TEXT_WITHOUT; } else { $shipping_cost = $extraship_cost; $shipping_method = $dest_postcode . ' = ' . $shipping_cost . ' ' . MODULE_SHIPPING_EXTRASHIP_TEXT_UNITS; You pointed me on the right direction aniway. Thanks a lot. Take care David
  14. Well after all I put all like it was and changed only the module file. if ($extraship_cost <= 0 || $total_weight <= 0) { $error = true; } else { $shipping_cost = $extraship_cost; $shipping_method = MODULE_SHIPPING_EXTRASHIP_TEXT_WAY . ' ' . $dest_shipping . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_EXTRASHIP_TEXT_UNITS; } The new code: if ($extraship_cost <= 0 || $total_weight <= 0) { $shipping_cost = $extraship_cost; $shipping_method = '<b>' . $dest_postcode . ' </b>' . MODULE_SHIPPING_EXTRASHIP_TEXT_WITHOUT; } else { $shipping_cost = $extraship_cost; $shipping_method = $dest_postcode . ' = ' . $shipping_cost . ' ' . MODULE_SHIPPING_EXTRASHIP_TEXT_UNITS; }
  15. Hi there friend, If you can, please take a look to this post: http://www.oscommerce.com/forums/index.php?showtopic=248033 I'm trying to do something like what you wanted but with another module. I want to charge a fee to certain zip code ranges and not to other zip ranges. The problem is that the module that I'm using does not allow me to checkout with 0 cost. I have changed the original checkout_shipping.php to use the free_shipping option if the cost value is 0, but I don't know wich variable or array to use on that place, I know that you know what you'r doing on this kind of coding so if you can give me a hand i'll apreciate. Waiting for your reply, I send you my best regards David
  16. Dear Friends, I have spent several hours trying to discover how to use the extraship contribution to charge a fee for certain post codes, and to not charge anything to others. The module allows to configure post code ranges for certain prices, example post codes: 1000;1500;2000;2500 prices: 10,00;20,00;30,00;40,00 The problem is that I want to have some post codes with 0 cost, but If I configure one post code to 0 cost, I can't go on to the next step on checkout_shipping.php, I only can go on if I configure the checkout_shipping.php to allow free shipping, so I have trye to set up an If statement here: if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { $pass = false; switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) { $pass = true; } break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) { $pass = true; } break; case 'both': $pass = true; break; } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { if ($shipping_cost = 0) { $free_shipping = true;} else { $free_shipping = false;}} This statement works fine, cause if I change to "> 0" it uses the shipping module and adds the shipping cost, if I use "= 0" it allows free shipping. The problem is that the $shipping_cost variable is empty, so the value is allways 0. This variable comes from the extrashipping module, and I guess that it is only loaded after this statement cause it apears on the html output. If anyone can help me to get this variable from the shipping module, or with another way to do this I'll apreciate. Regards David
×
×
  • Create New...