vat/tax in order form 5.2

jaypee

Avatar: jaypee

2012-12-20 13:42

hello,
maybe i´m hitting with blindness...
i´m searching the forum and web for two days but didn´t found any plugin or "how to do" that make it possible to show the vat in order form for qc 5.2(!!).
any help is appreciated.
rgds
jaypee

» Quick.Cart v5.x

cgan

Avatar: cgan

2012-12-20 16:18

jaypee - check this link (vatLite), scroll down to fourth from bottom of the page:
http://opensolution.org/download,en,18.html?sDir=Quick.Cart%2Fplugins&sWord=&sEdition=all&sVersion=5.2

cgan

jaypee

Avatar: jaypee

2012-12-20 16:31

yes, thanks cgan...
...i´ve already installed but it didn´t display the vat in the order form. i need it this way:

product price = xxx euro
freight charge = xxx euro
incl. vat (19%) = xxx euro
total: = xxx euro

did i overlook a possibility to activate some function in the backend?

*confused*

cgan

Avatar: cgan

2012-12-20 16:46

I haven't checked vatLite but maybe you can find something useful from this old topic:
http://opensolution.org/Quick.Cart/forum/adding-vat-tax-to-products,5799.html

cgan

jaypee

Avatar: jaypee

2012-12-20 17:24

bammbabalugapolapbangbang!
you saved my day!
i had to change a little because the files are different in 5.2 but finally it works!
thx from germany!
regards and merry christmas!
jaypee

jaypee

Avatar: jaypee

2012-12-20 17:32

mmmh, i´m back.
a little issue.
display vat for the product but not including the freight charges.
any idea?

interkob

Avatar: interkob

2012-12-20 21:50

You should enter prices with VAT in all your products. And then you can show how much is without VAT anywhere.

jaypee

Avatar: jaypee

2012-12-21 08:08

@interkob: i guess you get me wrong.

with the help of the script from cgan, the vat will be displayed in the order form only for the products but NOT including the shipping costs.
it would be nice to find a script (or at least to know how to change it) wich generate the vat for the total amount (products AND freight charge).
well, i´m not pedantic...but the german law is ;-)
rgds
jaypee

interkob

Avatar: interkob

2012-12-21 09:21

Try this solution. Maybe this is not full and not tested, but...

Open core/products.php and change

$aData['sPrice'] = is_numeric$this->aProducts[$iProduct]['mPrice'] ) ? displayPrice$this->aProducts[$iProduct]['mPrice'] ) : $this->aProducts[$iProduct]['mPrice'];



To:

$aData['sPrice'] = is_numeric$this->aProducts[$iProduct]['mPrice'] ) ? displayPrice$this->aProducts[$iProduct]['mPrice'] ) : $this->aProducts[$iProduct]['mPrice'];
$aData['sVAT'] = round($aData['sPrice']*0.19,2);



And find this

$aData['sPrice'] = is_numeric$aData['mPrice'] ) ? displayPrice$aData['mPrice'] ) : $aData['mPrice'];


Change to

$aData['sPrice'] = is_numeric$aData['mPrice'] ) ? displayPrice$aData['mPrice'] ) : $aData['mPrice'];
        
$aData['sVAT'] = round($aData['sPrice']*0.19,2);



Open core/order.php and change

 $aData['sProductsSummary'] = displayPrice$aData['fProductsSummary'] );
     


To

 $aData['sProductsSummary'] = displayPrice$aData['fProductsSummary'] );
      
$aData['sVAT'] = round($aData['sProductsSummary']*0.19,2);



Then open pages_default.tpl, products_default.tpl, orders_step-x.tpl and paste the code

VAT $aData[sVAT]



This code will show you 19% of the total price.

jaypee

Avatar: jaypee

2012-12-21 10:11

Then open pages_default.tpl, products_default.tpl, orders_step-x.tpl and paste the code:

VAT $aData[sVAT]


ok, sorry but i´m not such a specialist...
can you tell me where to add, i mean anywhere in <!--xyz-->?

thanks in advance!

interkob

Avatar: interkob

2012-12-21 10:46

pages/products tpl

<!-- IF:START PRICE -->VAT $aData[sVAT]



order tpl

$aData[sProductsSummary]<br />
VAT $aData[sVAT]



This is an example

jaypee

Avatar: jaypee

2012-12-21 11:02

thanks. doesn´t work on spot. i will take my time and hope to sort this out.

interkob

Avatar: interkob

2012-12-21 11:33

What doesn't work? You should see VAT value in products' list, in product's details page, in basket and in order form.

jaypee

Avatar: jaypee

2012-12-21 12:46

i see vat in list and details (but this was already visible before i use your script).
the vat is not showing in basket and order form.

i still use the script from cgan. could this be the mistake?

interkob

Avatar: interkob

2012-12-21 12:54

You better try it on clear version. I see all ok.

jaypee

Avatar: jaypee

2012-12-21 13:29

tried it on a clear version...still the same result.

i´m online now. i make a new check tomorrow or the day after.

thanks so far.

Back to top
about us | contact