cookiebob Posted April 1, 2008 Posted April 1, 2008 Can somebody help me solve this problem or point me towards a contribution that can do this. The prices in the shopping cart include VAT, however a number of custmomers have said that it is not clear whether VAt is included. I would like to add some small text that appears after the product price that says [vat included] Is this possible Bob
markg-uk Posted April 1, 2008 Posted April 1, 2008 It is - I used the VAT Price Incl and Excl contribution to do just this
cookiebob Posted April 1, 2008 Author Posted April 1, 2008 Markg Many thanks, a very simple and useful contribution. you have save me hours on work As always I am never satisfied and I now need to find a way of changing the text class so that it appears as smaller text from the main price. Bob
markg-uk Posted April 1, 2008 Posted April 1, 2008 Should be pretty easy to do with css. If you add this to your stylesheet (change values as desired) .vatdisplay{ font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; text-transform: capitalize; } then wherever the vat text is displayed, put '<span class="vatdisplay"> . ' before it and ' . </span>' after e.g. if using the above contribution, find NO_VAT_TEXT and replace it with: '<span class="vatdisplay">' . NO_VAT_TEXT . '</span>'
cookiebob Posted April 2, 2008 Author Posted April 2, 2008 Mark I am having trouble with this one. I can't find NO_VAT_TEXT anywhere. I used a rather crude method to achieve the goal After applying the mod I changed the cose to this : return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . 'inc vat' ; I have now chaged it to this return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . '<BR><font size="1"> inc vat' ; It does the job, but I would much rather use a stylesheet. Bob
markg-uk Posted April 3, 2008 Posted April 3, 2008 NO_VAT_TEXT was in the contribution I linked to, so unless you installed it, it wouldn't be there. In that case, change to this line and add the vat display to the css return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . '<br/><span class="vatdisplay">inc vat</span>';
cookiebob Posted April 3, 2008 Author Posted April 3, 2008 Mark Many thanks I appreciate your help Bob
kalidas Posted February 25, 2009 Posted February 25, 2009 Hi, I am very greatfull getting such addons. Here, the process is for excluding VAT. But I want including VAT means $150 (inc VAT 165.00). How can I implement this. Plz waiting for reply. Kalidas www.jobs2india.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.