| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
| 
 | 
||||||||||
| X-Cart Home | 
display ex vat and inc vat prices | |||
![]()  | 
	
	
		
			 | 	
	
||
| 
		 | 
	Thread Tools | Search this Thread | 
| 
		 
			 
			#1  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Is it possible to display inc vat and excluding vat prices on the product pages? 
		
	
		
		
		
		
			I've had a look at http://forum.x-cart.com/showthread.php?t=21879 but this thread is several years old and the modifications to the customer/main/taxed_price.tpl file dont seem to work with 4.5 any help appreciated 
				__________________ 
		
		
		
		
	
		
		
		
	X-cart 4.4.3  | 
|||||||
| 
		 
			 
			#2  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 This is just a guess, but looking at the 4.5.4 store I'm building, the file /skin/<yourskindirectory or common_files>/customer/main/product_details.tpl has the following line for displaying the price including tax: 
		
	
		
		
		
		
			
		
		
		
		
	
		
		
		
	<span class="product-price-value">{currency value=$product.taxed_price tag_id="product_price"}</span> Ignore the bold type. According to webmaster mode the untaxed price is held in $product.price, so you could try adding the following line somewhere in the same file, product_details.tpl: <span class="product-price-value">{currency value=$product.price tag_id="product_price"}</span> There in another line directly under the first one which (I think) displays the price in an alternative currency, but I have no idea how you might need to manipulate that if you also want to show alternative currency prices with and without tax... Worth a try. It's where I would start if I wanted to display both prices. Welly  | 
|||||||
| 
		 
			 
			#3  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Thanks for your help, between this and pauldodman's help in the other thread I got it working for future reference the change was made in  the "theme"/customer/main/product_details.tpl file(on line 95) 
		
	
		
		
		
		
			change {currency value=$product.taxed_price tag_id="product_price"} to <span class="product-price-value">{currency value=$product.price}</span><br> {currency value=$product.taxed_price} 
				__________________ 
		
		
		
		
	
		
		
		
	X-cart 4.4.3  | 
|||||||
![]()  | 
		
	
		
			 | 	
	
| Thread Tools | Search this Thread | 
		
  | 
	
		
  | 
| 
 | 
|||
| 
 
X-Cart forums © 2001-2020
 
 | 
|||