Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search the Community

Showing results for tags 'tax calculation'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce v4.x
    • General Support
    • Migration from old osCommerce
    • Design and Templates
    • Apps / Add-ons
    • Translations
    • API and import/export
    • Marketplace integration
    • Manuals and How-to
    • Blog's discussion
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Commercial Support Inquiries
    • Developer Feedback

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. I added raiwas @@raiwa paypal invoice fix for PayPal standard. http://addons.oscommerce.com/info/8491 somehow the tax calculation doesn't seem to be right on the PayPal payment site. I ship domestic and international. International customers don't have to pay VAT here in my country so my shop and the PayPal module show everything correctly during the checkout and payment process. The problem starts when a domestic customer pays with PayPal. Here is the Layout in my Shop (checkout_confirmation.php page) Item 1 -> 1620 Yen Item 2 -> 1080 Yen ------------------------------ Sub-Total: 2700 Yen + Shipping 810 Yen ------------------------------ Total: 3510 Yen (incl. 8% VAT, 260 Yen) As you can see all prices are incl. 8% VAT the items, the shipping cost and at the end inside the brackets you see how much VAT is included in the total amount. Now PayPal shows me this Layout: Item 1 -> 1500 Yen Item 2 -> 1000 Yen ------------------------------ Sub-Total: 2500 Yen Tax: 260 Yen Shipping: 810 Yen ------------------------------ Total: 3570 Yen PayPal shows the item prices without VAT (which i don't mind) but later after the subtotal he adds 260 Yen VAT and additional shipping of 810 Yen (which includes 8% VAT again) So PP charges the VAT for the shipping cost twice that's why the 60 Yen price difference. He pulls the VAT of the total amount and the shipping cost. How to prevent this? I could turn of tax for the shipping cost in my shop but then the shop calculation would not be right. This following code is raiwas invoice fix (btw. thanks for that @@raiwa! :thumbsup: ) $parameters = array('cmd' => '_cart', 'upload' => '1', 'handling_cart' => $this->format_raw($order->info['shipping_cost']), 'shopping_url' => STORE_URL.'/'.FILENAME_STORE, 'tax_cart' => $this->format_raw($order->info['tax']), 'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID, 'currency_code' => $currency, 'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1), 'custom' => $customer_id, 'no_note' => '1', 'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false), 'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'), 'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'bn' => 'osCommerce22_Default_ST', 'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization')); for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $j = $i + 1; $attributes_description = ''; if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j2=0, $n2=sizeof($order->products[$i]['attributes']); $j2<$n2; $j2++) { $attributes_description = $attributes_description . " (" . $order->products[$i]['attributes'][$j2]['option'] . ': ' . $order->products[$i]['attributes'][$j2]['value'] . ")"; } } $parameters['item_name_'.$j] = $order->products[$i]['name'] . $attributes_description; $parameters['amount_'.$j] = $this->format_raw($order->products[$i]['final_price']); $parameters['quantity_'.$j] = $order->products[$i]['qty']; } and how can i change the Layout in the PayPal site? I would like to have the Tax part shown AFTER the shipping cost. Item Item ------------- Sub-total +shipping +tax ------------ Total Something like that. Kind regards Tsimi
×
×
  • Create New...