Jump to content

Change cart calculation order


Guest

Recommended Posts

Hi

I am using CC v. 3.xx and have a question in regards to the order the total amount payable is sorted.

Currently the order is:

subtotal

tax

shipping

total

I live in denmark and when running a business, all invoices need to have the tax seperatly displayed. Now what I would like to do is this:

subtotal

shipping

tax

total

When calculating, the subtotal and shipping are displayed minus tax. then the tax amount is displayed and the total where subtotal, shipping and tax are added together.

Is there a simple way to do this or do I need to pay someone for this?

Looking forward to someones help :-)

Kindest regards

Michael

Link to comment
Share on other sites

I think that all you'll have to do is edit the templates to switch the order of the items displayed.

As I understand it, shipping and tax are completely separate from each other and nothing needs to be done to change the way the figures are calculated.

The default email templates are in the language files, although the screen displays are in the template files.

Look in:

/language/xx/lang.inc.php

and

/skins/xxx/styleTemplates/content/viewOrder.tpl

Link to comment
Share on other sites

HI

Thanks for the help. I tried to change the template, but when replacing one with the other makes the shipping align to the left suddenly. It was in the /contents/cart.tpl that needed to be changed. It had no effect when changing the vieworder.tpl file.

In regards to the calculation.

At the moment, the product price is displayed without tax in the subtotal, the the tax is displayed and added (in my case 25%) so if the product price is $100 the tax is $25 and the total says $125. The shipping is then set as one total amount incl. tax and then added to the total price.

What I want is this:

Product price displayed without tax in subtotal

Shipping price displayed without tax

tax amount displayed (calculated for subtotal and shipping)

total amount displayed (subtotal,shipping and tax added together)

Hope this helps a little

Michael

Link to comment
Share on other sites

  • 3 weeks later...

I have had the same problem in Sweden and have come up with a fix for this which will display Tax included the right way as we are used to in Scandinavia. I have also made new templates for Registration form, Cart and Customer profile to fit swedish standards.

Send PM if you are interested.

Anna-Lena

Link to comment
Share on other sites

  • 3 months later...
Guest Markus T

I have had the same problem in Sweden and have come up with a fix for this which will display Tax included the right way as we are used to in Scandinavia. I have also made new templates for Registration form, Cart and Customer profile to fit swedish standards.

Send PM if you are interested.

Anna-Lena

I am intrested, I lev in Sweden so please mail me the info or fixt

you ave

[email protected]

Link to comment
Share on other sites

in your skin/ styletemplates/content/cart.tpl find (approx line 152):

<tr>

<td colspan="7" align="right">{LANG_TAX}</td>

<td width="80" align="right">{VAL_TAX}</td>

</tr>

</table>

			  

<table width="100%"  border="0" cellspacing="0" cellpadding="3">

<tr>

<td align="right">{LANG_SHIPPING}</td>

<td width="80" align="right">{VAL_SHIPPING}</td>

</tr>




change to:




<tr>

<td align="right">{LANG_SHIPPING}</td>

<td width="80" align="right">{VAL_SHIPPING}</td>

</tr>

</table>

<table width="100%"  border="0" cellspacing="0" cellpadding="3">

<tr>

<td colspan="7" align="right">{LANG_TAX}</td>

<td width="80" align="right">{VAL_TAX}</td>

</tr>

You might need to adjust your allignement (I havnt tested this code)

Burgensteen

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...