chrometweaks.org

Do free web iPage hosting services allow you to display Google AdSense Banners?

Click Here To View All Answers...


Got a question... Do free web iPage hosting services allow you to display Google AdSense Banners? Thanks for any response. Second question.. Just wondering if anyone has a solution to the tax not being displayed correctly on admin/orders.php and admin/invoice.php. It must be frustrating when a customer looks at their invoice and see's that our stores don't know how to calculate tax, especially since we show Price (ex) Price (inc) Total (ex) Total (inc), but it just defaults to the normal product price..

Http://www.oscommerc...munity/bugs,939.

This post has been edited by.

Talon177.

: 19 August 2004, 01:04..

Comments (78)

Good question... I dunno what is the answer to that question. I'll do some research and get back to you if I bump into an decent answer. You should email the people at iPage as they probably could give you help..

Comment #1

It's pretty wierd how this has been for so long, although the taxes everywhere else calculates correctly. This is the only place so far that I have seen that doesn't even add the tax in...

Comment #2

I took a look at this and if you set 'Display Prices w/ Tax' to true in Admin > Configuration > My Store, taxes are displayed correctly..

My sort order looks like this:.

Sub-Total: $37.95.

United States Postal Service (Parcel Post): $5.81.

NJ SALES TAX 6%: $2.63.

Total: $46.39.

If the issue is simply that when tax display is set to false, there are still column headings for Price(inc), that's any easy fix...

Comment #3

Here's a quick fix for the invoice display in admin if 'Display Prices w/ Tax' is set to false. Even if you have it set to true for now, it doesn't hurt to make these changes in case you change your mindlater..

Find:.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>.

Replace with:.

<?php if (DISPLAY_PRICE_WITH_TAX != 'false') { ?>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>.

<?php.

} else {.

?>.

       <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>.

       <td class="dataTableHeadingContent" align="right" colspan="4"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>.

<?php.

}.

?>.

Find:.

     echo '        <td class="dataTableContent" align="right" valign="top">'tep_display_tax_value($order->products[$i]['tax'])'%</td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n";.

Replace with:.

    if (DISPLAY_PRICE_WITH_TAX != 'false') {.

     echo '        <td class="dataTableContent" align="right" valign="top">'tep_display_tax_value($order->products[$i]['tax'])'%</td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n";.

    } else {.

     echo '        <td class="dataTableContent" align="right" valign="top" colspan="4"><b>'$currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n" ..

          '        <td class="dataTableContent" align="right" valign="top"><b>'$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value'])'</b></td>'"\n";.

    }..

Comment #4

Hey Daraven thanks for the info, what does Display Prices w/ Tax do? I thought it would make your entire store show prices with tax for customers that are in your tax area as well as fix the admin/invoice.php and admin/order.php..

Comment #5

Yep, it does. Really the core osC code should not change what is displayed in the catalog at all as it makes no sense. Regardless, that's the way it is. heh.

I have implemented the mod I posted above and have mine set to false. Most businesses (at least where I am, in the eastern part of the US).

Only.

Display tax at the bottom of the invoice/receipt so I have opted to go that way...

Comment #6

I have also used your mod above, with a few little changes, I kept the tax column in to show what got taxed and what didn't..

Thanks again, hopefully this will help others out with the same problem...

Comment #7

Just wondering if anyone has a solution to the tax not being displayed correctly on admin/orders.php and admin/invoice.php. It must be frustrating when a customer looks at their invoice and see's that our stores don't know how to calculate tax, especially since we show Price (ex) Price (inc) Total (ex) Total (inc), but it just defaults to the normal product price..

Http://www.oscommerc...munity/bugs,939.

This post has been edited by.

Talon177.

: 19 August 2004, 01:04..

Comment #8

I never even knew this issue existed as most of my sales are all out-of-state. The tax is not stored in the orders_total table though so at first glance, it looks like it could be quite the job. I can't believe this error even exists, but we're all only human, so mistakes can occur..

I'd also be interested in knowing if anyone has solved this before I get to work on it...

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.