chrometweaks.org

Help! Who is good at iPage and building an own website?

Click Here To View All Answers...


First of all Help! Who is good at iPage and building an own website? Looking forward for any answer or 2. Second question of mine... I got a real problem...

When a customer buys a product the price is with taxes, but when the customer logging in to buy the products the tax dissapear from the price..

Is there somenone that can help me with this??..

Comments (31)

I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some research and get back to you if I find an useful answer. You should email the people at iPage as they probably can answer it..

Comment #1

Yeah, there's a four/five liner, you can steal from my site, goto the index.

Here.

And look through the source, it's really really transparent.!!!.

Oh, here's an example without variables!!.

<script type="text/javascript">.

Price = "255.24".

Price = price.substr( 1 ).

Price *= 1.175.

Price = Math.ceil( price * 100 ) / 100.

Pounds = Math.floor( price );.

Tenths = Math.floor( price * 10 ) % 10;.

Hundredths = Math.floor( price * 100 ) % 10;.

Document.write( "Price (inc VAT) " + pounds + "." );.

Document.write( tenths );.

Document.write( hundredths );.

</script>.

BUT IT ONLY works fro rpcies less than 1000 or $1000 dollar, you know what I mean. You can fix I though...

Comment #2

Thanks for the help..

I have tried to get your code to work but I havent figured out how to get the price into the code..

And I dont uses or $ I uses KR (Norsk) Does it work on that to??.

Regards.

Thomas..

Comment #3

It shouldn't matter what currency you're using. To input variable prices into there, you'll have to use something like $product_info['products_price'] as your variable. The exact wording of that varies depending on which file you're using. Try to find another place in that same file where the price is listed, then copy and paste...

Comment #4

I figured it out, but the calculation doesnt work for me..

This is what I have wrote.

<script type="text/javascript">.

Price = "<?php echo $product_info['products_price']; ?>".

Price = price.substr( 1 ).

Price *=1.24.

Price = Math.ceil( price * 100 ) / 100.

Pounds = Math.floor( price );.

Tenths = Math.floor( price * 10 ) % 10;.

Hundredths = Math.floor( price * 100 ) % 10;.

Document.write( "Price (inc VAT) " + pounds + "." );.

Document.write( tenths );.

Document.write( hundredths );.

</script>.

If the price is 1040 ecsl vat the price inc vat is 50.01.

But this isnt right it's 1290. What is wrong here?.

Thanks for all the help I get from you....

Comment #5

I am having the same problem, can anyone help??..

Comment #6

Check to see if the last line of admin/configuration/my store show products with prices is set to true.......

Comment #7

Display Prices with Tax is set to true.

When a person browses the iPage site as a guest, the tax prices appear correctly. But, when they login as a Canadian customer(I followed the Canada Tax Zones Setup contribution), all the taxes dissapear. I followed the setup three times and i'm certain I followed it precisely. For more information, check my posts in.

Http://forums.oscommerce.com/index.php?showtopic=39636&st;=20.

Thanks..

Comment #8

Jack,.

If you have tax zones setup when you look at them in admin you should see a folder at the left edge of each tax zone line you have created. Click on that folder, when it opens if it is empty(no lines) click insert and supply the data, update, go back. Do that for each tax zone you have...

Comment #9

Bloodshoteyes, i've already done that..

For Canada GST Zone.

- Country: Canada; Zone: Alberta.

- Country: Canada; Zone: British Columbia.

- Country: Canada; Zone: Manitoba.

- Country: Canada; Zone: Northwest Territories.

- Country: Canada; Zone: Nunavut.

- Country: Canada; Zone: Ontario.

- Country: Canada; Zone: Prince Edward Island.

- Country: Canada; Zone: Quebec.

- Country: Canada; Zone: Saskatchewan.

- Country: Canada; Zone: Yukon Territory.

For Ontario PST Zone.

- Country: Canada.

- Zone: Ontario.

And for HST Tax Zone.

- Country: Canada; Zone: Nova Scotia.

- Country: Canada; Zone: New Brunswick.

- Country: Canada; Zone: Newfoundland.

I've also added the classes and rates. Then I added the class to the product..

Any other ideas?..

Comment #10

I got a real problem...

When a customer buys a product the price is with taxes, but when the customer logging in to buy the products the tax dissapear from the price..

Is there somenone that can help me with this??..

Comment #11

You need to take a look at how your zones are set up - make sure the taxes are set to the right one. When the customer logs in osCommerce realized that he is not in the zone where tax is charged, so the taxes go away...

Comment #12


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