Please Help : SCC Disabling PayPal...

User 514222 Photo


Registered User
11 posts

Hi: It is vital that we collect sales tax for same state purchases. I have set the state setting but clients aren't always using it so . I set up sales tax on PayPal. The PayPal techs were very helpful and I must surpress some paypal button out put. Here is the repsonse from PayPal:


Tax rates are being applied on the following lines of code from above and will need to be removed if you want the tax rates on your account to be utilized.:

<input type="hidden" name="tax_1" value="0.00" />
<input type="hidden" name="tax_2" value="0" />
<input type="hidden" name="tax_cart" value="0.00" />

How or Where can I remove this code from being sent.

Thanks! Frank
User 103173 Photo


VP of Software Development
0 posts

I am sorry Frank, but all that is hard coded into the program and there is no way to remove that without editing the php scripts manually.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 514222 Photo


Registered User
11 posts

Hi;

Thanks for the prompt reply!

I was fully expected to be editing the php scripts. Was hoping you could tell
me Which file(s)?

Thanks!
User 103173 Photo


VP of Software Development
0 posts

To be honest, I really wouldn't know. You may have to hunt and peck around to find it unless someone else here has maybe already done this before.

Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 514222 Photo


Registered User
11 posts

:( Anyone in the community care to chip in ?

Thanks, Frank (loyal coffee cup customer since 2/2008)
User 427108 Photo


Registered User
292 posts

You change manually the code but everytime you make changes (add a product for example) you will need make the changes again.
Beginning of SCC i use this techinc to remove the coffecup logo and i give up...
Regards
Jimmy The Sailor
http://www.jimmythesailor.net (trying to show my photos)
http://www.art-i-batik.com (my wife's gallery)
User 514222 Photo


Registered User
11 posts

Yes true of adding products but I have made over 50 code changes and the PHP classes stay intact for the most part.

For any one else who needs this tweak , I have found the code.

And the Answer is ....

File:

ccdata/php/checkoutpps.cls.php

Comment out Variable Assignment code blocks at:

line 100:

$nvp .= '<input type="hidden" name="tax_' . $this->lineNum . '" value="'
. number_format( $this->cart->getTotalTaxAmountProduct($cid) /
$this->cart->getUnitsOfProduct($cid) /
100, 2, '.', '' )
. '" />';


line 132:

$nvp .= '<input type="hidden" name="tax_' . $this->lineNum . '" value="'
. $this->cart->getTaxAmountExtraShipping() . '" />';


line 141:

$nvp .= '<input type="hidden" name="tax_cart" value="'
. number_format( $this->cart->getTotalTax() / 100, 2, '.', '' )
. '" />';

Cheers,
Frank
User 147665 Photo


Ambassador
712 posts

Thanks Frank, this will be a useful hack. I have been wondering how to handle this situation myself when it comes up..

User 427108 Photo


Registered User
292 posts

Thanks Franks
Nice work
Jimmy The Sailor
http://www.jimmythesailor.net (trying to show my photos)
http://www.art-i-batik.com (my wife's gallery)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.