Finishing my project

Thread began 11/10/2009 1:54 pm by info323054 | Last modified 11/11/2009 12:42 am by info323054 | 1377 views | 3 replies |

11/10/2009 1:54 pm  |  #1 info323054

Finishing my project

Dear Jason,

Thanks to your code, now the cart shows both the Tax row and the Shipping cost row. Thank you so much.

Please, I need to solve these four goals:

Tax Calculation:
The formula we wrote: ([Price] - ([Price] * \$_SESSION['tax'])) * [Quantity] does not work properly because of this. For instance, lets start by a price of 109 euros that has a 16% tax rate included. In order to get the base price of it, we have to divide 109 by 1.16 and it gives you the base price of 93,96 euros. Consequently, the tax value that must show the cart should be the difference between 109 and 93,96.
If we follow the formula ([Price] - ([Price] * \$_SESSION['tax'])) * [Quantity] the base Price that gives us is 91,56, which is not correct.
Considering that the calculation is made on 0.16, which is what appears on the database table, how sould be the formula for this to work fine?

I have applied Universal Email to the confirm page, but when the shopper reaches that page, a message with the order details is sent to the shopper. It is okay, but it is sent just when the shopper arrives at the confirm page, not when the order has been paid. If the customer does not press the button Submit Now, the order is sent anyway, but it shouldnâ€™t until the cutomer has paid. How can I make the email is sent once the shopper has paid? I do not use local checkout. The payment process takes place at the Banks page.

Cart empty
I think that the cart should get emptly once the buying has been done. How can I clean all sessions in order to get the cart emptly once the shopper has paid?

Order ID
I think the session_id records the order id on the email that is sent by the Universal Email message, but instead of sending the order id, that should be, 1, 2, 3 etc. (that is what it is recorded on the databse), it sends a strange long character. How can I make it send the proper Order ID?

11/10/2009 2:35 pm  |  #2 simon167250

Tax calculation part

In terms of the tax calculation, the \$_SESSION['tax'] variable should be 0.1379 or 16/116.
This will give you the correct result.

Regards,
Simon

11/11/2009 12:42 am  |  #4 info323054

Many thanks Jason Byrnes and Simon.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Everything else!

Close Window

Account or customer service questions?

Need technical support?

Content

Layout

Ease of use

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Window

We were unable to retrieve the attached file

Close Window

Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --