Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Searched and No help - tax, paypal


umnitza

Recommended Posts

I've got two issues:

 

1) I can't get into Wiki documentation to figure out why EVERYONE is getting CA taxed.

 

2) I can't figure out how to make the product information get passed to Paypal instead of a payment for "store name".

 

Could someone lead me to some threads or provide me with some guidance?

Link to comment
Share on other sites

1. I can't help with this one...

 

2. Just in case someone doesn't click continue to get back to your site

here is a mod to include into your PayPal module to you can see what the customer ordered on your PayPal payment notification (just in case they don't return to your site to complete the process and generate an invoice) -

 

BACK UP BACK UP BACK UP

 

change the following code:

 

function process_button() {

global $order, $currencies, $currency;

 

if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {

$my_currency = $currency;

} else {

$my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);

}

if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {

$my_currency = 'USD';

}

$xx = '';

for ($i=0; $i<sizeof($order->products); $i++) {

$xx .= $order->products[$i]['qty'] . '-' . ($order->products[$i]['name']) . '**';

}

$process_button_string = tep_draw_hidden_field('cmd', '_xclick') .

tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) .

tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

tep_draw_hidden_field('currency_code', $my_currency) .

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

 

return $process_button_string;

}

 

 

the above code snippet replaces the code snippet in the catalog/includes/modules/payment/paypal.php file

 

look for

 

function process_button() {

 

and then copy and paste and replace that section of code with the code above

Link to comment
Share on other sites

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

someone fixed the Wiki documentation from last night.

So I couldn't see it.

 

Thanks. Mr. Curmungeon. :P

Link to comment
Share on other sites

I guess that's that kind of thanks I get for offering an hand.

 

I keep that in mind the next time you ask a question.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I guess that's that kind of thanks I get for offering an hand.

 

I keep that in mind the next time you ask a question.

Actually, I do indeed owe you an apology and thanks:)

 

See, the issue was Wiki wasn't live.

 

But there was one key step that was left out of all the instructions.

Because OScommerce setup is designed to allow you to click and click again to get either properties for the object or go to the next "branch" down, I had misunderstood that you still needed to add CA under one of the headings.

 

It's still charging tax on shipping, but that's less worrisome and I haven't spent any time looking for it yet.

 

Again, thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...