Page 1 of 1

Taxes & HTTPS handling

PostPosted: Fri Aug 17, 2012 6:30 pm
by jameyaustad@.....com
We're having 2 serious issues with this component.

1. It seems like taxes are being calculated twice. On an order with a subtotal of $99 at the top, the bottom shows:

Subtotal$105.82
Coupon Discount-$9.90
Shipping and Handling Fee$9.95
Tax Total(7.65%)$6.82
Total: $105.11

How did the subtotal go from $99 to $105.82? And how can we disable this? We currently have the extended classes installed. Tried it both ways actually.

2. Viewing cart properly switches to https but all the links to the store are also https - Virtuemart has a setting to generally prevent https on areas outside of checkout but this component seems to override this. We don't want the entire store to be https after you go to the checkout page. Many customers will want to continue shopping and shopping in https is not desired.

Otherwise, great job on this component.

Re: Taxes & HTTPS handling

PostPosted: Mon Aug 20, 2012 3:12 pm
by admin
Hello,
regarding the https, you can enable "use SSL everywhere possible on checkout" within the OPC backend configuration AND you can leave prevent https generally turned ON in Virtuemart - this should solve the issues with all https.

Regarding the taxes in certain tax setups we are investingation a bug related to double taxation when a coupon is used. For now i'd recommend to change this code within this file which should fix your issue:

line 1857 in \administrator\components\com_onepage\vm_files\ps_checkout_ext.php

Code: Select all
// in OPC payment and shipping is always with tax, therefore there is no need to add it again
      if ($d['order_subtotal_withtax'] != $totals['order_subtotal'])


Change it to:
Code: Select all
// in OPC payment and shipping is always with tax, therefore there is no need to add it again
      if ((false) && ($d['order_subtotal_withtax'] != $totals['order_subtotal']))


we will investigate this bug as it is very complicated to create one handler for all tax systems.

Re: Taxes & HTTPS handling

PostPosted: Tue Aug 21, 2012 9:21 pm
by jameyaustad@.....com
Thanks! That did the trick.