VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Newb2vm on August 30, 2012, 05:14:26 AM

Title: order prices manually? Sales tax, without tax, tax etc..
Post by: Newb2vm on August 30, 2012, 05:14:26 AM
hello again,

Iam having a small issue where I would like to Put the 'Sales price' below the other prices , without-tax,  etc..

is there some way of doing this through VM2.1 please.


ITEMORDER
Sales price: $ 7.08   3
Before tax: $ 6.16   2
GST (15%): $0.92   1

Cheers
Title: Re: order prices manually? Sales tax, without tax, tax etc..
Post by: ivus on August 30, 2012, 05:33:48 AM
Hi Newb2vm,

Kia ora mate.

Are you referring to the Products Details page or the Cart page?

In either case you'll need to modify/adjust the template pages:

Products Details : /components/com_virtuemart/views/productdetails/tmpl/default_showprices.php
Cart: /components/com_virtuemart/views/cart/tmpl/default_pricelist.php

I hope this helps.
Title: Re: order prices manually? Sales tax, without tax, tax etc..
Post by: Newb2vm on August 31, 2012, 10:27:52 AM
Kia Ora Bro !,

thats the one I was referring to lol.. I knew that ... sooner or later I would have to do some NinJitsu.. to style the template the way I wanted it lol.

much appreciated!!.

was trying to see how far I could go before performing any Arts upon the scripts lol...

Q. do I make some kind of backup/copies to these scripts beforehand so that when an update is released I don't loose everything?
I. learn't from VM1.3 not to go styling the default templates.

Cheers.
Title: Re: order prices manually? Sales tax, without tax, tax etc..
Post by: ivus on August 31, 2012, 10:37:21 AM
Hi Newb2vm,

Technically you should never touch core code because of updates. It's also very useful for debugging template issues because you can always revert back to the original to see if it was working before you made changes.

What you want to do is create template overrides within your template folders. Here are some links to tutorials on how to achieve this (it's very simple).

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core (http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core)
http://docs.joomla.org/Understanding_Output_Overrides (http://docs.joomla.org/Understanding_Output_Overrides)

Good luck.

BTW.. I'm an Aussie... got kiwi mates  ;)
Title: Re: order prices manually? Sales tax, without tax, tax etc..
Post by: Newb2vm on August 31, 2012, 11:24:34 AM
Excellent stuff M8 , Fair dinkum , Ozzy aye.. nice.

50/50 here.. Kiwi/Ozzy , best of both worlds lol.

too HOT over there for this Southerner lol.

Thanks again for the help.. will look into over-rides and stuff tomorrow.

Again Much appreciated.

Cheers.