Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need a script to change "alter_currency_value.tpl"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-17-2004, 01:45 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default Need a script to change "alter_currency_value.tpl"

I am trying to change the alter_currency_value.tpl to show price including VAT and Delivery.

At the moment, the price is displayed as follows (example):
бё895.98, 17.5%

I would like the price to display as follows:
бё895.98 incl. VAT & Delivery

I have spoken to Qualiteam on this and the response I got was to delete the alter_currency_value.tpl and replace it with the text: including VAT & Delivery.
Whilst this works, the problem is when you view the cart, all the prices (Subtotal, Discount, 17.5%, Shipping) have "including VAT & Delivery" after them!

If anyone has got a script they can paste over to me I would be eternally grateful

Don Campbell
www.freshKIT.co.uk
Reply With Quote
  #2  
Old 05-17-2004, 07:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you could edit the product.tpl and products.tpl files add hard code the text after the calls to prices
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-17-2004, 07:13 AM
 
grimscot grimscot is offline
 

Member
  
Join Date: Nov 2003
Location: Scotland
Posts: 22
 

Default

I think what you have done is to change every instance to have incl. VAT & Delivery.

What I did in my own system was to remove the alter_currency_value.tpl within products.tpl, product_t.tpl and product.tpl files and added database labels for the incl.Vat. It then shouldn't effect the cart pages.

I had to customise the way xcart displayed VAT for my xcart, I now show the price exclusive of vat then beside it in less bold font, the price including vat. using the command lines below:

Code:
<td class=PriceExVat>{include file="currency.tpl" value=$product.price}{$lng.lbl_excluding_vat}</td> <td class=PriceIncVat>{include file="currency.tpl" value=$product.price_vat}{$lng.lbl_including_vat}</td>
Reply With Quote
  #4  
Old 05-17-2004, 07:20 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

Thanks, so far..!

Could you tell a newbie how to put the code in for that?
I like the sound of being able to display ex and incl. VAT prices, where do I paste the code and which templates do I edit, please?
Reply With Quote
  #5  
Old 05-18-2004, 08:50 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

OK, I followed the post but didn't alter the code as I couldn't suss out how (possibly lack of intelligence) to do it.

When I found & deleted the entries in product, products and product_t.tpl, it did indeed get rid of the ,17.5%

I did however have to tinker around in cart_details and cart_totals.tpl to line up the rest of the cart with the new appearance.

Thanks for your time, much appreciated
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:03 AM.

   

 
X-Cart forums © 2001-2020